Skip to content

Commit

Permalink
build: replace tslint directive with eslint equivalent
Browse files Browse the repository at this point in the history
  • Loading branch information
Planeshifter committed Nov 12, 2023
1 parent 312bed1 commit 8fbd70f
Show file tree
Hide file tree
Showing 72 changed files with 71 additions and 73 deletions.
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/array/buffer/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

// tslint:disable: no-construct
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */

import ArrayBuffer = require( './index' );

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/array/dataview/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

// tslint:disable: no-construct
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */

import ArrayBuffer = require( '@stdlib/array/buffer' );
import DataView = require( './index' );
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/array/float32/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

// tslint:disable: no-construct
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */

import Float32Array = require( './index' );

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/array/float64/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

// tslint:disable: no-construct
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */

import Float64Array = require( './index' );

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/array/int16/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

// tslint:disable: no-construct
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */

import Int16Array = require( './index' );

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/array/int32/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

// tslint:disable: no-construct
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */

import Int32Array = require( './index' );

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/array/int8/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

// tslint:disable: no-construct
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */

import Int8Array = require( './index' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

// tslint:disable: no-construct
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */
// tslint:disable: no-unsafe-any

import SharedArrayBuffer = require( './index' );
Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/array/uint16/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

// tslint:disable: no-construct
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */

import Uint16Array = require( './index' );

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/array/uint32/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

// tslint:disable: no-construct
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */

import Uint32Array = require( './index' );

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/array/uint8/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

// tslint:disable: no-construct
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */

import Uint8Array = require( './index' );

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/array/uint8c/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

// tslint:disable: no-construct
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */

import Uint8ClampedArray = require( './index' );

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/bench/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */

import Bench = require( './index' );

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/bigint/ctor/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

// tslint:disable: no-unused-expression, no-unsafe-any
/* eslint-disable @typescript-eslint/no-unused-expressions */, no-unsafe-any

This comment has been minimized.

Copy link
@kgryte

kgryte Nov 13, 2023

Member

@Planeshifter This is a bug.

This comment has been minimized.

Copy link
@Planeshifter

Planeshifter Nov 13, 2023

Author Member

@kgryte Thanks for catching! Fixed.


import BigInt = require( './index' );

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/boolean/ctor/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

// tslint:disable: no-construct
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */

import Bool = require( './index' );

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/function/ctor/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

// tslint:disable: no-construct
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */

import Fcn = require( './index' );

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/number/ctor/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

// tslint:disable: no-construct
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */

import Number = require( './index' );

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/object/ctor/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

// tslint:disable: no-construct
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */

import Obj = require( './index' );

Expand Down
2 changes: 1 addition & 1 deletion lib/node_modules/@stdlib/proxy/ctor/docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

// tslint:disable: no-construct
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */

import Proxy = require( './index' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import RandomStream = require( './index' );

// The constructor returns a stream...
{
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */
new RandomStream( 2.0, 5.0 ); // $ExpectType RandomStream
new RandomStream( 2.0, 5.0, {} ); // $ExpectType RandomStream
new RandomStream( 2.0, 5.0, { 'iter': 10 } ); // $ExpectType RandomStream
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import RandomStream = require( './index' );

// The constructor returns a stream...
{
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */
new RandomStream( 2.0, 5.0 ); // $ExpectType RandomStream
new RandomStream( 2.0, 5.0, {} ); // $ExpectType RandomStream
new RandomStream( 2.0, 5.0, { 'iter': 10 } ); // $ExpectType RandomStream
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import RandomStream = require( './index' );

// The constructor returns a stream...
{
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */
new RandomStream( 2.0, 5.0 ); // $ExpectType RandomStream
new RandomStream( 2.0, 5.0, {} ); // $ExpectType RandomStream
new RandomStream( 2.0, 5.0, { 'iter': 10 } ); // $ExpectType RandomStream
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import RandomStream = require( './index' );

// The constructor returns a stream...
{
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */
new RandomStream( 20, 0.3 ); // $ExpectType RandomStream
new RandomStream( 20, 0.3, {} ); // $ExpectType RandomStream
new RandomStream( 20, 0.3, { 'iter': 10 } ); // $ExpectType RandomStream
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */

import RandomStream = require( './index' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import RandomStream = require( './index' );

// The constructor returns a stream...
{
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */
new RandomStream( 2.0, 5.0 ); // $ExpectType RandomStream
new RandomStream( 2.0, 5.0, {} ); // $ExpectType RandomStream
new RandomStream( 2.0, 5.0, { 'iter': 10 } ); // $ExpectType RandomStream
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import RandomStream = require( './index' );

// The constructor returns a stream...
{
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */
new RandomStream( 2.0, 5.0 ); // $ExpectType RandomStream
new RandomStream( 2.0, 5.0, {} ); // $ExpectType RandomStream
new RandomStream( 2.0, 5.0, { 'iter': 10 } ); // $ExpectType RandomStream
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import RandomStream = require( './index' );

// The constructor returns a stream...
{
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */
new RandomStream( 2, 5 ); // $ExpectType RandomStream
new RandomStream( 2, 5, {} ); // $ExpectType RandomStream
new RandomStream( 2, 5, { 'iter': 10 } ); // $ExpectType RandomStream
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import RandomStream = require( './index' );

// The constructor returns a stream...
{
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */
new RandomStream( 2, 5.0 ); // $ExpectType RandomStream
new RandomStream( 2, 5.0, {} ); // $ExpectType RandomStream
new RandomStream( 2, 5.0, { 'iter': 10 } ); // $ExpectType RandomStream
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import RandomStream = require( './index' );

// The constructor returns a stream...
{
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */
new RandomStream( 2.0, 5.0 ); // $ExpectType RandomStream
new RandomStream( 2.0, 5.0, {} ); // $ExpectType RandomStream
new RandomStream( 2.0, 5.0, { 'iter': 10 } ); // $ExpectType RandomStream
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import RandomStream = require( './index' );

// The constructor returns a stream...
{
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */
new RandomStream( 2.0, 5.0, 3.0 ); // $ExpectType RandomStream
new RandomStream( 2.0, 5.0, 3.0, {} ); // $ExpectType RandomStream
new RandomStream( 2.0, 5.0, 3.0, { 'iter': 10 } ); // $ExpectType RandomStream
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import RandomStream = require( './index' );

// The constructor returns a stream...
{
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */

This comment has been minimized.

Copy link
@kgryte

kgryte Nov 13, 2023

Member

Re-enabling was addressed in 2dba7d6.

new RandomStream( 2.0, 5.0 ); // $ExpectType RandomStream
new RandomStream( 2.0, 5.0, {} ); // $ExpectType RandomStream
new RandomStream( 2.0, 5.0, { 'iter': 10 } ); // $ExpectType RandomStream
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import RandomStream = require( './index' );

// The constructor returns a stream...
{
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */
new RandomStream( 2.0, 5.0 ); // $ExpectType RandomStream
new RandomStream( 2.0, 5.0, {} ); // $ExpectType RandomStream
new RandomStream( 2.0, 5.0, { 'iter': 10 } ); // $ExpectType RandomStream
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import RandomStream = require( './index' );

// The constructor returns a stream...
{
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */
new RandomStream( 20, 10, 7 ); // $ExpectType RandomStream
new RandomStream( 20, 10, 7, {} ); // $ExpectType RandomStream
new RandomStream( 20, 10, 7, { 'iter': 10 } ); // $ExpectType RandomStream
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */

import RandomStream = require( './index' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import RandomStream = require( './index' );

// The constructor returns a stream...
{
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */
new RandomStream( 2.0, 5.0 ); // $ExpectType RandomStream
new RandomStream( 2.0, 5.0, {} ); // $ExpectType RandomStream
new RandomStream( 2.0, 5.0, { 'iter': 10 } ); // $ExpectType RandomStream
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import RandomStream = require( './index' );

// The constructor returns a stream...
{
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */
new RandomStream( 2.0, 5.0 ); // $ExpectType RandomStream
new RandomStream( 2.0, 5.0, {} ); // $ExpectType RandomStream
new RandomStream( 2.0, 5.0, { 'iter': 10 } ); // $ExpectType RandomStream
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import RandomStream = require( './index' );

// The constructor returns a stream...
{
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */
new RandomStream( 2.0, 5.0 ); // $ExpectType RandomStream
new RandomStream( 2.0, 5.0, {} ); // $ExpectType RandomStream
new RandomStream( 2.0, 5.0, { 'iter': 10 } ); // $ExpectType RandomStream
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import RandomStream = require( './index' );

// The constructor returns a stream...
{
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */
new RandomStream( 2.0, 5.0 ); // $ExpectType RandomStream
new RandomStream( 2.0, 5.0, {} ); // $ExpectType RandomStream
new RandomStream( 2.0, 5.0, { 'iter': 10 } ); // $ExpectType RandomStream
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import RandomStream = require( './index' );

// The constructor returns a stream...
{
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */
new RandomStream( 2.0, 5.0 ); // $ExpectType RandomStream
new RandomStream( 2.0, 5.0, {} ); // $ExpectType RandomStream
new RandomStream( 2.0, 5.0, { 'iter': 10 } ); // $ExpectType RandomStream
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import RandomStream = require( './index' );

// The constructor returns a stream...
{
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */
new RandomStream( 2.0, 5.0 ); // $ExpectType RandomStream
new RandomStream( 2.0, 5.0, {} ); // $ExpectType RandomStream
new RandomStream( 2.0, 5.0, { 'iter': 10 } ); // $ExpectType RandomStream
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */

import RandomStream = require( './index' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */

import RandomStream = require( './index' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */

import RandomStream = require( './index' );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import RandomStream = require( './index' );

// The constructor returns a stream...
{
// tslint:disable: no-unused-expression
/* eslint-disable @typescript-eslint/no-unused-expressions */
new RandomStream( 20.0, 0.3 ); // $ExpectType RandomStream
new RandomStream( 20.0, 0.3, {} ); // $ExpectType RandomStream
new RandomStream( 20.0, 0.3, { 'iter': 10 } ); // $ExpectType RandomStream
Expand Down
Loading

0 comments on commit 8fbd70f

Please sign in to comment.