Skip to content

Commit 3b7bbb3

Browse files
committed
Fix lint errors and disable rule
1 parent 8481328 commit 3b7bbb3

File tree

22 files changed

+37
-29
lines changed

22 files changed

+37
-29
lines changed

lib/node_modules/@stdlib/assert/has-prototype/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ var bool = hasPrototype( bar, Foo.prototype );
110110
try {
111111
bool = ( v instanceof superProto );
112112
} catch ( error ) {
113-
// type error...
113+
// Encountered a type error...
114114
console.error( error.message );
115115
}
116116

lib/node_modules/@stdlib/assert/is-native-function/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ bool = isNativeFunction( beep );
6262

6363
## Examples
6464

65-
<!-- eslint-disable no-empty-function, no-restricted-syntax -->
65+
<!-- eslint-disable no-empty-function, no-restricted-syntax, stdlib/no-builtin-math -->
6666

6767
<!-- eslint no-undef: "error" -->
6868

lib/node_modules/@stdlib/assert/is-unity-probability-array/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ bool = isUnityProbabilityArray( [ 3.14, 0.0 ] );
6464
for ( i = 0; i < arr.length; i++ ) {
6565
sum += arr[ i ];
6666
}
67-
// sum => 0.9999999999999999
67+
console.log( sum );
68+
// => 0.9999999999999999
6869
```
6970

7071
To account for numerical error, the function tests if array elements sum to approximately one; specifically,

lib/node_modules/@stdlib/assert/is-uri/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ bool = isURI( 'telnet://192.0.2.16:80/' );
122122
bool = isURI( 'urn:oasis:names:specification:docbook:dtd:xml:4.1.2' );
123123
// returns true
124124

125-
126125
/* Invalid */
127126

128127
// No scheme:

lib/node_modules/@stdlib/buffer/to-json/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ var buf = array2buffer( [ 1, 2 ] );
5252
var json = toJSON( buf );
5353
/* returns
5454
{
55-
"type": "Buffer",
56-
"data": [ 1, 2 ]
55+
'type': 'Buffer',
56+
'data': [ 1, 2 ]
5757
}
5858
*/
5959
```

lib/node_modules/@stdlib/fs/exists/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ console.log( exists.sync( __dirname ) );
148148
console.log( exists.sync( 'beepboop' ) );
149149
// => false
150150
151-
152151
/* Async */
153152
154153
exists( __dirname, done );

lib/node_modules/@stdlib/fs/read-dir/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function onRead( error, data ) {
4242
console.error( error );
4343
} else {
4444
console.log( data );
45-
// returns [...]
45+
// => [...]
4646
}
4747
}
4848
```
@@ -57,7 +57,7 @@ if ( out instanceof Error ) {
5757
throw out;
5858
}
5959
console.log( out );
60-
// returns [...]
60+
// => [...]
6161
```
6262

6363
</section>
@@ -123,7 +123,6 @@ out = readDir.sync( 'beepboop' );
123123
console.log( out instanceof Error );
124124
// => true
125125
126-
127126
/* Async */
128127
129128
readDir( __dirname, onRead );

lib/node_modules/@stdlib/fs/read-file-list/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ files = readFileList.sync( [ 'beepboop' ], {
9797
console.log( files instanceof Error );
9898
// => true
9999

100-
101100
/* Async */
102101

103102
readFileList( [ __filename ], onFiles );

lib/node_modules/@stdlib/fs/read-file/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ file = readFile.sync( 'beepboop', {
127127
console.log( file instanceof Error );
128128
// => true
129129
130-
131130
/* Async */
132131
133132
readFile( __filename, onFile );

lib/node_modules/@stdlib/os/arch/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Operating system CPU architecture.
3636

3737
```javascript
3838
console.log( ARCH );
39-
// returns <string>
39+
// => <string>
4040
```
4141

4242
</section>

0 commit comments

Comments
 (0)