Skip to content

Commit 033c23b

Browse files
chore(deps): update dependency eslint-plugin-unicorn to v56 (#3159)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: ST-DDT <[email protected]>
1 parent 25506d2 commit 033c23b

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

eslint.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ const config: ReturnType<typeof tseslint.config> = tseslint.config(
153153

154154
// TODO @Shinigami92 2023-09-23: The following rules currently conflict with our code.
155155
// Each rule should be checked whether it should be enabled/configured and the problems fixed, or stay disabled permanently.
156-
'unicorn/better-regex': 'off',
157156
'unicorn/consistent-function-scoping': 'off',
158157
'unicorn/no-object-as-default-parameter': 'off',
159158
'unicorn/prefer-export-from': 'off',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
"eslint-config-prettier": "9.1.0",
123123
"eslint-plugin-jsdoc": "50.3.1",
124124
"eslint-plugin-prettier": "5.2.1",
125-
"eslint-plugin-unicorn": "55.0.0",
125+
"eslint-plugin-unicorn": "56.0.0",
126126
"jiti": "1.21.6",
127127
"npm-run-all2": "6.2.3",
128128
"prettier": "3.3.3",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/internal/mersenne.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export class MersenneTwister19937 {
171171
this.initGenrand(19650218);
172172
let i = 1;
173173
let j = 0;
174-
let k = this.N > keyLength ? this.N : keyLength;
174+
let k = Math.max(this.N, keyLength);
175175
for (; k; k--) {
176176
// mt[i] = (mt[i] ^ ((mt[i-1] ^ (mt[i-1] >> 30)) * 1664525)) + init_key[j] + j;
177177
this.mt[i] = this.addition32(

0 commit comments

Comments
 (0)