Skip to content

Commit

Permalink
build: remove tslint directives
Browse files Browse the repository at this point in the history
  • Loading branch information
Planeshifter committed Nov 3, 2023
1 parent bf2cf8b commit df3c9b3
Show file tree
Hide file tree
Showing 98 changed files with 220 additions and 220 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ type GetIndexedArrayLike<T> = ( arr: Collection<T>, idx: number ) => T | void;
* @param idx - element index
* @returns element value
*/
type GetAccessorArrayLike<T> = ( arr: AccessorArrayLike<T>, idx: number ) => T | void; // tslint:disable-line:max-line-length
type GetAccessorArrayLike<T> = ( arr: AccessorArrayLike<T>, idx: number ) => T | void;

/**
* Sets an element in a `Float64Array`.
Expand Down Expand Up @@ -238,7 +238,7 @@ type SetUint8c = ( arr: Uint8ClampedArray, idx: number, value: number ) => void;
* @param idx - element index
* @param value - value to set
*/
type SetComplex128 = ( arr: Complex128Array, idx: number, value: ComplexLike ) => void; // tslint:disable-line:max-line-length
type SetComplex128 = ( arr: Complex128Array, idx: number, value: ComplexLike ) => void;

/**
* Sets an element in a `Complex64Array`.
Expand All @@ -247,7 +247,7 @@ type SetComplex128 = ( arr: Complex128Array, idx: number, value: ComplexLike ) =
* @param idx - element index
* @param value - value to set
*/
type SetComplex64 = ( arr: Complex64Array, idx: number, value: ComplexLike ) => void; // tslint:disable-line:max-line-length
type SetComplex64 = ( arr: Complex64Array, idx: number, value: ComplexLike ) => void;

/**
* Sets an element in a generic `Array`.
Expand All @@ -265,7 +265,7 @@ type SetGeneric<T> = ( arr: Array<T>, idx: number, value: T ) => void;
* @param idx - element index
* @param value - value to set
*/
type SetIndexedArrayLike<T> = ( arr: Collection<T>, idx: number, value: T ) => void; // tslint:disable-line:max-line-length
type SetIndexedArrayLike<T> = ( arr: Collection<T>, idx: number, value: T ) => void;

/**
* Sets an element in an array-like object supporting the get/set protocol.
Expand All @@ -274,7 +274,7 @@ type SetIndexedArrayLike<T> = ( arr: Collection<T>, idx: number, value: T ) => v
* @param idx - element index
* @param value - value to set
*/
type SetAccessorArrayLike<T> = ( arr: AccessorArrayLike<T>, idx: number, value: T ) => void; // tslint:disable-line:max-line-length
type SetAccessorArrayLike<T> = ( arr: AccessorArrayLike<T>, idx: number, value: T ) => void;

/**
* Interface describing the output object for a `Float64Array`.
Expand Down Expand Up @@ -834,7 +834,7 @@ declare function arraylike2object( x: Uint8ClampedArray ): Uint8cAccessorObject;
* var v = fcns[ 0 ]( x, 1 );
* // returns <Complex128>
*/
declare function arraylike2object( x: Complex128Array ): Complex128AccessorObject; // tslint:disable-line:max-line-length
declare function arraylike2object( x: Complex128Array ): Complex128AccessorObject;

/**
* Converts a one-dimensional array-like object to an object likely to have the same "shape".
Expand Down Expand Up @@ -900,7 +900,7 @@ declare function arraylike2object( x: Complex64Array ): Complex64AccessorObject;
* var v = fcns[ 0 ]( x.data, 2 );
* // returns 3
*/
declare function arraylike2object<T = unknown>( x: AccessorArrayLike<T> ): GetSetAccessorObject<T>; // tslint:disable-line:max-line-length
declare function arraylike2object<T = unknown>( x: AccessorArrayLike<T> ): GetSetAccessorObject<T>;

/**
* Converts a one-dimensional array-like object to an object likely to have the same "shape".
Expand All @@ -926,7 +926,7 @@ declare function arraylike2object<T = unknown>( x: AccessorArrayLike<T> ): GetSe
* var v = fcns[ 0 ]( x.data, 2 );
* // returns 3
*/
declare function arraylike2object<T = unknown>( x: Array<T> ): GenericAccessorObject<T>; // tslint:disable-line:max-line-length
declare function arraylike2object<T = unknown>( x: Array<T> ): GenericAccessorObject<T>;

/**
* Converts a one-dimensional array-like object to an object likely to have the same "shape".
Expand Down Expand Up @@ -958,7 +958,7 @@ declare function arraylike2object<T = unknown>( x: Array<T> ): GenericAccessorOb
* var v = fcns[ 0 ]( x.data, 2 );
* // returns 3
*/
declare function arraylike2object<T = unknown>( x: Collection<T> ): IndexedAccessorObject<T>; // tslint:disable-line:max-line-length
declare function arraylike2object<T = unknown>( x: Collection<T> ): IndexedAccessorObject<T>;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import { Collection } from '@stdlib/types/array';
* var out = cartesianProduct( x1, x2 );
* // returns [ [ 1, 4 ], [ 1, 5 ], [ 2, 4 ], [ 2, 5 ], [ 3, 4 ], [ 3, 5 ] ]
*/
declare function cartesianProduct<T = unknown, U = unknown>( x1: Collection<T>, x2: Collection<U> ): Array<[T, U]>; // tslint:disable-line:max-line-length
declare function cartesianProduct<T = unknown, U = unknown>( x1: Collection<T>, x2: Collection<U> ): Array<[T, U]>;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ declare class Complex128Array implements Complex128ArrayInterface {
* var len = arr.length;
* // returns 2
*/
constructor( arg?: number | RealOrComplexTypedArray | ArrayLike<number | ComplexLike> | ArrayBuffer | Iterable<number | ComplexLike>, byteOffset?: number, length?: number ); // tslint:disable-line:max-line-length
constructor( arg?: number | RealOrComplexTypedArray | ArrayLike<number | ComplexLike> | ArrayBuffer | Iterable<number | ComplexLike>, byteOffset?: number, length?: number );

/**
* Length (in bytes) of the array.
Expand Down Expand Up @@ -290,7 +290,7 @@ declare class Complex128Array implements Complex128ArrayInterface {
* im = imag( z );
* // returns -1.0
*/
set( value: ArrayLike<number | ComplexLike> | RealOrComplexTypedArray | ComplexLike, i?: number ): void; // tslint:disable-line:max-line-length
set( value: ArrayLike<number | ComplexLike> | RealOrComplexTypedArray | ComplexLike, i?: number ): void;
}

/**
Expand Down Expand Up @@ -495,7 +495,7 @@ interface Complex128ArrayConstructor {
* var len = arr.length;
* // returns 1
*/
from( src: ArrayLike<number | ComplexLike> | RealOrComplexTypedArray | Iterable<number | ComplexLike>, clbk?: Function, thisArg?: any ): Complex128Array; // tslint:disable-line:max-line-length
from( src: ArrayLike<number | ComplexLike> | RealOrComplexTypedArray | Iterable<number | ComplexLike>, clbk?: Function, thisArg?: any ): Complex128Array;

/**
* Creates a new 128-bit complex number array from a variable number of arguments.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ declare class Complex64Array implements Complex64ArrayInterface {
* var len = arr.length;
* // returns 2
*/
constructor( arg?: number | RealOrComplexTypedArray | ArrayLike<number | ComplexLike> | ArrayBuffer | Iterable<number | ComplexLike>, byteOffset?: number, length?: number ); // tslint:disable-line:max-line-length
constructor( arg?: number | RealOrComplexTypedArray | ArrayLike<number | ComplexLike> | ArrayBuffer | Iterable<number | ComplexLike>, byteOffset?: number, length?: number );

/**
* Length (in bytes) of the array.
Expand Down Expand Up @@ -290,7 +290,7 @@ declare class Complex64Array implements Complex64ArrayInterface {
* im = imagf( z );
* // returns -1.0
*/
set( value: ArrayLike<number | ComplexLike> | RealOrComplexTypedArray | ComplexLike, i?: number ): void; // tslint:disable-line:max-line-length
set( value: ArrayLike<number | ComplexLike> | RealOrComplexTypedArray | ComplexLike, i?: number ): void;
}

/**
Expand Down Expand Up @@ -495,7 +495,7 @@ interface Complex64ArrayConstructor {
* var len = arr.length;
* // returns 1
*/
from( src: ArrayLike<number | ComplexLike> | RealOrComplexTypedArray | Iterable<number | ComplexLike>, clbk?: Function, thisArg?: any ): Complex64Array; // tslint:disable-line:max-line-length
from( src: ArrayLike<number | ComplexLike> | RealOrComplexTypedArray | Iterable<number | ComplexLike>, clbk?: Function, thisArg?: any ): Complex64Array;

/**
* Creates a new 64-bit complex number array from a variable number of arguments.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ declare function convertSame( x: Collection, y: Uint8Array ): Uint8Array;
* var out = convertSame( x, y );
* // returns <Uint8ClampedArray>[ 1, 2, 3, 4 ]
*/
declare function convertSame( x: Collection, y: Uint8ClampedArray ): Uint8ClampedArray; // tslint:disable-line:max-line-length
declare function convertSame( x: Collection, y: Uint8ClampedArray ): Uint8ClampedArray;

/**
* Converts an array to a `Complex128Array`.
Expand All @@ -200,7 +200,7 @@ declare function convertSame( x: Collection, y: Uint8ClampedArray ): Uint8Clampe
* var out = convertSame( x, y );
* // returns <Complex128Array>
*/
declare function convertSame( x: Collection, y: Complex128Array ): Complex128Array; // tslint:disable-line:max-line-length
declare function convertSame( x: Collection, y: Complex128Array ): Complex128Array;

/**
* Converts an array to a `Complex64Array`.
Expand All @@ -218,7 +218,7 @@ declare function convertSame( x: Collection, y: Complex128Array ): Complex128Arr
* var out = convertSame( x, y );
* // returns <Complex64Array>
*/
declare function convertSame( x: Collection, y: Complex64Array ): Complex64Array; // tslint:disable-line:max-line-length
declare function convertSame( x: Collection, y: Complex64Array ): Complex64Array;

/**
* Converts an array to a generic `Array`.
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/array/dtype/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ declare function dtype( value: Array<any> ): 'generic';
* var dt = dtype( 'beep' );
* // returns null
*/
declare function dtype( value: Array<any> | RealOrComplexTypedArray ): DataType | null; // tslint:disable-line:max-line-length
declare function dtype( value: Array<any> | RealOrComplexTypedArray ): DataType | null;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ declare function emptyLike( x: Float32Array, dtype?: DataType ): Float32Array;
* var arr = emptyLike( x );
* // returns <Complex128Array>
*/
declare function emptyLike( x: Complex128Array, dtype?: DataType ): Complex128Array; // tslint:disable-line:max-line-length
declare function emptyLike( x: Complex128Array, dtype?: DataType ): Complex128Array;

/**
* Creates an uninitialized array having the same length and data type as a provided input array.
Expand Down Expand Up @@ -443,7 +443,7 @@ declare function emptyLike( x: Complex128Array, dtype?: DataType ): Complex128Ar
* var arr = emptyLike( x );
* // returns <Complex64Array>
*/
declare function emptyLike( x: Complex64Array, dtype?: DataType ): Complex64Array; // tslint:disable-line:max-line-length
declare function emptyLike( x: Complex64Array, dtype?: DataType ): Complex64Array;

/**
* Creates an uninitialized array having the same length and data type as a provided input array.
Expand Down Expand Up @@ -709,7 +709,7 @@ declare function emptyLike( x: Uint8Array, dtype?: DataType ): Uint8Array;
* var arr = emptyLike( x );
* // returns <Uint8ClampedArray>
*/
declare function emptyLike( x: Uint8ClampedArray, dtype?: DataType ): Uint8ClampedArray; // tslint:disable-line:max-line-length
declare function emptyLike( x: Uint8ClampedArray, dtype?: DataType ): Uint8ClampedArray;

/**
* Creates an uninitialized array having the same length and data type as a provided input array.
Expand Down
24 changes: 12 additions & 12 deletions lib/node_modules/@stdlib/array/filled-by/docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ declare function filledarrayBy( dtype?: DataType ): ArrayOrTypedArray; // tslint
* var arr = filledarrayBy( 5, constantFunction( 1.0 ) );
* // returns <Float64Array>[ 1.0, 1.0, 1.0, 1.0, 1.0 ]
*/
declare function filledarrayBy( length: number, clbk: Callback, thisArg?: any ): ArrayOrTypedArray; // tslint:disable-line:max-line-length unified-signatures
declare function filledarrayBy( length: number, clbk: Callback, thisArg?: any ): ArrayOrTypedArray; unified-signatures

/**
* Creates a filled array according to a provided callback function and having a specified `length`.
Expand Down Expand Up @@ -128,7 +128,7 @@ declare function filledarrayBy( length: number, clbk: Callback, thisArg?: any ):
* var arr = filledarrayBy( 5, 'float64', constantFunction( 1.0 ) );
* // returns <Float64Array>[ 1.0, 1.0, 1.0, 1.0, 1.0 ]
*/
declare function filledarrayBy( length: number, dtype: DataType, clbk: Callback, thisArg?: any ): ArrayOrTypedArray; // tslint:disable-line:max-line-length unified-signatures
declare function filledarrayBy( length: number, dtype: DataType, clbk: Callback, thisArg?: any ): ArrayOrTypedArray; unified-signatures

/**
* Creates a filled array from another `array` according to a provided callback function.
Expand All @@ -144,7 +144,7 @@ declare function filledarrayBy( length: number, dtype: DataType, clbk: Callback,
* var arr = filledarrayBy( [ 5.0, -3.0, 2.0 ], constantFunction( 1.0 ) );
* // returns <Float64Array>[ 1.0, 1.0, 1.0 ]
*/
declare function filledarrayBy( array: Collection, clbk: Callback, thisArg?: any ): ArrayOrTypedArray; // tslint:disable-line:max-line-length unified-signatures
declare function filledarrayBy( array: Collection, clbk: Callback, thisArg?: any ): ArrayOrTypedArray; unified-signatures

/**
* Creates a filled array from another `array` according to a provided callback function.
Expand Down Expand Up @@ -176,7 +176,7 @@ declare function filledarrayBy( array: Collection, clbk: Callback, thisArg?: any
* var arr = filledarrayBy( [ 5.0, -3.0, 2.0 ], 'float64', constantFunction( 1.0 ) );
* // returns <Float64Array>[ 1.0, 1.0, 1.0 ]
*/
declare function filledarrayBy( array: Collection, dtype: DataType, clbk: Callback, thisArg?: any ): ArrayOrTypedArray; // tslint:disable-line:max-line-length unified-signatures
declare function filledarrayBy( array: Collection, dtype: DataType, clbk: Callback, thisArg?: any ): ArrayOrTypedArray; unified-signatures

/**
* Creates a filled array from an iterable according to a callback function.
Expand All @@ -196,7 +196,7 @@ declare function filledarrayBy( array: Collection, dtype: DataType, clbk: Callba
* var arr = filledarrayBy( it, constantFunction( 1.0 ) );
* // returns <Float64Array>[ 1.0, 1.0, 1.0 ]
*/
declare function filledarrayBy( iterable: IterableIterator, callback: Callback, thisArg?: any ): ArrayOrTypedArray; // tslint:disable-line:max-line-length unified-signatures
declare function filledarrayBy( iterable: IterableIterator, callback: Callback, thisArg?: any ): ArrayOrTypedArray; unified-signatures

/**
* Creates a filled array from an iterable according to a callback function.
Expand Down Expand Up @@ -232,7 +232,7 @@ declare function filledarrayBy( iterable: IterableIterator, callback: Callback,
* var arr = filledarrayBy( it, 'float64', constantFunction( 1.0 ) );
* // returns <Float64Array>[ 1.0, 1.0, 1.0 ]
*/
declare function filledarrayBy( iterable: IterableIterator, dtype: DataType, callback: Callback, thisArg?: any ): ArrayOrTypedArray; // tslint:disable-line:max-line-length unified-signatures
declare function filledarrayBy( iterable: IterableIterator, dtype: DataType, callback: Callback, thisArg?: any ): ArrayOrTypedArray; unified-signatures

/**
* Returns a filled typed array view of an `ArrayBuffer` according to a provided callback function.
Expand All @@ -256,7 +256,7 @@ declare function filledarrayBy( iterable: IterableIterator, dtype: DataType, cal
* var arr = filledarrayBy( buf, 8, 2, constantFunction( 1.0 ) );
* // returns <Float64Array>[ 1.0, 1.0 ]
*/
declare function filledarrayBy( buffer: ArrayBuffer, byteOffset: number, length: number, clbk: Callback, thisArg?: any ): RealOrComplexTypedArray; // tslint:disable-line:max-line-length
declare function filledarrayBy( buffer: ArrayBuffer, byteOffset: number, length: number, clbk: Callback, thisArg?: any ): RealOrComplexTypedArray;

/**
* Returns a filled typed array view of an `ArrayBuffer` according to a provided callback function.
Expand Down Expand Up @@ -296,7 +296,7 @@ declare function filledarrayBy( buffer: ArrayBuffer, byteOffset: number, length:
* var arr = filledarrayBy( buf, 8, 2, 'float64', constantFunction( 1.0 ) );
* // returns <Float64Array>[ 1.0, 1.0 ]
*/
declare function filledarrayBy( buffer: ArrayBuffer, byteOffset: number, length: number, dtype: DataType, clbk: Callback, thisArg?: any ): RealOrComplexTypedArray; // tslint:disable-line:max-line-length unified-signatures
declare function filledarrayBy( buffer: ArrayBuffer, byteOffset: number, length: number, dtype: DataType, clbk: Callback, thisArg?: any ): RealOrComplexTypedArray; unified-signatures

/**
* Returns a filled typed array view of an `ArrayBuffer` according to a provided callback function.
Expand All @@ -319,7 +319,7 @@ declare function filledarrayBy( buffer: ArrayBuffer, byteOffset: number, length:
* var arr = filledarrayBy( buf, 8, constantFunction( 1.0 ) );
* // returns <Float64Array>[ 1.0, 1.0, 1.0 ]
*/
declare function filledarrayBy( buffer: ArrayBuffer, byteOffset: number, clbk: Callback, thisArg?: any ): RealOrComplexTypedArray; // tslint:disable-line:max-line-length
declare function filledarrayBy( buffer: ArrayBuffer, byteOffset: number, clbk: Callback, thisArg?: any ): RealOrComplexTypedArray;

/**
* Returns a filled typed array view of an `ArrayBuffer` according to a provided callback function.
Expand Down Expand Up @@ -358,7 +358,7 @@ declare function filledarrayBy( buffer: ArrayBuffer, byteOffset: number, clbk: C
* var arr = filledarrayBy( buf, 8, 'float64', constantFunction( 1.0 ) );
* // returns <Float64Array>[ 1.0, 1.0, 1.0 ]
*/
declare function filledarrayBy( buffer: ArrayBuffer, byteOffset: number, dtype: DataType, clbk: Callback, thisArg?: any ): RealOrComplexTypedArray; // tslint:disable-line:max-line-length unified-signatures
declare function filledarrayBy( buffer: ArrayBuffer, byteOffset: number, dtype: DataType, clbk: Callback, thisArg?: any ): RealOrComplexTypedArray; unified-signatures

/**
* Returns a filled typed array view of an `ArrayBuffer` according to a provided callback function.
Expand All @@ -380,7 +380,7 @@ declare function filledarrayBy( buffer: ArrayBuffer, byteOffset: number, dtype:
* var arr = filledarrayBy( buf, constantFunction( 1.0 ) );
* // returns <Float64Array>[ 1.0, 1.0, 1.0, 1.0 ]
*/
declare function filledarrayBy( buffer: ArrayBuffer, clbk: Callback, thisArg?: any ): RealOrComplexTypedArray; // tslint:disable-line:max-line-length unified-signatures

This comment has been minimized.

Copy link
@kgryte

kgryte Nov 4, 2023

Member

@Planeshifter These signatures are now broken.

This comment has been minimized.

Copy link
@Planeshifter

Planeshifter Nov 5, 2023

Author Member

Fixed.

This comment has been minimized.

Copy link
@kgryte

kgryte Nov 5, 2023

Member

@Planeshifter Just to be sure: did you confirm that there were not other orphaned lint directives apart from unified-signatures? I did not personally check each file.

This comment has been minimized.

Copy link
@kgryte

kgryte Nov 5, 2023

Member

@Planeshifter This has not been completely fixed. Another instance can be found here: https://github.com/stdlib-js/stdlib/blame/3b59a503252cfe16765f84eab3bdb0ca06f6bb79/lib/node_modules/%40stdlib/ndarray/zeros/docs/types/index.d.ts#L554. I just ran into this when working on another part of the codebase which attempted to use ndarray/zeros, causing lint failures.

declare function filledarrayBy( buffer: ArrayBuffer, clbk: Callback, thisArg?: any ): RealOrComplexTypedArray; unified-signatures

/**
* Returns a filled typed array view of an `ArrayBuffer` according to a provided callback function.
Expand Down Expand Up @@ -418,7 +418,7 @@ declare function filledarrayBy( buffer: ArrayBuffer, clbk: Callback, thisArg?: a
* var arr = filledarrayBy( buf, 'float64', constantFunction( 1.0 ) );
* // returns <Float64Array>[ 1.0, 1.0, 1.0, 1.0 ]
*/
declare function filledarrayBy( buffer: ArrayBuffer, dtype: DataType, clbk: Callback, thisArg?: any ): RealOrComplexTypedArray; // tslint:disable-line:max-line-length unified-signatures
declare function filledarrayBy( buffer: ArrayBuffer, dtype: DataType, clbk: Callback, thisArg?: any ): RealOrComplexTypedArray; unified-signatures


// EXPORTS //
Expand Down
Loading

0 comments on commit df3c9b3

Please sign in to comment.