Skip to content

Commit ce4fba5

Browse files
committed
Fix lint errors and disable rules
1 parent 445056f commit ce4fba5

File tree

13 files changed

+17
-22
lines changed

13 files changed

+17
-22
lines changed

lib/node_modules/@stdlib/_tools/eslint/rules/section-header-empty-lines/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function add( x, y ) {
5252
}
5353

5454
// VARIABLES //
55-
var TWO_PI = 2.0 * Math.PI;
55+
var TWO_PI = 2.0 * 3.141592653589793;
5656

5757

5858
// EXPORTS //
@@ -72,7 +72,7 @@ function add( x, y ) {
7272

7373
// VARIABLES //
7474

75-
var TWO_PI = 2.0 * Math.PI;
75+
var TWO_PI = 2.0 * 3.141592653589793;
7676

7777

7878
// EXPORTS //

lib/node_modules/@stdlib/math/base/dists/levy/pdf/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ If provided `c <= 0`, the function returns `NaN`.
8080
var y = pdf( 2.0, 0.0, -1.0 );
8181
// returns NaN
8282

83-
pdf( 2.0, 0.0, 0.0 );
83+
y = pdf( 2.0, 0.0, 0.0 );
8484
// returns NaN
8585
```
8686

lib/node_modules/@stdlib/math/base/dists/weibull/pdf/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ If provided `k <= 0`, the function returns `NaN`.
8080
var y = pdf( 2.0, 0.0, 1.0 );
8181
// returns NaN
8282

83-
pdf( 2.0, -1.0, 1.0 );
83+
y = pdf( 2.0, -1.0, 1.0 );
8484
// returns NaN
8585
```
8686

lib/node_modules/@stdlib/nlp/lda/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ Returns the `no` terms with the highest probabilities for chosen topic `k`.
7676
var words = getTerms( 0, 3 );
7777
/* returns
7878
[
79-
{ word: 'both', prob: 0.06315008476532499 },
80-
{ word: 'pain', prob: 0.05515729517235543 },
81-
{ word: 'one', prob: 0.05486669737616135 }
79+
{ 'word': 'both', 'prob': 0.06315008476532499 },
80+
{ 'word': 'pain', 'prob': 0.05515729517235543 },
81+
{ 'word': 'one', 'prob': 0.05486669737616135 }
8282
]
8383
*/
8484
```
@@ -120,7 +120,6 @@ speeches = getSpeeches({
120120
'range': [ 1930, 2010 ]
121121
}).map( getText );
122122

123-
124123
model = lda( speeches, 3 );
125124

126125
model.fit( 1000, 100, 10 );

lib/node_modules/@stdlib/nlp/tokenize/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ var out = tokenize( str, true );
6767
```javascript
6868
var tokenize = require( '@stdlib/nlp/tokenize' );
6969

70-
7170
console.log( tokenize( 'Hello World!' ) );
7271
// => [ 'Hello', 'World', '!' ]
7372

lib/node_modules/@stdlib/number/float32/base/to-binary-string/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ var toFloat32 = require( '@stdlib/number/float64/base/to-float32' );
4040
var str = toBinaryStringf( toFloat32( 4.0 ) );
4141
// returns '01000000100000000000000000000000'
4242

43-
str = toBinaryStringf( toFloat32( Math.PI ) );
43+
str = toBinaryStringf( toFloat32( 3.141592653589793 ) );
4444
// returns '01000000010010010000111111011011'
4545

4646
str = toBinaryStringf( toFloat32( -1.0e38 ) );

lib/node_modules/@stdlib/number/float64/base/to-binary-string/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Returns a `string` giving the literal bit representation of a [double-precision
3838
var str = toBinaryString( 4.0 );
3939
// returns '0100000000010000000000000000000000000000000000000000000000000000'
4040

41-
str = toBinaryString( Math.PI );
41+
str = toBinaryString( 3.141592653589793 );
4242
// returns '0100000000001001001000011111101101010100010001000010110100011000'
4343

4444
str = toBinaryString( -1.0e308 );

lib/node_modules/@stdlib/regexp/function-name/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ var str = RE_FUNCTION_NAME.exec( beep.toString() )[ 1 ];
5151

5252
## Examples
5353

54-
<!-- eslint-disable func-names, no-restricted-syntax, no-empty-function -->
54+
<!-- eslint-disable func-names, no-restricted-syntax, no-empty-function, stdlib/no-builtin-math -->
5555

5656
<!-- eslint no-undef: "error" -->
5757

lib/node_modules/@stdlib/regexp/native-function/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ var bool = RE_NATIVE_FUNCTION.test( Date.toString() );
4747

4848
## Examples
4949

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

5252
<!-- eslint no-undef: "error" -->
5353

lib/node_modules/@stdlib/utils/any-by/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ var mean = context.sum / context.count;
126126

127127
- The function does **not** skip `undefined` elements.
128128

129-
<!-- eslint-disable no-sparse-arrays -->
129+
<!-- eslint-disable no-sparse-arrays, stdlib/return-annotations-marker -->
130130

131131
```javascript
132132
function log( value, index ) {

lib/node_modules/@stdlib/utils/copy/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,6 @@ var arr = [
214214
}
215215
];
216216
217-
218217
// Perform a full deep copy:
219218
var out = copy( arr );
220219
@@ -224,7 +223,6 @@ var bool = ( arr[ 0 ] === out[ 0 ] );
224223
bool = ( arr[ 1 ].y === out[ 1 ].y );
225224
// returns false
226225
227-
228226
// Perform a shallow copy:
229227
out = copy( arr, 1 );
230228

lib/node_modules/@stdlib/utils/reduce/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ var mean = out / context.count;
129129

130130
- The function does **not** skip `undefined` elements.
131131

132-
<!-- eslint-disable no-sparse-arrays -->
132+
<!-- eslint-disable no-sparse-arrays, stdlib/return-annotations-marker -->
133133

134134
```javascript
135135
function log( accumulator, value, index ) {

lib/node_modules/@stdlib/utils/try-function/README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -160,23 +160,22 @@ f = wrap( beep );
160160

161161
out = f( 'boop' );
162162
console.log( out );
163-
// returns 'beep boop'
163+
// => 'beep boop'
164164

165165
out = f( null );
166166
console.log( out.message );
167-
// returns '...'
168-
167+
// => '...'
169168

170169
// Asynchronous...
171170
f = wrap( boop );
172171

173172
out = f( 'beep', done );
174173
console.log( out );
175-
// returns undefined
174+
// => undefined
176175

177176
out = f( 'foo', done );
178177
console.log( out );
179-
// returns undefined
178+
// => undefined
180179
```
181180

182181
</section>

0 commit comments

Comments
 (0)