Skip to content

Commit

Permalink
build: replace tslint directive
Browse files Browse the repository at this point in the history
  • Loading branch information
Planeshifter committed Nov 12, 2023
1 parent a73f94f commit 710ba8a
Show file tree
Hide file tree
Showing 46 changed files with 93 additions and 93 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import isBooleanArray = require( './index' );

// Attached to main export is a `primitives` method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isBooleanArray.primitives( [ new Boolean( true ) ] ); // $ExpectType boolean
isBooleanArray.primitives( [ true ] ); // $ExpectType boolean
}
Expand All @@ -49,7 +49,7 @@ import isBooleanArray = require( './index' );

// Attached to main export is an `objects` method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isBooleanArray.objects( [ new Boolean( true ) ] ); // $ExpectType boolean
isBooleanArray.objects( [ true ] ); // $ExpectType boolean
}
Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/assert/is-boolean/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import isBoolean = require( './index' );

// Attached to main export is an isPrimitive method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isBoolean.isPrimitive( new Boolean( true ) ); // $ExpectType boolean
isBoolean.isPrimitive( true ); // $ExpectType boolean
}
Expand All @@ -49,7 +49,7 @@ import isBoolean = require( './index' );

// Attached to main export is an isPrimitive method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isBoolean.isObject( new Boolean( true ) ); // $ExpectType boolean
isBoolean.isObject( true ); // $ExpectType boolean
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@ import isBoxedPrimitive = require( './index' );

// The function returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isBoxedPrimitive( new String( 'beep' ) ); // $ExpectType boolean
isBoxedPrimitive( 'beep' ); // $ExpectType boolean
isBoxedPrimitive( [] ); // $ExpectType boolean

// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isBoxedPrimitive( new Number( 3.21 ) ); // $ExpectType boolean
}

// The compiler throws an error if the function is provided an unsupported number of arguments...
{
isBoxedPrimitive(); // $ExpectError

// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isBoxedPrimitive( new String( 'beep' ), 123 ); // $ExpectError
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import isComposite = require( './index' );

// Attached to main export is an isPrimitive method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isComposite.isPrimitive( new Number( 0.2 ) ); // $ExpectType boolean
isComposite.isPrimitive( 0.2 ); // $ExpectType boolean
}
Expand All @@ -49,7 +49,7 @@ import isComposite = require( './index' );

// Attached to main export is an isPrimitive method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isComposite.isObject( new Number( 0.2 ) ); // $ExpectType boolean
isComposite.isObject( 0.2 ); // $ExpectType boolean
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import isCubeNumber = require( './index' );

// Attached to main export is an isPrimitive method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isCubeNumber.isPrimitive( new Number( 0.2 ) ); // $ExpectType boolean
isCubeNumber.isPrimitive( 0.2 ); // $ExpectType boolean
}
Expand All @@ -49,7 +49,7 @@ import isCubeNumber = require( './index' );

// Attached to main export is an isPrimitive method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isCubeNumber.isObject( new Number( 0.2 ) ); // $ExpectType boolean
isCubeNumber.isObject( 0.2 ); // $ExpectType boolean
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import isEmptyString = require( './index' );

// Attached to main export is an isPrimitive method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isEmptyString.isPrimitive( new String( 'abc' ) ); // $ExpectType boolean
isEmptyString.isPrimitive( '' ); // $ExpectType boolean
}
Expand All @@ -49,7 +49,7 @@ import isEmptyString = require( './index' );

// Attached to main export is an isPrimitive method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isEmptyString.isObject( new String( '' ) ); // $ExpectType boolean
isEmptyString.isObject( '' ); // $ExpectType boolean
}
Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/assert/is-even/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import isEven = require( './index' );

// Attached to main export is an isPrimitive method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isEven.isPrimitive( new Number( 4 ) ); // $ExpectType boolean
isEven.isPrimitive( 4 ); // $ExpectType boolean
}
Expand All @@ -49,7 +49,7 @@ import isEven = require( './index' );

// Attached to main export is an isPrimitive method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isEven.isObject( new Number( 4 ) ); // $ExpectType boolean
isEven.isObject( 4 ); // $ExpectType boolean
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import isFiniteArray = require( './index' );

// Attached to main export is a `primitives` method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isFiniteArray.primitives( [ new Number( 3 ) ] ); // $ExpectType boolean
isFiniteArray.primitives( [ 3 ] ); // $ExpectType boolean
}
Expand All @@ -49,7 +49,7 @@ import isFiniteArray = require( './index' );

// Attached to main export is an `objects` method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isFiniteArray.objects( [ new Number( -2 ) ] ); // $ExpectType boolean
isFiniteArray.objects( [ -2 ] ); // $ExpectType boolean
}
Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/assert/is-finite/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import isFinite = require( './index' );

// Attached to main export is an isPrimitive method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isFinite.isPrimitive( new Number( 4 ) ); // $ExpectType boolean
isFinite.isPrimitive( 4 ); // $ExpectType boolean
}
Expand All @@ -49,7 +49,7 @@ import isFinite = require( './index' );

// Attached to main export is an isPrimitive method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isFinite.isObject( new Number( 4 ) ); // $ExpectType boolean
isFinite.isObject( 4 ); // $ExpectType boolean
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import isInfinite = require( './index' );

// Attached to main export is an isPrimitive method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isInfinite.isPrimitive( new Number( 1 / 0 ) ); // $ExpectType boolean
isInfinite.isPrimitive( 1 / 0 ); // $ExpectType boolean
}
Expand All @@ -49,7 +49,7 @@ import isInfinite = require( './index' );

// Attached to main export is an isPrimitive method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isInfinite.isObject( new Number( 1 / 0 ) ); // $ExpectType boolean
isInfinite.isObject( 1 / 0 ); // $ExpectType boolean
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import isIntegerArray = require( './index' );

// Attached to main export is a `primitives` method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isIntegerArray.primitives( [ new Number( 3 ) ] ); // $ExpectType boolean
isIntegerArray.primitives( [ 3 ] ); // $ExpectType boolean
}
Expand All @@ -48,7 +48,7 @@ import isIntegerArray = require( './index' );

// Attached to main export is an `objects` method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isIntegerArray.objects( [ new Number( -2 ) ] ); // $ExpectType boolean
isIntegerArray.objects( [ -2 ] ); // $ExpectType boolean
}
Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/assert/is-integer/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import isInteger = require( './index' );

// Attached to main export is an isPrimitive method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isInteger.isPrimitive( new Number( 2 ) ); // $ExpectType boolean
isInteger.isPrimitive( 2 ); // $ExpectType boolean
}
Expand All @@ -49,7 +49,7 @@ import isInteger = require( './index' );

// Attached to main export is an isPrimitive method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isInteger.isObject( new Number( 2 ) ); // $ExpectType boolean
isInteger.isObject( 2 ); // $ExpectType boolean
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import isNaNArray = require( './index' );

// Attached to main export is a `primitives` method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isNaNArray.primitives( [ new Number( NaN ) ] ); // $ExpectType boolean
isNaNArray.primitives( [ NaN ] ); // $ExpectType boolean
}
Expand All @@ -49,7 +49,7 @@ import isNaNArray = require( './index' );

// Attached to main export is an `objects` method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isNaNArray.objects( [ new Number( NaN ) ] ); // $ExpectType boolean
isNaNArray.objects( [ NaN ] ); // $ExpectType boolean
}
Expand Down
4 changes: 2 additions & 2 deletions lib/node_modules/@stdlib/assert/is-nan/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import isnan = require( './index' );

// Attached to main export is an isPrimitive method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isnan.isPrimitive( new Number( NaN ) ); // $ExpectType boolean
isnan.isPrimitive( NaN ); // $ExpectType boolean
}
Expand All @@ -49,7 +49,7 @@ import isnan = require( './index' );

// Attached to main export is an isPrimitive method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isnan.isObject( new Number( NaN ) ); // $ExpectType boolean
isnan.isObject( NaN ); // $ExpectType boolean
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import isNegativeIntegerArray = require( './index' );

// Attached to main export is a `primitives` method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isNegativeIntegerArray.primitives( [ new Number( -3 ) ] ); // $ExpectType boolean
isNegativeIntegerArray.primitives( [ -3 ] ); // $ExpectType boolean
}
Expand All @@ -49,7 +49,7 @@ import isNegativeIntegerArray = require( './index' );

// Attached to main export is an `objects` method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isNegativeIntegerArray.objects( [ new Number( -2 ) ] ); // $ExpectType boolean
isNegativeIntegerArray.objects( [ -2 ] ); // $ExpectType boolean
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import isNegativeInteger = require( './index' );

// Attached to main export is an isPrimitive method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isNegativeInteger.isPrimitive( new Number( -2 ) ); // $ExpectType boolean
isNegativeInteger.isPrimitive( -2 ); // $ExpectType boolean
}
Expand All @@ -49,7 +49,7 @@ import isNegativeInteger = require( './index' );

// Attached to main export is an isPrimitive method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isNegativeInteger.isObject( new Number( -2 ) ); // $ExpectType boolean
isNegativeInteger.isObject( -2 ); // $ExpectType boolean
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import isNegativeNumberArray = require( './index' );

// Attached to main export is a `primitives` method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isNegativeNumberArray.primitives( [ new Number( -3 ) ] ); // $ExpectType boolean
isNegativeNumberArray.primitives( [ -3 ] ); // $ExpectType boolean
}
Expand All @@ -49,7 +49,7 @@ import isNegativeNumberArray = require( './index' );

// Attached to main export is an `objects` method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isNegativeNumberArray.objects( [ new Number( -2 ) ] ); // $ExpectType boolean
isNegativeNumberArray.objects( [ -2 ] ); // $ExpectType boolean
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import isNegativeNumber = require( './index' );

// Attached to main export is an isPrimitive method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isNegativeNumber.isPrimitive( new Number( -2 ) ); // $ExpectType boolean
isNegativeNumber.isPrimitive( -2 ); // $ExpectType boolean
}
Expand All @@ -49,7 +49,7 @@ import isNegativeNumber = require( './index' );

// Attached to main export is an isPrimitive method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isNegativeNumber.isObject( new Number( -2 ) ); // $ExpectType boolean
isNegativeNumber.isObject( -2 ); // $ExpectType boolean
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import isNegativeZero = require( './index' );

// Attached to main export is an isPrimitive method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isNegativeZero.isPrimitive( new Number( -0 ) ); // $ExpectType boolean
isNegativeZero.isPrimitive( -0 ); // $ExpectType boolean
}
Expand All @@ -50,7 +50,7 @@ import isNegativeZero = require( './index' );

// Attached to main export is an isPrimitive method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isNegativeZero.isObject( new Number( -0 ) ); // $ExpectType boolean
isNegativeZero.isObject( -0 ); // $ExpectType boolean
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import isNonNegativeIntegerArray = require( './index' );

// Attached to main export is a `primitives` method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isNonNegativeIntegerArray.primitives( [ new Number( 3 ) ] ); // $ExpectType boolean
isNonNegativeIntegerArray.primitives( [ 3 ] ); // $ExpectType boolean
}
Expand All @@ -49,7 +49,7 @@ import isNonNegativeIntegerArray = require( './index' );

// Attached to main export is an `objects` method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isNonNegativeIntegerArray.objects( [ new Number( 2 ) ] ); // $ExpectType boolean
isNonNegativeIntegerArray.objects( [ 2 ] ); // $ExpectType boolean
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import isNonNegativeInteger = require( './index' );

// Attached to main export is an isPrimitive method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isNonNegativeInteger.isPrimitive( new Number( 2 ) ); // $ExpectType boolean
isNonNegativeInteger.isPrimitive( 2 ); // $ExpectType boolean
}
Expand All @@ -49,7 +49,7 @@ import isNonNegativeInteger = require( './index' );

// Attached to main export is an isPrimitive method which returns a boolean...
{
// tslint:disable-next-line:no-construct
// eslint-disable-next-line no-new-wrappers
isNonNegativeInteger.isObject( new Number( 2 ) ); // $ExpectType boolean
isNonNegativeInteger.isObject( 2 ); // $ExpectType boolean
}
Expand Down
Loading

0 comments on commit 710ba8a

Please sign in to comment.