diff options
| author | renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> | 2024-04-01 17:21:25 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-04-01 17:21:25 +0200 |
| commit | 2e97b52c822c5fdaf1a67b955ad08450f59011fd (patch) | |
| tree | 1341a247ccf6d56a5a03af2aeec269983c4cec95 | |
| parent | 158cda6a94bd91ee180fa028a4abca7e3f317527 (diff) | |
| download | faker-2e97b52c822c5fdaf1a67b955ad08450f59011fd.tar.xz faker-2e97b52c822c5fdaf1a67b955ad08450f59011fd.zip | |
chore(deps): update eslint (#2771)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Matt Mayer <[email protected]>
Co-authored-by: ST-DDT <[email protected]>
| -rw-r--r-- | .eslintrc.cjs | 10 | ||||
| -rw-r--r-- | package.json | 12 | ||||
| -rw-r--r-- | pnpm-lock.yaml | 144 | ||||
| -rw-r--r-- | test/faker.spec.ts | 4 |
4 files changed, 58 insertions, 112 deletions
diff --git a/.eslintrc.cjs b/.eslintrc.cjs index a2b8e936..61553e1f 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -95,6 +95,16 @@ module.exports = defineConfig({ { blankLine: 'always', prev: 'block-like', next: '*' }, ], '@typescript-eslint/prefer-regexp-exec': 'error', + '@typescript-eslint/restrict-plus-operands': [ + 'error', + { + allowAny: false, + allowBoolean: false, + allowNullish: false, + allowNumberAndString: true, + allowRegExp: false, + }, + ], '@typescript-eslint/restrict-template-expressions': [ 'error', { allowNumber: true, allowBoolean: true }, diff --git a/package.json b/package.json index c6a9b661..8465a38a 100644 --- a/package.json +++ b/package.json @@ -92,17 +92,17 @@ "@actions/github": "6.0.0", "@algolia/client-search": "4.23.2", "@eslint-types/deprecation": "2.0.0-1", - "@eslint-types/jsdoc": "48.2.0", + "@eslint-types/jsdoc": "48.2.1", "@eslint-types/prettier": "5.1.3", - "@eslint-types/typescript-eslint": "7.0.2", + "@eslint-types/typescript-eslint": "7.2.0", "@eslint-types/unicorn": "51.0.1", "@types/markdown-it": "13.0.7", "@types/node": "20.12.2", "@types/sanitize-html": "2.11.0", "@types/semver": "7.5.8", "@types/validator": "13.11.9", - "@typescript-eslint/eslint-plugin": "7.2.0", - "@typescript-eslint/parser": "7.2.0", + "@typescript-eslint/eslint-plugin": "7.4.0", + "@typescript-eslint/parser": "7.4.0", "@vitest/coverage-v8": "1.4.0", "@vitest/ui": "1.4.0", "@vueuse/core": "10.9.0", @@ -113,10 +113,10 @@ "eslint-define-config": "2.1.0", "eslint-gitignore": "0.1.0", "eslint-plugin-deprecation": "2.0.0", - "eslint-plugin-jsdoc": "48.2.1", + "eslint-plugin-jsdoc": "48.2.2", "eslint-plugin-prettier": "5.1.3", "eslint-plugin-unicorn": "51.0.1", - "eslint-plugin-vitest": "0.3.26", + "eslint-plugin-vitest": "0.4.1", "glob": "10.3.12", "npm-run-all2": "6.1.2", "prettier": "3.2.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d7ae57c4..961f3b24 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,14 +15,14 @@ devDependencies: specifier: 2.0.0-1 version: 2.0.0-1 '@eslint-types/jsdoc': - specifier: 48.2.0 - version: 48.2.0 + specifier: 48.2.1 + version: 48.2.1 '@eslint-types/prettier': specifier: 5.1.3 version: 5.1.3 '@eslint-types/typescript-eslint': - specifier: 7.0.2 - version: 7.0.2 + specifier: 7.2.0 + version: 7.2.0 '@eslint-types/unicorn': specifier: 51.0.1 version: 51.0.1 @@ -42,11 +42,11 @@ devDependencies: specifier: 13.11.9 version: 13.11.9 '@typescript-eslint/eslint-plugin': - specifier: 7.2.0 + specifier: 7.4.0 '@typescript-eslint/parser': - specifier: 7.2.0 - version: 7.2.0([email protected])([email protected]) + specifier: 7.4.0 + version: 7.4.0([email protected])([email protected]) '@vitest/coverage-v8': specifier: 1.4.0 version: 1.4.0([email protected]) @@ -78,8 +78,8 @@ devDependencies: specifier: 2.0.0 version: 2.0.0([email protected])([email protected]) eslint-plugin-jsdoc: - specifier: 48.2.1 - version: 48.2.1([email protected]) + specifier: 48.2.2 + version: 48.2.2([email protected]) eslint-plugin-prettier: specifier: 5.1.3 @@ -87,8 +87,8 @@ devDependencies: specifier: 51.0.1 version: 51.0.1([email protected]) eslint-plugin-vitest: - specifier: 0.3.26 - version: 0.3.26(@typescript-eslint/[email protected])([email protected])([email protected])([email protected]) + specifier: 0.4.1 + version: 0.4.1(@typescript-eslint/[email protected])([email protected])([email protected])([email protected]) glob: specifier: 10.3.12 version: 10.3.12 @@ -896,16 +896,16 @@ packages: resolution: {integrity: sha512-bsl7dssIW598hWQBIsnKMHQCguXkjI14117dXVpRhaaGBmzUAJxGpL9ClM36alal6NSbljrxJvzBadINVcWeoQ==} dev: true - /@eslint-types/[email protected]: - resolution: {integrity: sha512-IdSdckN+Tv5qTaBia5GOEeD837B1ENuqiPVWUKYI5dkK5vX6osV/EBSVFF6ti1NlEmm3IjkgnfUeRMhRV4BxSQ==} + /@eslint-types/[email protected]: + resolution: {integrity: sha512-ElgrRgEw262ca9BirIeylVQ834IfCVSr/7wMvv2+Dkl3SaPnzjs00bjmaT6srQs58gdxyZXVV6ZPiPyiV2xxsQ==} dev: true /@eslint-types/[email protected]: resolution: {integrity: sha512-jJHwCAdqj+iw2ahrFrA9FSDrYJSAEShWS6s/X/6fmD8xpdaKUpFqG/ecTnUlO6Iyxhkt3lj79Nfu4MWUpo7k6Q==} dev: true - /@eslint-types/[email protected]: - resolution: {integrity: sha512-2F67MVKhkJ2rSwoYvNJzJULqZwR5rNYI/eWoIrKDQ14lMzfqzbpzCBvnHrivBYWTN+Az7MVX00TzDTrjOc+YNA==} + /@eslint-types/[email protected]: + resolution: {integrity: sha512-QeCnZEHdeehkcZSy5q41aVHXD78FElfTjQ8AG5HnEREtyBG3PEz7NTuLD13Xbh6p0YR7q4GkV4EswVxz8IiMxA==} dev: true /@eslint-types/[email protected]: @@ -1362,9 +1362,9 @@ packages: dev: true optional: true - /@typescript-eslint/[email protected](@typescript-eslint/[email protected])([email protected])([email protected]): - resolution: {integrity: sha512-mdekAHOqS9UjlmyF/LSs6AIEvfceV749GFxoBAjwAv0nkevfKHWQFDMcBZWUiIC5ft6ePWivXoS36aKQ0Cy3sw==} - engines: {node: ^16.0.0 || >=18.0.0} + /@typescript-eslint/[email protected](@typescript-eslint/[email protected])([email protected])([email protected]): + resolution: {integrity: sha512-yHMQ/oFaM7HZdVrVm/M2WHaNPgyuJH4WelkSVEWSSsir34kxW2kDJCxlXRhhGWEsMN0WAW/vLpKfKVcm8k+MPw==} + engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: '@typescript-eslint/parser': ^7.0.0 eslint: ^8.56.0 @@ -1374,11 +1374,11 @@ packages: optional: true dependencies: '@eslint-community/regexpp': 4.10.0 - '@typescript-eslint/parser': 7.2.0([email protected])([email protected]) - '@typescript-eslint/scope-manager': 7.2.0 - '@typescript-eslint/type-utils': 7.2.0([email protected])([email protected]) - '@typescript-eslint/utils': 7.2.0([email protected])([email protected]) - '@typescript-eslint/visitor-keys': 7.2.0 + '@typescript-eslint/parser': 7.4.0([email protected])([email protected]) + '@typescript-eslint/scope-manager': 7.4.0 + '@typescript-eslint/type-utils': 7.4.0([email protected])([email protected]) + '@typescript-eslint/utils': 7.4.0([email protected])([email protected]) + '@typescript-eslint/visitor-keys': 7.4.0 debug: 4.3.4([email protected]) eslint: 8.57.0 graphemer: 1.4.0 @@ -1391,9 +1391,9 @@ packages: - supports-color dev: true - resolution: {integrity: sha512-5FKsVcHTk6TafQKQbuIVkXq58Fnbkd2wDL4LB7AURN7RUOu1utVP+G8+6u3ZhEroW3DF6hyo3ZEXxgKgp4KeCg==} - engines: {node: ^16.0.0 || >=18.0.0} + resolution: {integrity: sha512-ZvKHxHLusweEUVwrGRXXUVzFgnWhigo4JurEj0dGF1tbcGh6buL+ejDdjxOQxv6ytcY1uhun1p2sm8iWStlgLQ==} + engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: eslint: ^8.56.0 typescript: '*' @@ -1401,10 +1401,10 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/scope-manager': 7.2.0 - '@typescript-eslint/types': 7.2.0 - '@typescript-eslint/typescript-estree': 7.2.0([email protected]) - '@typescript-eslint/visitor-keys': 7.2.0 + '@typescript-eslint/scope-manager': 7.4.0 + '@typescript-eslint/types': 7.4.0 + '@typescript-eslint/typescript-estree': 7.4.0([email protected]) + '@typescript-eslint/visitor-keys': 7.4.0 debug: 4.3.4([email protected]) eslint: 8.57.0 typescript: 5.4.3 @@ -1420,14 +1420,6 @@ packages: '@typescript-eslint/visitor-keys': 6.21.0 dev: true - /@typescript-eslint/[email protected]: - resolution: {integrity: sha512-Qh976RbQM/fYtjx9hs4XkayYujB/aPwglw2choHmf3zBjB4qOywWSdt9+KLRdHubGcoSwBnXUH2sR3hkyaERRg==} - engines: {node: ^16.0.0 || >=18.0.0} - dependencies: - '@typescript-eslint/types': 7.2.0 - '@typescript-eslint/visitor-keys': 7.2.0 - dev: true - /@typescript-eslint/[email protected]: resolution: {integrity: sha512-68VqENG5HK27ypafqLVs8qO+RkNc7TezCduYrx8YJpXq2QGZ30vmNZGJJJC48+MVn4G2dCV8m5ZTVnzRexTVtw==} engines: {node: ^18.18.0 || >=20.0.0} @@ -1436,9 +1428,9 @@ packages: '@typescript-eslint/visitor-keys': 7.4.0 dev: true - resolution: {integrity: sha512-xHi51adBHo9O9330J8GQYQwrKBqbIPJGZZVQTHHmy200hvkLZFWJIFtAG/7IYTWUyun6DE6w5InDReePJYJlJA==} - engines: {node: ^16.0.0 || >=18.0.0} + resolution: {integrity: sha512-247ETeHgr9WTRMqHbbQdzwzhuyaJ8dPTuyuUEMANqzMRB1rj/9qFIuIXK7l0FX9i9FXbHeBQl/4uz6mYuCE7Aw==} + engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: eslint: ^8.56.0 typescript: '*' @@ -1446,8 +1438,8 @@ packages: typescript: optional: true dependencies: - '@typescript-eslint/typescript-estree': 7.2.0([email protected]) - '@typescript-eslint/utils': 7.2.0([email protected])([email protected]) + '@typescript-eslint/typescript-estree': 7.4.0([email protected]) + '@typescript-eslint/utils': 7.4.0([email protected])([email protected]) debug: 4.3.4([email protected]) eslint: 8.57.0 ts-api-utils: 1.3.0([email protected]) @@ -1461,11 +1453,6 @@ packages: engines: {node: ^16.0.0 || >=18.0.0} dev: true - /@typescript-eslint/[email protected]: - resolution: {integrity: sha512-XFtUHPI/abFhm4cbCDc5Ykc8npOKBSJePY3a3s+lwumt7XWJuzP5cZcfZ610MIPHjQjNsOLlYK8ASPaNG8UiyA==} - engines: {node: ^16.0.0 || >=18.0.0} - dev: true - /@typescript-eslint/[email protected]: resolution: {integrity: sha512-mjQopsbffzJskos5B4HmbsadSJQWaRK0UxqQ7GuNA9Ga4bEKeiO6b2DnB6cM6bpc8lemaPseh0H9B/wyg+J7rw==} engines: {node: ^18.18.0 || >=20.0.0} @@ -1493,28 +1480,6 @@ packages: - supports-color dev: true - /@typescript-eslint/[email protected]([email protected]): - resolution: {integrity: sha512-cyxS5WQQCoBwSakpMrvMXuMDEbhOo9bNHHrNcEWis6XHx6KF518tkF1wBvKIn/tpq5ZpUYK7Bdklu8qY0MsFIA==} - engines: {node: ^16.0.0 || >=18.0.0} - peerDependencies: - typescript: '*' - peerDependenciesMeta: - typescript: - optional: true - dependencies: - '@typescript-eslint/types': 7.2.0 - '@typescript-eslint/visitor-keys': 7.2.0 - debug: 4.3.4([email protected]) - globby: 11.1.0 - is-glob: 4.0.3 - minimatch: 9.0.3 - semver: 7.6.0 - ts-api-utils: 1.3.0([email protected]) - typescript: 5.4.3 - transitivePeerDependencies: - - supports-color - dev: true - /@typescript-eslint/[email protected]([email protected]): resolution: {integrity: sha512-A99j5AYoME/UBQ1ucEbbMEmGkN7SE0BvZFreSnTd1luq7yulcHdyGamZKizU7canpGDWGJ+Q6ZA9SyQobipePg==} engines: {node: ^18.18.0 || >=20.0.0} @@ -1556,25 +1521,6 @@ packages: - typescript dev: true - resolution: {integrity: sha512-YfHpnMAGb1Eekpm3XRK8hcMwGLGsnT6L+7b2XyRv6ouDuJU1tZir1GS2i0+VXRatMwSI1/UfcyPe53ADkU+IuA==} - engines: {node: ^16.0.0 || >=18.0.0} - peerDependencies: - eslint: ^8.56.0 - dependencies: - '@eslint-community/eslint-utils': 4.4.0([email protected]) - '@types/json-schema': 7.0.15 - '@types/semver': 7.5.8 - '@typescript-eslint/scope-manager': 7.2.0 - '@typescript-eslint/types': 7.2.0 - '@typescript-eslint/typescript-estree': 7.2.0([email protected]) - eslint: 8.57.0 - semver: 7.6.0 - transitivePeerDependencies: - - supports-color - - typescript - dev: true - resolution: {integrity: sha512-NQt9QLM4Tt8qrlBVY9lkMYzfYtNz8/6qwZg8pI3cMGlPnj6mOpRxxAm7BMJN9K0AiY+1BwJ5lVC650YJqYOuNg==} engines: {node: ^18.18.0 || >=20.0.0} @@ -1602,14 +1548,6 @@ packages: eslint-visitor-keys: 3.4.3 dev: true - /@typescript-eslint/[email protected]: - resolution: {integrity: sha512-c6EIQRHhcpl6+tO8EMR+kjkkV+ugUNXOmeASA1rlzkd8EPIriavpWoiEz1HR/VLhbVIdhqnV6E7JZm00cBDx2A==} - engines: {node: ^16.0.0 || >=18.0.0} - dependencies: - '@typescript-eslint/types': 7.2.0 - eslint-visitor-keys: 3.4.3 - dev: true - /@typescript-eslint/[email protected]: resolution: {integrity: sha512-0zkC7YM0iX5Y41homUUeW1CHtZR01K3ybjM1l6QczoMuay0XKtrb93kv95AxUGwdjGr64nNqnOCwmEl616N8CA==} engines: {node: ^18.18.0 || >=20.0.0} @@ -3288,8 +3226,8 @@ packages: - supports-color dev: true - resolution: {integrity: sha512-iUvbcyDZSO/9xSuRv2HQBw++8VkV/pt3UWtX9cpPH0l7GKPq78QC/6+PmyQHHvNZaTjAce6QVciEbnc6J/zH5g==} + resolution: {integrity: sha512-S0Gk+rpT5w/ephKCncUY7kUsix9uE4B9XI8D/fS1/26d8okE+vZsuG1IvIt4B6sJUdQqsnzi+YXfmh+HJG11CA==} engines: {node: '>=18'} peerDependencies: eslint: ^7.0.0 || ^8.0.0 || ^9.0.0 @@ -3356,8 +3294,8 @@ packages: - supports-color dev: true - /[email protected](@typescript-eslint/[email protected])([email protected])([email protected])([email protected]): - resolution: {integrity: sha512-oxe5JSPgRjco8caVLTh7Ti8PxpwJdhSV0hTQAmkFcNcmy/9DnqLB/oNVRA11RmVRP//2+jIIT6JuBEcpW3obYg==} + /[email protected](@typescript-eslint/[email protected])([email protected])([email protected])([email protected]): + resolution: {integrity: sha512-+PnZ2u/BS+f5FiuHXz4zKsHPcMKHie+K+1Uvu/x91ovkCMEOJqEI8E9Tw1Wzx2QRz4MHOBHYf1ypO8N1K0aNAA==} engines: {node: ^18.0.0 || >= 20.0.0} peerDependencies: '@typescript-eslint/eslint-plugin': '*' @@ -3369,7 +3307,7 @@ packages: vitest: optional: true dependencies: - '@typescript-eslint/eslint-plugin': 7.2.0(@typescript-eslint/[email protected])([email protected])([email protected]) + '@typescript-eslint/eslint-plugin': 7.4.0(@typescript-eslint/[email protected])([email protected])([email protected]) '@typescript-eslint/utils': 7.4.0([email protected])([email protected]) eslint: 8.57.0 vitest: 1.4.0(@types/[email protected])(@vitest/[email protected]) diff --git a/test/faker.spec.ts b/test/faker.spec.ts index 63ae794e..78e07de0 100644 --- a/test/faker.spec.ts +++ b/test/faker.spec.ts @@ -16,9 +16,7 @@ describe('faker', () => { it('should not log anything on startup', async () => { const spies: MockInstance[] = keys(console) .filter((key) => typeof console[key] === 'function') - .map((methodName) => - vi.spyOn(console, methodName as keyof typeof console) - ); + .map((methodName) => vi.spyOn(console, methodName)); (await import('..')).default; |
