diff options
| author | Shinigami <[email protected]> | 2024-08-30 19:56:58 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-08-30 19:56:58 +0200 |
| commit | c850653edf90e5b9ff2b507281768a8a7eadec62 (patch) | |
| tree | 7f6def1efceb72c038437f2bf9e163b43b3b37ea | |
| parent | 1a94e96797990586dcd0e1d23051741a0556de80 (diff) | |
| download | faker-c850653edf90e5b9ff2b507281768a8a7eadec62.tar.xz faker-c850653edf90e5b9ff2b507281768a8a7eadec62.zip | |
infra: switch to @stylistic/eslint-plugin (#3069)
| -rw-r--r-- | eslint.config.js | 19 | ||||
| -rw-r--r-- | package.json | 1 | ||||
| -rw-r--r-- | pnpm-lock.yaml | 166 |
3 files changed, 180 insertions, 6 deletions
diff --git a/eslint.config.js b/eslint.config.js index 0df787c8..f79a2db7 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -2,6 +2,7 @@ /* eslint-disable @typescript-eslint/no-unsafe-argument */ import { fixupPluginRules, includeIgnoreFile } from '@eslint/compat'; import eslint from '@eslint/js'; +import stylistic from '@stylistic/eslint-plugin'; import eslintPluginDeprecation from 'eslint-plugin-deprecation'; import eslintPluginJsdoc from 'eslint-plugin-jsdoc'; import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'; @@ -100,10 +101,6 @@ export default tseslint.config( '@typescript-eslint/no-unsafe-assignment': 'off', '@typescript-eslint/no-unsafe-call': 'off', '@typescript-eslint/no-unsafe-member-access': 'off', - '@typescript-eslint/padding-line-between-statements': [ - 'error', - { blankLine: 'always', prev: 'block-like', next: '*' }, - ], '@typescript-eslint/prefer-regexp-exec': 'error', '@typescript-eslint/restrict-plus-operands': [ 'error', @@ -129,6 +126,20 @@ export default tseslint.config( }, //#endregion + //#region stylistic + { + plugins: { + '@stylistic': stylistic, + }, + rules: { + '@stylistic/padding-line-between-statements': [ + 'error', + { blankLine: 'always', prev: 'block-like', next: '*' }, + ], + }, + }, + //#endregion + //#region deprecation { plugins: { diff --git a/package.json b/package.json index 72719efa..a84c2cdd 100644 --- a/package.json +++ b/package.json @@ -99,6 +99,7 @@ "@eslint-types/unicorn": "52.0.0", "@eslint/compat": "1.1.1", "@eslint/js": "9.9.0", + "@stylistic/eslint-plugin": "2.6.4", "@types/node": "20.16.1", "@types/sanitize-html": "2.13.0", "@types/semver": "7.5.8", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cbe2966b..7a2acb84 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -35,6 +35,9 @@ importers: '@eslint/js': specifier: 9.9.0 version: 9.9.0 + '@stylistic/eslint-plugin': + specifier: 2.6.4 + version: 2.6.4([email protected])([email protected]) '@types/node': specifier: 20.16.1 version: 20.16.1 @@ -79,7 +82,7 @@ importers: version: 50.2.2([email protected]) eslint-plugin-prettier: specifier: 5.2.1 + version: 5.2.1(@types/[email protected])([email protected]([email protected]))([email protected])([email protected]) eslint-plugin-unicorn: specifier: 55.0.0 version: 55.0.0([email protected]) @@ -826,15 +829,50 @@ packages: '@shikijs/[email protected]': resolution: {integrity: sha512-JJqL8QBVCJh3L61jqqEXgFq1cTycwjcGj7aSmqOEsbxnETM9hRlaB74QuXvY/fVJNjbNt8nvWo0VwAXKvMSLRg==} + '@stylistic/[email protected]': + resolution: {integrity: sha512-kx1hS3xTvzxZLdr/DCU/dLBE++vcP97sHeEFX2QXhk1Ipa4K1rzPOLw1HCbf4mU3s+7kHP5eYpDe+QteEOFLug==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + eslint: '>=8.40.0' + + '@stylistic/[email protected]': + resolution: {integrity: sha512-bIvVhdtjmyu3S10V7QRIuawtCZSq9gRmzAX23ucjCOdSFzEwlq+di0IM0riBAvvQerrJL4SM6G3xgyPs8BSXIA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + eslint: '>=8.40.0' + + '@stylistic/[email protected]': + resolution: {integrity: sha512-EuRvtxhf7Hv8OoMIePulP/6rBJIgPTu1l5GAm1780WcF1Cl8bOZXIn84Pdac5pNv6lVlzCOFm8MD3VE+2YROuA==} + peerDependencies: + eslint: '*' + + '@stylistic/[email protected]': + resolution: {integrity: sha512-yxL8Hj6WkObw1jfiLpBzKy5yfxY6vwlwO4miq34ySErUjUecPV5jxfVbOe4q1QDPKemQGPq93v7sAQS5PzM8lA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + eslint: '>=8.40.0' + + '@stylistic/[email protected]': + resolution: {integrity: sha512-euUGnjzH8EOqEYTGk9dB2OBINp0FX1nuO7/k4fO82zNRBIKZgJoDwTLM4Ce+Om6W1Qmh1PrZjCr4jh4tMEXGPQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + eslint: '>=8.40.0' + '@ts-morph/[email protected]': resolution: {integrity: sha512-c1xMmNHWpNselmpIqursHeOHHBTIsJLbB+NuovbTTRCNiTLEr/U9dbJ8qy0jd/O2x5pc3seWuOUN5R2IoOTp8A==} + '@types/[email protected]': + resolution: {integrity: sha512-gi6WQJ7cHRgZxtkQEoyHMppPjq9Kxo5Tjn2prSKDSmZrCz8TZ3jSRCeTJm+WoM+oB0WG37bRqLzaaU3q7JypGg==} + '@types/[email protected]': resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} '@types/[email protected]': resolution: {integrity: sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==} + '@types/[email protected]': + resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} + '@types/[email protected]': resolution: {integrity: sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==} @@ -902,6 +940,10 @@ packages: resolution: {integrity: sha512-jjhdIE/FPF2B7Z1uzc6i3oWKbGcHb87Qw7AWj6jmEqNOfDFbJWtjt/XfwCpvNkpGWlcJaog5vTR+VV8+w9JflA==} engines: {node: ^18.18.0 || >=20.0.0} + '@typescript-eslint/[email protected]': + resolution: {integrity: sha512-OFn80B38yD6WwpoHU2Tz/fTz7CgFqInllBoC3WP+/jLbTb4gGPTy9HBSTsbDWkMdN55XlVU0mMDYAtgvlUspGw==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@typescript-eslint/[email protected]': resolution: {integrity: sha512-XL0FJXuCLaDuX2sYqZUUSOJ2sG5/i1AAze+axqmLnSkNEVMVYLF+cbwlB2w8D1tinFuSikHmFta+P+HOofrLeA==} engines: {node: ^18.18.0 || >=20.0.0} @@ -916,6 +958,10 @@ packages: resolution: {integrity: sha512-iZqi+Ds1y4EDYUtlOOC+aUmxnE9xS/yCigkjA7XpTKV6nCBd3Hp/PRGGmdwnfkV2ThMyYldP1wRpm/id99spTQ==} engines: {node: ^18.18.0 || >=20.0.0} + '@typescript-eslint/[email protected]': + resolution: {integrity: sha512-6a9QSK396YqmiBKPkJtxsgZZZVjYQ6wQ/TlI0C65z7vInaETuC6HAHD98AGLC8DyIPqHytvNuS8bBVvNLKyqvQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@typescript-eslint/[email protected]': resolution: {integrity: sha512-aP1v/BSPnnyhMHts8cf1qQ6Q1IFwwRvAQGRvBFkWlo3/lH29OXA3Pts+c10nxRxIBrDnoMqzhgdwVe5f2D6OzA==} engines: {node: ^18.18.0 || >=20.0.0} @@ -925,16 +971,35 @@ packages: typescript: optional: true + '@typescript-eslint/[email protected]': + resolution: {integrity: sha512-kiG4EDUT4dImplOsbh47B1QnNmXSoUqOjWDvCJw/o8LgfD0yr7k2uy54D5Wm0j4t71Ge1NkynGhpWdS0dEIAUA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + '@typescript-eslint/[email protected]': resolution: {integrity: sha512-kK0/rNa2j74XuHVcoCZxdFBMF+aq/vH83CXAOHieC+2Gis4mF8jJXT5eAfyD3K0sAxtPuwxaIOIOvhwzVDt/kw==} engines: {node: ^18.18.0 || >=20.0.0} peerDependencies: eslint: ^8.56.0 + '@typescript-eslint/[email protected]': + resolution: {integrity: sha512-O46eaYKDlV3TvAVDNcoDzd5N550ckSe8G4phko++OCSC1dYIb9LTc3HDGYdWqWIAT5qDUKphO6sd9RrpIJJPfg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 + '@typescript-eslint/[email protected]': resolution: {integrity: sha512-cDF0/Gf81QpY3xYyJKDV14Zwdmid5+uuENhjH2EqFaF0ni+yAyq/LzMaIJdhNJXZI7uLzwIlA+V7oWoyn6Curg==} engines: {node: ^18.18.0 || >=20.0.0} + '@typescript-eslint/[email protected]': + resolution: {integrity: sha512-sbgsPMW9yLvS7IhCi8IpuK1oBmtbWUNP+hBdwl/I9nzqVsszGnNGti5r9dUtF5RLivHUFFIdRvLiTsPhzSyJ3Q==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@vitejs/[email protected]': resolution: {integrity: sha512-nY9IwH12qeiJqumTCLJLE7IiNx7HZ39cbHaysEUd+Myvbz9KAqd2yq+U01Kab1R/H1BmiyM2ShTYlNH32Fzo3A==} engines: {node: ^18.0.0 || >=20.0.0} @@ -2712,6 +2777,10 @@ packages: resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} engines: {node: '>=8.6'} + resolution: {integrity: sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==} + engines: {node: '>=12'} + resolution: {integrity: sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==} engines: {node: '>=0.10'} @@ -4169,6 +4238,51 @@ snapshots: dependencies: shiki: 1.14.1 + '@stylistic/[email protected]([email protected])': + dependencies: + '@types/eslint': 9.6.0 + acorn: 8.12.1 + eslint: 9.9.0 + eslint-visitor-keys: 4.0.0 + espree: 10.1.0 + + '@stylistic/[email protected]([email protected])': + dependencies: + '@stylistic/eslint-plugin-js': 2.6.4([email protected]) + '@types/eslint': 9.6.0 + eslint: 9.9.0 + eslint-visitor-keys: 4.0.0 + espree: 10.1.0 + estraverse: 5.3.0 + picomatch: 4.0.2 + + '@stylistic/[email protected]([email protected])': + dependencies: + '@types/eslint': 9.6.0 + eslint: 9.9.0 + + dependencies: + '@stylistic/eslint-plugin-js': 2.6.4([email protected]) + '@types/eslint': 9.6.0 + '@typescript-eslint/utils': 8.2.0([email protected])([email protected]) + eslint: 9.9.0 + transitivePeerDependencies: + - supports-color + - typescript + + dependencies: + '@stylistic/eslint-plugin-js': 2.6.4([email protected]) + '@stylistic/eslint-plugin-jsx': 2.6.4([email protected]) + '@stylistic/eslint-plugin-plus': 2.6.4([email protected]) + '@stylistic/eslint-plugin-ts': 2.6.4([email protected])([email protected]) + '@types/eslint': 9.6.0 + eslint: 9.9.0 + transitivePeerDependencies: + - supports-color + - typescript + '@ts-morph/[email protected]': dependencies: fast-glob: 3.3.2 @@ -4176,12 +4290,19 @@ snapshots: mkdirp: 3.0.1 path-browserify: 1.0.1 + '@types/[email protected]': + dependencies: + '@types/estree': 1.0.5 + '@types/json-schema': 7.0.15 + '@types/[email protected]': {} '@types/[email protected]': dependencies: '@types/unist': 3.0.3 + '@types/[email protected]': {} + '@types/[email protected]': {} '@types/[email protected]': @@ -4256,6 +4377,11 @@ snapshots: '@typescript-eslint/types': 7.18.0 '@typescript-eslint/visitor-keys': 7.18.0 + '@typescript-eslint/[email protected]': + dependencies: + '@typescript-eslint/types': 8.2.0 + '@typescript-eslint/visitor-keys': 8.2.0 + dependencies: '@typescript-eslint/typescript-estree': 7.18.0([email protected]) @@ -4270,6 +4396,8 @@ snapshots: '@typescript-eslint/[email protected]': {} + '@typescript-eslint/[email protected]': {} + '@typescript-eslint/[email protected]([email protected])': dependencies: '@typescript-eslint/types': 7.18.0 @@ -4285,6 +4413,21 @@ snapshots: transitivePeerDependencies: - supports-color + '@typescript-eslint/[email protected]([email protected])': + dependencies: + '@typescript-eslint/types': 8.2.0 + '@typescript-eslint/visitor-keys': 8.2.0 + debug: 4.3.6([email protected]) + globby: 11.1.0 + is-glob: 4.0.3 + minimatch: 9.0.5 + semver: 7.6.3 + ts-api-utils: 1.3.0([email protected]) + optionalDependencies: + typescript: 5.5.4 + transitivePeerDependencies: + - supports-color + dependencies: '@eslint-community/eslint-utils': 4.4.0([email protected]) @@ -4296,11 +4439,27 @@ snapshots: - supports-color - typescript + dependencies: + '@eslint-community/eslint-utils': 4.4.0([email protected]) + '@typescript-eslint/scope-manager': 8.2.0 + '@typescript-eslint/types': 8.2.0 + '@typescript-eslint/typescript-estree': 8.2.0([email protected]) + eslint: 9.9.0 + transitivePeerDependencies: + - supports-color + - typescript + '@typescript-eslint/[email protected]': dependencies: '@typescript-eslint/types': 7.18.0 eslint-visitor-keys: 3.4.3 + '@typescript-eslint/[email protected]': + dependencies: + '@typescript-eslint/types': 8.2.0 + eslint-visitor-keys: 3.4.3 + '@vitejs/[email protected]([email protected](@types/[email protected]))([email protected]([email protected]))': dependencies: vite: 5.4.1(@types/[email protected]) @@ -5273,13 +5432,14 @@ snapshots: transitivePeerDependencies: - supports-color + [email protected](@types/[email protected])([email protected]([email protected]))([email protected])([email protected]): dependencies: eslint: 9.9.0 prettier: 3.3.3 prettier-linter-helpers: 1.0.0 synckit: 0.9.1 optionalDependencies: + '@types/eslint': 9.6.0 eslint-config-prettier: 9.1.0([email protected]) @@ -6277,6 +6437,8 @@ snapshots: + [email protected]: {} + |
