Skip to content

Commit 9635417

Browse files
committed
Fix lint errors and disable lint rules
1 parent 0f4826b commit 9635417

File tree

7 files changed

+11
-6
lines changed

7 files changed

+11
-6
lines changed

lib/node_modules/@stdlib/buffer/ctor/test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ tape( 'if an environment supports `Buffer`, the export is an alias for `Buffer`'
4545
t.strictEqual( Foo, Mock, 'returns builtin' );
4646

4747
if ( hasNodeBufferSupport ) {
48-
t.strictEqual( ctor, Buffer, 'is alias' ); // eslint-disable-line stdlib/require-buffer
48+
t.strictEqual( ctor, Buffer, 'is alias' ); // eslint-disable-line stdlib/require-globals
4949
}
5050

5151
t.end();

lib/node_modules/@stdlib/math/base/tools/continued-fraction/examples/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ var continuedFraction = require( './../lib' );
2424
var generator;
2525
var out;
2626

27-
2827
function createGenerator() {
2928
var str = 'generator = function* generator() {';
3029
str += 'while ( true ) {';

lib/node_modules/@stdlib/math/base/tools/sum-series/examples/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ if ( hasGeneratorsSupport ) {
4545
console.log( 'log1p(0.5) evaluated via infinite series expansion (closure): %d', sumSeries( closure( 0.5 ) ) );
4646
console.log( 'log1p(0.5) evaluated via log1p module: %d', log1p( 0.5 ) );
4747

48-
4948
function closure( x ) {
5049
var k = 0;
5150
var mMult = -x;

lib/node_modules/@stdlib/ml/online-binary-classification/examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ for ( i = 0; i < 10000; i++ ) {
4343
x2 = normal( 0.0, 1.0 );
4444
lp = (3.0 * x1) - (2.0 * x2) + 1.0;
4545
phat = 1.0 / ( 1.0 + exp( -lp ) );
46-
y = binomial( 1, phat ) ? 1.0 : -1.0;
46+
y = ( binomial( 1, phat ) ) ? 1.0 : -1.0;
4747
model.update( [ x1, x2 ], y );
4848
}
4949

lib/node_modules/@stdlib/regexp/function-name/examples/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
'use strict';
2222

23+
var Int8Array = require( '@stdlib/array/int8' );
2324
var RE_FUNCTION_NAME = require( './../lib' );
2425

2526
function fname( fcn ) {

lib/node_modules/@stdlib/regexp/native-function/examples/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* limitations under the License.
1717
*/
1818

19-
/* eslint-disable no-restricted-syntax, no-empty-function, vars-on-top */
19+
/* eslint-disable no-restricted-syntax, no-empty-function */
2020

2121
'use strict';
2222

test/test.dist.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,16 @@ tape( 'distributable files', function test( t ) {
3838
});
3939

4040
tape( 'project contains a distributable file containing datasets (minified)', function test( t ) {
41+
// eslint-disable-next-line stdlib/no-dynamic-require
4142
var bundle = require( join( dirpath, 'stdlib-datasets-tree.min.js' ) );
4243
t.equal( typeof bundle, 'object', 'main export is an object' );
4344
t.equal( typeof bundle.datasets.AFINN_111, 'function', 'is a function' );
44-
t.equal( typeof bundle.datasets.AFINN_111(), 'object', 'returns expected value' );
45+
t.equal( typeof bundle.datasets.AFINN_111(), 'object', 'returns expected value' ); // eslint-disable-line new-cap
4546
t.end();
4647
});
4748

4849
tape( 'project contains a distributable file exposing a "flat" namespace (unminified)', function test( t ) {
50+
// eslint-disable-next-line stdlib/no-dynamic-require
4951
var bundle = require( join( dirpath, 'stdlib-flat.js' ) );
5052
t.equal( typeof bundle, 'object', 'main export is an object' );
5153
t.equal( typeof bundle.base, 'object', 'has member' );
@@ -54,6 +56,7 @@ tape( 'project contains a distributable file exposing a "flat" namespace (unmini
5456
});
5557

5658
tape( 'project contains a distributable file exposing a "flat" namespace (minified)', function test( t ) {
59+
// eslint-disable-next-line stdlib/no-dynamic-require
5760
var bundle = require( join( dirpath, 'stdlib-flat.min.js' ) );
5861
t.equal( typeof bundle, 'object', 'main export is an object' );
5962
t.equal( typeof bundle.base, 'object', 'has member' );
@@ -62,13 +65,15 @@ tape( 'project contains a distributable file exposing a "flat" namespace (minifi
6265
});
6366

6467
tape( 'project contains a distributable file for REPL functionality (minified)', function test( t ) {
68+
// eslint-disable-next-line stdlib/no-dynamic-require
6569
var bundle = require( join( dirpath, 'stdlib-repl.min.js' ) );
6670
t.equal( typeof bundle, 'object', 'main export is an object' );
6771
t.equal( typeof bundle.repl, 'function', 'is a function' );
6872
t.end();
6973
});
7074

7175
tape( 'project contains a distributable file exposing a "tree" namespace (unminified)', function test( t ) {
76+
// eslint-disable-next-line stdlib/no-dynamic-require
7277
var bundle = require( join( dirpath, 'stdlib-tree.js' ) );
7378
t.equal( typeof bundle, 'object', 'main export is an object' );
7479
t.equal( typeof bundle.math, 'object', 'has member' );
@@ -79,6 +84,7 @@ tape( 'project contains a distributable file exposing a "tree" namespace (unmini
7984
});
8085

8186
tape( 'project contains a distributable file exposing a "tree" namespace (minified)', function test( t ) {
87+
// eslint-disable-next-line stdlib/no-dynamic-require
8288
var bundle = require( join( dirpath, 'stdlib-tree.min.js' ) );
8389
t.equal( typeof bundle, 'object', 'main export is an object' );
8490
t.equal( typeof bundle.math, 'object', 'has member' );

0 commit comments

Comments
 (0)