diff options
| author | renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> | 2024-10-12 12:21:40 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-10-12 12:21:40 +0200 |
| commit | 033c23b109de18dcfaf8abeab4e134a47c57b460 (patch) | |
| tree | 640729dcb52fd457c0069626016132f7c31e9173 | |
| parent | 25506d2d61acf79d889e70ff7a43fde9eee1302a (diff) | |
| download | faker-033c23b109de18dcfaf8abeab4e134a47c57b460.tar.xz faker-033c23b109de18dcfaf8abeab4e134a47c57b460.zip | |
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]>
| -rw-r--r-- | eslint.config.ts | 1 | ||||
| -rw-r--r-- | package.json | 2 | ||||
| -rw-r--r-- | pnpm-lock.yaml | 10 | ||||
| -rw-r--r-- | src/internal/mersenne.ts | 2 |
4 files changed, 7 insertions, 8 deletions
diff --git a/eslint.config.ts b/eslint.config.ts index 05fe235f..4b522eec 100644 --- a/eslint.config.ts +++ b/eslint.config.ts @@ -153,7 +153,6 @@ const config: ReturnType<typeof tseslint.config> = tseslint.config( // TODO @Shinigami92 2023-09-23: The following rules currently conflict with our code. // Each rule should be checked whether it should be enabled/configured and the problems fixed, or stay disabled permanently. - 'unicorn/better-regex': 'off', 'unicorn/consistent-function-scoping': 'off', 'unicorn/no-object-as-default-parameter': 'off', 'unicorn/prefer-export-from': 'off', diff --git a/package.json b/package.json index 7c52cf1a..718ab7e6 100644 --- a/package.json +++ b/package.json @@ -122,7 +122,7 @@ "eslint-config-prettier": "9.1.0", "eslint-plugin-jsdoc": "50.3.1", "eslint-plugin-prettier": "5.2.1", - "eslint-plugin-unicorn": "55.0.0", + "eslint-plugin-unicorn": "56.0.0", "jiti": "1.21.6", "npm-run-all2": "6.2.3", "prettier": "3.3.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1acea91e..abcddbd8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -66,8 +66,8 @@ importers: specifier: 5.2.1 version: 5.2.1(@types/[email protected])([email protected]([email protected]([email protected])))([email protected]([email protected]))([email protected]) eslint-plugin-unicorn: - specifier: 55.0.0 - version: 55.0.0([email protected]([email protected])) + specifier: 56.0.0 + version: 56.0.0([email protected]([email protected])) jiti: specifier: 1.21.6 version: 1.21.6 @@ -1778,8 +1778,8 @@ packages: eslint-config-prettier: optional: true - resolution: {integrity: sha512-n3AKiVpY2/uDcGrS3+QsYDkjPfaOrNrsfQxU9nt5nitd9KuvVXrfAvgCO9DYPSfap+Gqjw9EOrXIsBp5tlHZjA==} + resolution: {integrity: sha512-aXpddVz/PQMmd69uxO98PA4iidiVNvA0xOtbpUoz1WhBd4RxOQQYqN618v68drY0hmy5uU2jy1bheKEVWBjlPw==} engines: {node: '>=18.18'} peerDependencies: eslint: '>=8.56.0' @@ -5372,7 +5372,7 @@ snapshots: '@types/eslint': 9.6.1 eslint-config-prettier: 9.1.0([email protected]([email protected])) dependencies: '@babel/helper-validator-identifier': 7.24.7 '@eslint-community/eslint-utils': 4.4.0([email protected]([email protected])) diff --git a/src/internal/mersenne.ts b/src/internal/mersenne.ts index 351faa4e..82a0915b 100644 --- a/src/internal/mersenne.ts +++ b/src/internal/mersenne.ts @@ -171,7 +171,7 @@ export class MersenneTwister19937 { this.initGenrand(19650218); let i = 1; let j = 0; - let k = this.N > keyLength ? this.N : keyLength; + let k = Math.max(this.N, keyLength); for (; k; k--) { // mt[i] = (mt[i] ^ ((mt[i-1] ^ (mt[i-1] >> 30)) * 1664525)) + init_key[j] + j; this.mt[i] = this.addition32( |
