Skip to content

Commit d4045a4

Browse files
chore: fix JavaScript lint errors
PR-URL: stdlib-js#9968 Closes: stdlib-js#9965 Co-authored-by: Athan Reines <kgryte@gmail.com> Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent ae0d247 commit d4045a4

File tree

2 files changed

+17
-17
lines changed
  • lib/node_modules/@stdlib

2 files changed

+17
-17
lines changed

lib/node_modules/@stdlib/nlp/expand-contractions/lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* var out = expandContractions( str );
3131
* // returns 'I will not be able to get you all out of this one.'
3232
*
33-
* str = 'It oughtn't to be my fault, because, you know, I didn't know';
33+
* str = 'It oughtn\'t to be my fault, because, you know, I didn\'t know';
3434
* out = expandContractions( str );
3535
* // returns 'It ought not to be my fault, because, you know, I did not know'
3636
*/

lib/node_modules/@stdlib/repl/presentation/lib/commands/blank.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -46,25 +46,25 @@ function command( pres ) {
4646
var str = repeat( pres._opts.newline, pres.height+1 );
4747
pres._repl._ostream.write( str );
4848
pres._repl.once( 'drain', onDrain );
49+
}
4950

50-
/**
51-
* Callback invoked upon a `drain` event.
51+
/**
52+
* Callback invoked upon a `drain` event.
53+
*
54+
* @private
55+
*/
56+
function onDrain() {
57+
/*
58+
* [ANSI escape sequences][1]:
59+
*
60+
* - `\u001b`: ESC, the escape character
61+
* - `[1T`: scroll down one line
62+
* - `[1G`: move the cursor to the beginning of the line
5263
*
53-
* @private
64+
* [1]: https://en.wikipedia.org/wiki/ANSI_escape_code
5465
*/
55-
function onDrain() {
56-
/*
57-
* [ANSI escape sequences][1]:
58-
*
59-
* - `\u001b`: ESC, the escape character
60-
* - `[1T`: scroll down one line
61-
* - `[1G`: move the cursor to the beginning of the line
62-
*
63-
* [1]: https://en.wikipedia.org/wiki/ANSI_escape_code
64-
*/
65-
var str = '\u001b[1T\u001b[1G';
66-
pres._repl._ostream.write( str );
67-
}
66+
var str = '\u001b[1T\u001b[1G';
67+
pres._repl._ostream.write( str );
6868
}
6969
}
7070

0 commit comments

Comments
 (0)