diff --git a/types/shuffle-array/index.d.ts b/types/shuffle-array/index.d.ts index a7bd547bcd..5f486afead 100644 --- a/types/shuffle-array/index.d.ts +++ b/types/shuffle-array/index.d.ts @@ -4,7 +4,6 @@ // jwulf0 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - /** * copy - Sets if should return a shuffled copy of the given array. By default it's a falsy value. * rng - Specifies a custom random number generator. diff --git a/types/shuffle-array/shuffle-array-tests.ts b/types/shuffle-array/shuffle-array-tests.ts index 3a91e908ab..3d7563a6af 100644 --- a/types/shuffle-array/shuffle-array-tests.ts +++ b/types/shuffle-array/shuffle-array-tests.ts @@ -1,17 +1,16 @@ - import shuffle = require('shuffle-array'); // shuffle() -var a = [1, 2, 3, 4, 5]; -var result: number[]; +const a = [1, 2, 3, 4, 5]; +let result: number[]; result = shuffle(a); result = shuffle(a, {}); result = shuffle(a, {copy: true}); result = shuffle(a, {rng: () => 0}); result = shuffle(a, {copy: true, rng: () => 0}); -var b = ['aaa', 'bbb', 'ccc'] -var result2: string | string[]; +const b = ['aaa', 'bbb', 'ccc']; +let result2: string | string[]; result2 = shuffle.pick(b); result2 = shuffle.pick(b, {}); result2 = shuffle.pick(b, {picks: 3}); diff --git a/types/shuffle-array/tslint.json b/types/shuffle-array/tslint.json index 2e0b1e2f20..fd2732f9dc 100644 --- a/types/shuffle-array/tslint.json +++ b/types/shuffle-array/tslint.json @@ -1,13 +1,7 @@ { "extends": "dtslint/dt.json", "rules": { - "ban-types": false, - "callable-types": false, - "no-consecutive-blank-lines": false, - "no-redundant-jsdoc": false, - "no-var-keyword": false, "prefer-const": false, - "prefer-method-signature": false, "semicolon": false, "trim-file": false }