From 6e7fab53b3b7135979ac002c32c1aa7cf43b2fae Mon Sep 17 00:00:00 2001 From: naporin0624 Date: Fri, 28 Jun 2024 07:53:45 +0000 Subject: [PATCH 1/3] chore: wip --- .eslintignore | 12 -- .eslintrc.js | 71 ------------ eslint.config.mjs | 135 +++++++++++++++++++++++ package.json | 8 +- yarn.lock | 271 ++++++++++++++++++++++++++++++---------------- 5 files changed, 317 insertions(+), 180 deletions(-) delete mode 100644 .eslintignore delete mode 100644 .eslintrc.js create mode 100644 eslint.config.mjs diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index f69d8a3cc..000000000 --- a/.eslintignore +++ /dev/null @@ -1,12 +0,0 @@ -dist/ -node_modules/ -__snapshots__/ -.yarn/ -/public/ -/storybook-static/ -/coverage/ -.next/ -/misc/ - -/packages/tailwind-diff/bin/tailwind-diff.js -/packages/icon-files/src/ diff --git a/.eslintrc.js b/.eslintrc.js deleted file mode 100644 index 3bde6a08a..000000000 --- a/.eslintrc.js +++ /dev/null @@ -1,71 +0,0 @@ -/** @type { import('eslint').Linter.Config } */ -const config = { - extends: [ - 'eslint:recommended', - 'plugin:@typescript-eslint/recommended', - 'plugin:@typescript-eslint/recommended-requiring-type-checking', - 'plugin:react/recommended', - 'plugin:react-hooks/recommended', - 'plugin:storybook/recommended', - 'plugin:import/recommended', - 'prettier', - ], - rules: { - '@typescript-eslint/explicit-module-boundary-types': 'off', - '@typescript-eslint/no-unused-vars': [ - 'error', - { argsIgnorePattern: '^_', ignoreRestSiblings: true }, - ], - '@typescript-eslint/no-unnecessary-condition': 'error', - '@typescript-eslint/strict-boolean-expressions': 'error', - '@typescript-eslint/consistent-type-definitions': 'off', - '@typescript-eslint/no-empty-interface': 'off', - 'react/prop-types': 'off', - 'react/no-unknown-property': ['error', { ignore: ['css'] }], - 'no-console': 'warn', - 'react/jsx-uses-react': 'off', - 'react/react-in-jsx-scope': 'off', - 'import/no-extraneous-dependencies': [ - 'error', - { - devDependencies: [ - '*.config.ts', - '**/*.config.ts', - '**/*.test.ts', - '**/*.test.tsx', - '**/*.story.tsx', - '**/_lib/**', - ], - }, - ], - }, - parserOptions: { - project: ['./tsconfig.json', './packages/**/tsconfig.json'], - }, - env: { - node: true, - 'jest/globals': true, - }, - settings: { - react: { - version: 'detect', - }, - 'import/resolver': { - typescript: { - project: ['./tsconfig.json', './packages/**/tsconfig.json'], - }, - }, - }, - plugins: ['jest', 'import'], - overrides: [ - { files: ['*.cjs', '*.mjs'] }, - { - files: ['**/docs/**'], - rules: { - 'import/no-extraneous-dependencies': 'off', - }, - }, - ], -} - -module.exports = config diff --git a/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 000000000..acca59d7e --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1,135 @@ +import { fixupConfigRules, fixupPluginRules } from '@eslint/compat' +import jest from 'eslint-plugin-jest' +import _import from 'eslint-plugin-import' +import globals from 'globals' +import path from 'node:path' +import { fileURLToPath } from 'node:url' +import js from '@eslint/js' +import { FlatCompat } from '@eslint/eslintrc' + +const __filename = fileURLToPath(import.meta.url) +const __dirname = path.dirname(__filename) + +const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: js.configs.recommended, + allConfig: js.configs.all, +}) + +export default [ + { + ignores: [ + '**/dist/', + '**/node_modules/', + '**/__snapshots__/', + '**/.yarn/', + 'public/', + 'storybook-static/', + 'coverage/', + '**/.next/', + 'misc/', + 'packages/tailwind-diff/bin/tailwind-diff.js', + 'packages/icon-files/src/', + 'eslint.config.mjs', + ], + }, + ...fixupConfigRules( + compat.extends( + 'eslint:recommended', + 'plugin:@typescript-eslint/recommended', + 'plugin:@typescript-eslint/recommended-requiring-type-checking', + 'plugin:react/recommended', + 'plugin:react-hooks/recommended', + 'plugin:storybook/recommended', + 'plugin:import/recommended', + 'prettier' + ) + ), + { + plugins: { + jest, + import: fixupPluginRules(_import), + }, + + languageOptions: { + globals: { + ...globals.node, + ...jest.environments.globals.globals, + }, + + ecmaVersion: 5, + sourceType: 'commonjs', + + parserOptions: { + project: ['./tsconfig.json', './packages/**/tsconfig.json'], + }, + }, + + settings: { + react: { + version: 'detect', + }, + + 'import/resolver': { + typescript: { + project: ['./tsconfig.json', './packages/**/tsconfig.json'], + }, + }, + }, + + rules: { + '@typescript-eslint/explicit-module-boundary-types': 'off', + + '@typescript-eslint/no-unused-vars': [ + 'error', + { + argsIgnorePattern: '^_', + ignoreRestSiblings: true, + }, + ], + + '@typescript-eslint/no-unnecessary-condition': 'error', + '@typescript-eslint/strict-boolean-expressions': 'error', + '@typescript-eslint/consistent-type-definitions': 'off', + '@typescript-eslint/no-empty-interface': 'off', + 'react/prop-types': 'off', + + 'react/no-unknown-property': [ + 'error', + { + ignore: ['css'], + }, + ], + + 'no-console': 'warn', + 'react/jsx-uses-react': 'off', + 'react/react-in-jsx-scope': 'off', + + 'import/no-extraneous-dependencies': [ + 'error', + { + devDependencies: [ + '*.config.js', + '*.config.mjs', + '*.config.ts', + '**/*.config.ts', + '**/*.test.ts', + '**/*.test.tsx', + '**/*.story.tsx', + '**/_lib/**', + ], + }, + ], + }, + }, + { + files: ['**/*.cjs', '**/*.mjs'], + }, + { + files: ['**/docs/**'], + + rules: { + 'import/no-extraneous-dependencies': 'off', + }, + }, +] diff --git a/package.json b/package.json index f3f9c0aa6..0c6dcc45e 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,9 @@ "@commitlint/cli": "^16.1.0", "@commitlint/config-conventional": "^16.0.0", "@commitlint/config-lerna-scopes": "^16.0.0", + "@eslint/compat": "^1.1.0", + "@eslint/eslintrc": "^3.1.0", + "@eslint/js": "^9.5.0", "@originjs/vite-plugin-commonjs": "^1.0.3", "@playwright/test": "^1.40.1", "@storybook/addon-a11y": "^8.0.5", @@ -67,6 +70,8 @@ "@storybook/web-components": "^8.0.5", "@stylelint/postcss-css-in-js": "^0.37.2", "@types/eslint": "^8.4.1", + "@types/eslint__eslintrc": "^2.1.1", + "@types/eslint__js": "^8.42.3", "@types/jest": "^27.4.0", "@types/jest-image-snapshot": "^6.4.0", "@types/jest-specific-snapshot": "^0.5.9", @@ -83,7 +88,7 @@ "css-loader": "^6.10.0", "esbuild": "^0.14.14", "esbuild-jest": "^0.5.0", - "eslint": "^8.36.0", + "eslint": "^9.5.0", "eslint-config-prettier": "^8.7.0", "eslint-import-resolver-typescript": "^3.6.1", "eslint-plugin-import": "^2.29.1", @@ -92,6 +97,7 @@ "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-storybook": "^0.8.0", "glob": "^7.2.0", + "globals": "^15.6.0", "http-server": "^14.1.1", "husky": "^9.0.11", "jest": "^27.4.7", diff --git a/yarn.lock b/yarn.lock index 3a48a7583..cbb89cddf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3462,27 +3462,59 @@ __metadata: languageName: node linkType: hard -"@eslint/eslintrc@npm:^2.0.1": - version: 2.0.1 - resolution: "@eslint/eslintrc@npm:2.0.1" +"@eslint-community/regexpp@npm:^4.6.1": + version: 4.10.1 + resolution: "@eslint-community/regexpp@npm:4.10.1" + checksum: 1e04bc366fb8152c9266258cd25e3fded102f1d212a9476928e3cb98c48be645df6d676728d1c596053992fb9134879fe0de23c9460035b342cceb22d3af1776 + languageName: node + linkType: hard + +"@eslint/compat@npm:^1.1.0": + version: 1.1.0 + resolution: "@eslint/compat@npm:1.1.0" + checksum: 79c495145e8dbbd9596344cc939b7d35e799938da0ef165bc031e718373f718dab4b9a9039b234fbb50fc3a65999b0a4b8a258fe85d41058df2d0bfdde6accaf + languageName: node + linkType: hard + +"@eslint/config-array@npm:^0.16.0": + version: 0.16.0 + resolution: "@eslint/config-array@npm:0.16.0" + dependencies: + "@eslint/object-schema": ^2.1.4 + debug: ^4.3.1 + minimatch: ^3.0.5 + checksum: b5682fef89232338200005e75008ee8edf147d265383ce4a9eb863c06ec38eff3dd0a4700b720774ad1f26d7c2721ab33eb425b1785ff95bc0844b23d5e57f94 + languageName: node + linkType: hard + +"@eslint/eslintrc@npm:^3.1.0": + version: 3.1.0 + resolution: "@eslint/eslintrc@npm:3.1.0" dependencies: ajv: ^6.12.4 debug: ^4.3.2 - espree: ^9.5.0 - globals: ^13.19.0 + espree: ^10.0.1 + globals: ^14.0.0 ignore: ^5.2.0 import-fresh: ^3.2.1 js-yaml: ^4.1.0 minimatch: ^3.1.2 strip-json-comments: ^3.1.1 - checksum: 56b9192a687a450db53a7b883daf9f0f447c43b3510189cf88808a7a2467c2a302a42a50f184cc6d5a9faf3d1df890a2ef0fd0d60b751f32a3e9dfea717c6b48 + checksum: b0a9bbd98c8b9e0f4d975b042ff9b874dde722b20834ea2ff46551c3de740d4f10f56c449b790ef34d7f82147cbddfc22b004a43cc885dbc2664bb134766b5e4 languageName: node linkType: hard -"@eslint/js@npm:8.36.0": - version: 8.36.0 - resolution: "@eslint/js@npm:8.36.0" - checksum: b7d6b84b823c8c7784be390741196617565527b1f7c0977fde9455bfb57fd88f81c074a03dd878757d2c33fa29f24291e9ecbc1425710f067917324b55e1bf3a +"@eslint/js@npm:9.5.0, @eslint/js@npm:^9.5.0": + version: 9.5.0 + resolution: "@eslint/js@npm:9.5.0" + checksum: e79639f7d9fd754e432dd33d1908d31c48bcf93aadc9e88b987c51b0208b5b3120f0c0038108ff2517c35b8c3d4bcd74f4e506a93b676b8bb311d29cce111c09 + languageName: node + linkType: hard + +"@eslint/object-schema@npm:^2.1.4": + version: 2.1.4 + resolution: "@eslint/object-schema@npm:2.1.4" + checksum: 5a03094115bcdab7991dbbc5d17a9713f394cebb4b44d3eaf990d7487b9b8e1877b817997334ab40be52e299a0384595c6f6ba91b389901e5e1d21efda779271 languageName: node linkType: hard @@ -3600,17 +3632,6 @@ __metadata: languageName: node linkType: hard -"@humanwhocodes/config-array@npm:^0.11.8": - version: 0.11.8 - resolution: "@humanwhocodes/config-array@npm:0.11.8" - dependencies: - "@humanwhocodes/object-schema": ^1.2.1 - debug: ^4.1.1 - minimatch: ^3.0.5 - checksum: 0fd6b3c54f1674ce0a224df09b9c2f9846d20b9e54fabae1281ecfc04f2e6ad69bf19e1d6af6a28f88e8aa3990168b6cb9e1ef755868c3256a630605ec2cb1d3 - languageName: node - linkType: hard - "@humanwhocodes/module-importer@npm:^1.0.1": version: 1.0.1 resolution: "@humanwhocodes/module-importer@npm:1.0.1" @@ -3618,10 +3639,10 @@ __metadata: languageName: node linkType: hard -"@humanwhocodes/object-schema@npm:^1.2.1": - version: 1.2.1 - resolution: "@humanwhocodes/object-schema@npm:1.2.1" - checksum: a824a1ec31591231e4bad5787641f59e9633827d0a2eaae131a288d33c9ef0290bd16fda8da6f7c0fcb014147865d12118df10db57f27f41e20da92369fcb3f1 +"@humanwhocodes/retry@npm:^0.3.0": + version: 0.3.0 + resolution: "@humanwhocodes/retry@npm:0.3.0" + checksum: 4349cb8b60466a000e945fde8f8551cefb01ebba22ead4a92ac7b145f67f5da6b52e5a1e0c53185d732d0a49958ac29327934a4a5ac1d0bc20efb4429a4f7bf7 languageName: node linkType: hard @@ -8373,6 +8394,24 @@ __metadata: languageName: node linkType: hard +"@types/eslint__eslintrc@npm:^2.1.1": + version: 2.1.1 + resolution: "@types/eslint__eslintrc@npm:2.1.1" + dependencies: + "@types/eslint": "*" + checksum: 75b3cd589c152a2079fd8a84bf44066159fa8d9237a14f2b782bc37cd09e26b1647f5b0f0dc1145aaee53e26dc335c0d7ef3e8fdad5d7432329af371fd88479d + languageName: node + linkType: hard + +"@types/eslint__js@npm:^8.42.3": + version: 8.42.3 + resolution: "@types/eslint__js@npm:8.42.3" + dependencies: + "@types/eslint": "*" + checksum: e31f19de642d35a664695d0cab873ce6de19b8a3506755835b91f8a49a8c41099dcace449df49f1a486de6fa6565d21ceb1fa33be6004fc7adef9226e5d256a1 + languageName: node + linkType: hard + "@types/estree@npm:*, @types/estree@npm:^0.0.50": version: 0.0.50 resolution: "@types/estree@npm:0.0.50" @@ -9914,6 +9953,15 @@ __metadata: languageName: node linkType: hard +"acorn@npm:^8.12.0": + version: 8.12.0 + resolution: "acorn@npm:8.12.0" + bin: + acorn: bin/acorn + checksum: ae142de8739ef15a5d936c550c1d267fc4dedcdbe62ad1aa2c0009afed1de84dd0a584684a5d200bb55d8db14f3e09a95c6e92a5303973c04b9a7413c36d1df0 + languageName: node + linkType: hard + "acorn@npm:^8.2.4, acorn@npm:^8.4.1, acorn@npm:^8.5.0": version: 8.8.0 resolution: "acorn@npm:8.8.0" @@ -9932,15 +9980,6 @@ __metadata: languageName: node linkType: hard -"acorn@npm:^8.8.0": - version: 8.8.2 - resolution: "acorn@npm:8.8.2" - bin: - acorn: bin/acorn - checksum: f790b99a1bf63ef160c967e23c46feea7787e531292bb827126334612c234ed489a0dc2c7ba33156416f0ffa8d25bf2b0fdb7f35c2ba60eb3e960572bece4001 - languageName: node - linkType: hard - "add-stream@npm:^1.0.0": version: 1.0.0 resolution: "add-stream@npm:1.0.0" @@ -10019,7 +10058,7 @@ __metadata: languageName: node linkType: hard -"ajv@npm:^6.10.0, ajv@npm:^6.12.4, ajv@npm:^6.12.5, ajv@npm:^6.12.6": +"ajv@npm:^6.12.4, ajv@npm:^6.12.5, ajv@npm:^6.12.6": version: 6.12.6 resolution: "ajv@npm:6.12.6" dependencies: @@ -11649,6 +11688,9 @@ __metadata: "@commitlint/cli": ^16.1.0 "@commitlint/config-conventional": ^16.0.0 "@commitlint/config-lerna-scopes": ^16.0.0 + "@eslint/compat": ^1.1.0 + "@eslint/eslintrc": ^3.1.0 + "@eslint/js": ^9.5.0 "@originjs/vite-plugin-commonjs": ^1.0.3 "@playwright/test": ^1.40.1 "@storybook/addon-a11y": ^8.0.5 @@ -11671,6 +11713,8 @@ __metadata: "@storybook/web-components": ^8.0.5 "@stylelint/postcss-css-in-js": ^0.37.2 "@types/eslint": ^8.4.1 + "@types/eslint__eslintrc": ^2.1.1 + "@types/eslint__js": ^8.42.3 "@types/jest": ^27.4.0 "@types/jest-image-snapshot": ^6.4.0 "@types/jest-specific-snapshot": ^0.5.9 @@ -11687,7 +11731,7 @@ __metadata: css-loader: ^6.10.0 esbuild: ^0.14.14 esbuild-jest: ^0.5.0 - eslint: ^8.36.0 + eslint: ^9.5.0 eslint-config-prettier: ^8.7.0 eslint-import-resolver-typescript: ^3.6.1 eslint-plugin-import: ^2.29.1 @@ -11696,6 +11740,7 @@ __metadata: eslint-plugin-react-hooks: ^4.6.0 eslint-plugin-storybook: ^0.8.0 glob: ^7.2.0 + globals: ^15.6.0 http-server: ^14.1.1 husky: ^9.0.11 jest: ^27.4.7 @@ -14921,13 +14966,13 @@ __metadata: languageName: node linkType: hard -"eslint-scope@npm:^7.1.1": - version: 7.1.1 - resolution: "eslint-scope@npm:7.1.1" +"eslint-scope@npm:^8.0.1": + version: 8.0.1 + resolution: "eslint-scope@npm:8.0.1" dependencies: esrecurse: ^4.3.0 estraverse: ^5.2.0 - checksum: 9f6e974ab2db641ca8ab13508c405b7b859e72afe9f254e8131ff154d2f40c99ad4545ce326fd9fde3212ff29707102562a4834f1c48617b35d98c71a97fbf3e + checksum: 67a5a39312dadb8c9a677df0f2e8add8daf15280b08bfe07f898d5347ee2d7cd2a1f5c2760f34e46e8f5f13f7192f47c2c10abe676bfa4173ae5539365551940 languageName: node linkType: hard @@ -14963,64 +15008,65 @@ __metadata: languageName: node linkType: hard -"eslint@npm:^8.36.0": - version: 8.36.0 - resolution: "eslint@npm:8.36.0" +"eslint-visitor-keys@npm:^4.0.0": + version: 4.0.0 + resolution: "eslint-visitor-keys@npm:4.0.0" + checksum: 5c09f89cf29d87cdbfbac38802a880d3c2e65f8cb61c689888346758f1e24a4c7f6caefeac9474dfa52058a99920623599bdb00516976a30134abeba91275aa2 + languageName: node + linkType: hard + +"eslint@npm:^9.5.0": + version: 9.5.0 + resolution: "eslint@npm:9.5.0" dependencies: "@eslint-community/eslint-utils": ^4.2.0 - "@eslint-community/regexpp": ^4.4.0 - "@eslint/eslintrc": ^2.0.1 - "@eslint/js": 8.36.0 - "@humanwhocodes/config-array": ^0.11.8 + "@eslint-community/regexpp": ^4.6.1 + "@eslint/config-array": ^0.16.0 + "@eslint/eslintrc": ^3.1.0 + "@eslint/js": 9.5.0 "@humanwhocodes/module-importer": ^1.0.1 + "@humanwhocodes/retry": ^0.3.0 "@nodelib/fs.walk": ^1.2.8 - ajv: ^6.10.0 + ajv: ^6.12.4 chalk: ^4.0.0 cross-spawn: ^7.0.2 debug: ^4.3.2 - doctrine: ^3.0.0 escape-string-regexp: ^4.0.0 - eslint-scope: ^7.1.1 - eslint-visitor-keys: ^3.3.0 - espree: ^9.5.0 - esquery: ^1.4.2 + eslint-scope: ^8.0.1 + eslint-visitor-keys: ^4.0.0 + espree: ^10.0.1 + esquery: ^1.5.0 esutils: ^2.0.2 fast-deep-equal: ^3.1.3 - file-entry-cache: ^6.0.1 + file-entry-cache: ^8.0.0 find-up: ^5.0.0 glob-parent: ^6.0.2 - globals: ^13.19.0 - grapheme-splitter: ^1.0.4 ignore: ^5.2.0 - import-fresh: ^3.0.0 imurmurhash: ^0.1.4 is-glob: ^4.0.0 is-path-inside: ^3.0.3 - js-sdsl: ^4.1.4 - js-yaml: ^4.1.0 json-stable-stringify-without-jsonify: ^1.0.1 levn: ^0.4.1 lodash.merge: ^4.6.2 minimatch: ^3.1.2 natural-compare: ^1.4.0 - optionator: ^0.9.1 + optionator: ^0.9.3 strip-ansi: ^6.0.1 - strip-json-comments: ^3.1.0 text-table: ^0.2.0 bin: eslint: bin/eslint.js - checksum: e9a961fc3b3de5cff5a1cb2c92eeffaa7e155a715489e30b3e1e76f186bd1255e0481e09564f2094733c0b1dbd3453499fb72ae7c043c83156e11e6d965b2304 + checksum: 8e6c85eb30a6959150cb40e16a07ce662c4f4a9f87c677eda13360eb11522b6f16627a41e05dc0b2e0715685f1d61c2694d671a1ce09ceb5bd1a887eef14f13c languageName: node linkType: hard -"espree@npm:^9.5.0": - version: 9.5.0 - resolution: "espree@npm:9.5.0" +"espree@npm:^10.0.1": + version: 10.1.0 + resolution: "espree@npm:10.1.0" dependencies: - acorn: ^8.8.0 + acorn: ^8.12.0 acorn-jsx: ^5.3.2 - eslint-visitor-keys: ^3.3.0 - checksum: a7f110aefb6407e0d3237aa635ab3cea87106ae63748dd23c67031afccc640d04c4209fca2daf16e2233c82efb505faead0fb84097478fd9cc6e8f8dd80bf99d + eslint-visitor-keys: ^4.0.0 + checksum: a4708ab987f6c03734b8738b1588e9f31b2e305e869ca4677c60d82294eb05f7099b6687eb39eeb0913bb2d49bdf0bd0f31c511599ea7ee171281f871a9c897e languageName: node linkType: hard @@ -15034,7 +15080,7 @@ __metadata: languageName: node linkType: hard -"esquery@npm:^1.4.2": +"esquery@npm:^1.5.0": version: 1.5.0 resolution: "esquery@npm:1.5.0" dependencies: @@ -15519,6 +15565,15 @@ __metadata: languageName: node linkType: hard +"file-entry-cache@npm:^8.0.0": + version: 8.0.0 + resolution: "file-entry-cache@npm:8.0.0" + dependencies: + flat-cache: ^4.0.0 + checksum: f67802d3334809048c69b3d458f672e1b6d26daefda701761c81f203b80149c35dea04d78ea4238969dd617678e530876722a0634c43031a0957f10cc3ed190f + languageName: node + linkType: hard + "file-system-cache@npm:2.3.0": version: 2.3.0 resolution: "file-system-cache@npm:2.3.0" @@ -15694,6 +15749,16 @@ __metadata: languageName: node linkType: hard +"flat-cache@npm:^4.0.0": + version: 4.0.1 + resolution: "flat-cache@npm:4.0.1" + dependencies: + flatted: ^3.2.9 + keyv: ^4.5.4 + checksum: 899fc86bf6df093547d76e7bfaeb900824b869d7d457d02e9b8aae24836f0a99fbad79328cfd6415ee8908f180699bf259dc7614f793447cb14f707caf5996f6 + languageName: node + linkType: hard + "flat@npm:^5.0.2": version: 5.0.2 resolution: "flat@npm:5.0.2" @@ -15710,6 +15775,13 @@ __metadata: languageName: node linkType: hard +"flatted@npm:^3.2.9": + version: 3.3.1 + resolution: "flatted@npm:3.3.1" + checksum: 85ae7181650bb728c221e7644cbc9f4bf28bc556f2fc89bb21266962bdf0ce1029cc7acc44bb646cd469d9baac7c317f64e841c4c4c00516afa97320cdac7f94 + languageName: node + linkType: hard + "flow-parser@npm:0.*": version: 0.216.1 resolution: "flow-parser@npm:0.216.1" @@ -16616,12 +16688,17 @@ __metadata: languageName: node linkType: hard -"globals@npm:^13.19.0": - version: 13.20.0 - resolution: "globals@npm:13.20.0" - dependencies: - type-fest: ^0.20.2 - checksum: ad1ecf914bd051325faad281d02ea2c0b1df5d01bd94d368dcc5513340eac41d14b3c61af325768e3c7f8d44576e72780ec0b6f2d366121f8eec6e03c3a3b97a +"globals@npm:^14.0.0": + version: 14.0.0 + resolution: "globals@npm:14.0.0" + checksum: 534b8216736a5425737f59f6e6a5c7f386254560c9f41d24a9227d60ee3ad4a9e82c5b85def0e212e9d92162f83a92544be4c7fd4c902cb913736c10e08237ac + languageName: node + linkType: hard + +"globals@npm:^15.6.0": + version: 15.6.0 + resolution: "globals@npm:15.6.0" + checksum: 5e69c1f767beb73a11cb1959044a62fab84e0043375dedb55ea4b76d555886965b02b377698d79daae43d3d1b2ae2007b38de2d674eb61250b5886a395f59a94 languageName: node linkType: hard @@ -19620,13 +19697,6 @@ __metadata: languageName: node linkType: hard -"js-sdsl@npm:^4.1.4": - version: 4.3.0 - resolution: "js-sdsl@npm:4.3.0" - checksum: ce908257cf6909e213af580af3a691a736f5ee8b16315454768f917a682a4ea0c11bde1b241bbfaecedc0eb67b72101b2c2df2ffaed32aed5d539fca816f054e - languageName: node - linkType: hard - "js-tokens@npm:^3.0.0 || ^4.0.0, js-tokens@npm:^4.0.0": version: 4.0.0 resolution: "js-tokens@npm:4.0.0" @@ -19959,6 +20029,15 @@ __metadata: languageName: node linkType: hard +"keyv@npm:^4.5.4": + version: 4.5.4 + resolution: "keyv@npm:4.5.4" + dependencies: + json-buffer: 3.0.1 + checksum: 74a24395b1c34bd44ad5cb2b49140d087553e170625240b86755a6604cd65aa16efdbdeae5cdb17ba1284a0fbb25ad06263755dbc71b8d8b06f74232ce3cdd72 + languageName: node + linkType: hard + "kind-of@npm:^3.0.2, kind-of@npm:^3.0.3, kind-of@npm:^3.2.0": version: 3.2.2 resolution: "kind-of@npm:3.2.2" @@ -22733,17 +22812,17 @@ __metadata: languageName: node linkType: hard -"optionator@npm:^0.9.1": - version: 0.9.1 - resolution: "optionator@npm:0.9.1" +"optionator@npm:^0.9.3": + version: 0.9.4 + resolution: "optionator@npm:0.9.4" dependencies: deep-is: ^0.1.3 fast-levenshtein: ^2.0.6 levn: ^0.4.1 prelude-ls: ^1.2.1 type-check: ^0.4.0 - word-wrap: ^1.2.3 - checksum: dbc6fa065604b24ea57d734261914e697bd73b69eff7f18e967e8912aa2a40a19a9f599a507fa805be6c13c24c4eae8c71306c239d517d42d4c041c942f508a0 + word-wrap: ^1.2.5 + checksum: ecbd010e3dc73e05d239976422d9ef54a82a13f37c11ca5911dff41c98a6c7f0f163b27f922c37e7f8340af9d36febd3b6e9cef508f3339d4c393d7276d716bb languageName: node linkType: hard @@ -26411,7 +26490,7 @@ __metadata: languageName: node linkType: hard -"strip-json-comments@npm:^3.0.1, strip-json-comments@npm:^3.1.0, strip-json-comments@npm:^3.1.1": +"strip-json-comments@npm:^3.0.1, strip-json-comments@npm:^3.1.1": version: 3.1.1 resolution: "strip-json-comments@npm:3.1.1" checksum: 492f73e27268f9b1c122733f28ecb0e7e8d8a531a6662efbd08e22cccb3f9475e90a1b82cab06a392f6afae6d2de636f977e231296400d0ec5304ba70f166443 @@ -27529,13 +27608,6 @@ __metadata: languageName: node linkType: hard -"type-fest@npm:^0.20.2": - version: 0.20.2 - resolution: "type-fest@npm:0.20.2" - checksum: 4fb3272df21ad1c552486f8a2f8e115c09a521ad7a8db3d56d53718d0c907b62c6e9141ba5f584af3f6830d0872c521357e512381f24f7c44acae583ad517d73 - languageName: node - linkType: hard - "type-fest@npm:^0.4.1": version: 0.4.1 resolution: "type-fest@npm:0.4.1" @@ -28760,7 +28832,14 @@ __metadata: languageName: node linkType: hard -"word-wrap@npm:^1.2.3, word-wrap@npm:~1.2.3": +"word-wrap@npm:^1.2.5": + version: 1.2.5 + resolution: "word-wrap@npm:1.2.5" + checksum: f93ba3586fc181f94afdaff3a6fef27920b4b6d9eaefed0f428f8e07adea2a7f54a5f2830ce59406c8416f033f86902b91eb824072354645eea687dff3691ccb + languageName: node + linkType: hard + +"word-wrap@npm:~1.2.3": version: 1.2.3 resolution: "word-wrap@npm:1.2.3" checksum: 30b48f91fcf12106ed3186ae4fa86a6a1842416df425be7b60485de14bec665a54a68e4b5156647dec3a70f25e84d270ca8bc8cd23182ed095f5c7206a938c1f From f3e3ddaa634474be34dd75ec42cb3ee26e369a6f Mon Sep 17 00:00:00 2001 From: naporin0624 Date: Thu, 4 Jul 2024 09:42:07 +0000 Subject: [PATCH 2/3] chore: migrate flatconfig --- eslint.config.mjs | 207 +++--- package.json | 14 +- packages/pullrequest-cli/package.json | 2 +- tsconfig.json | 3 +- yarn.lock | 868 +++++++++++++------------- 5 files changed, 572 insertions(+), 522 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index acca59d7e..1f4fe4497 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,116 +1,67 @@ -import { fixupConfigRules, fixupPluginRules } from '@eslint/compat' -import jest from 'eslint-plugin-jest' -import _import from 'eslint-plugin-import' +// @ts-nocheck +import eslint from '@eslint/js' +import _import from 'eslint-plugin-import-x' import globals from 'globals' import path from 'node:path' import { fileURLToPath } from 'node:url' -import js from '@eslint/js' -import { FlatCompat } from '@eslint/eslintrc' +import tseslint from 'typescript-eslint' +import eslintPluginReact from 'eslint-plugin-react' +import eslintPluginReactHook from 'eslint-plugin-react-hooks' +import eslintPluginPrettierRecommended from 'eslint-config-prettier' +import { fixupPluginRules } from '@eslint/compat' const __filename = fileURLToPath(import.meta.url) const __dirname = path.dirname(__filename) -const compat = new FlatCompat({ - baseDirectory: __dirname, - recommendedConfig: js.configs.recommended, - allConfig: js.configs.all, -}) - -export default [ +const tseslintConfig = tseslint.config( + ...tseslint.configs.recommended, + ...tseslint.configs.recommendedTypeChecked, { - ignores: [ - '**/dist/', - '**/node_modules/', - '**/__snapshots__/', - '**/.yarn/', - 'public/', - 'storybook-static/', - 'coverage/', - '**/.next/', - 'misc/', - 'packages/tailwind-diff/bin/tailwind-diff.js', - 'packages/icon-files/src/', - 'eslint.config.mjs', - ], - }, - ...fixupConfigRules( - compat.extends( - 'eslint:recommended', - 'plugin:@typescript-eslint/recommended', - 'plugin:@typescript-eslint/recommended-requiring-type-checking', - 'plugin:react/recommended', - 'plugin:react-hooks/recommended', - 'plugin:storybook/recommended', - 'plugin:import/recommended', - 'prettier' - ) - ), - { - plugins: { - jest, - import: fixupPluginRules(_import), - }, - languageOptions: { - globals: { - ...globals.node, - ...jest.environments.globals.globals, - }, - - ecmaVersion: 5, - sourceType: 'commonjs', - + ecmaVersion: 2018, + sourceType: 'module', + parser: tseslint.parser, parserOptions: { - project: ['./tsconfig.json', './packages/**/tsconfig.json'], + ecmaFeatures: { jsx: true }, + project: ['./tsconfig.json', 'packages/**/tsconfig.json'], + tsconfigRootDir: __dirname, }, }, - - settings: { - react: { - version: 'detect', - }, - - 'import/resolver': { - typescript: { - project: ['./tsconfig.json', './packages/**/tsconfig.json'], - }, - }, + rules: { + '@typescript-eslint/no-empty-function': 'error', + '@typescript-eslint/adjacent-overload-signatures': 'error', + '@typescript-eslint/no-empty-interface': 'error', + '@typescript-eslint/no-inferrable-types': 'error', + '@typescript-eslint/ban-ts-comment': 'error', + '@typescript-eslint/prefer-namespace-keyword': 'error', + '@typescript-eslint/no-unsafe-assignment': 'error', + '@typescript-eslint/no-non-null-assertion': 'error', }, + } +) +const typescriptConfig = [ + ...tseslintConfig, + { + files: ['**/*.ts', '**/*.tsx'], + plugins: { + '@typescript-eslint': tseslint.plugin, + import: _import, + }, rules: { '@typescript-eslint/explicit-module-boundary-types': 'off', - '@typescript-eslint/no-unused-vars': [ 'error', - { - argsIgnorePattern: '^_', - ignoreRestSiblings: true, - }, + { argsIgnorePattern: '^_', ignoreRestSiblings: true }, ], - '@typescript-eslint/no-unnecessary-condition': 'error', '@typescript-eslint/strict-boolean-expressions': 'error', '@typescript-eslint/consistent-type-definitions': 'off', '@typescript-eslint/no-empty-interface': 'off', - 'react/prop-types': 'off', - - 'react/no-unknown-property': [ - 'error', - { - ignore: ['css'], - }, - ], - - 'no-console': 'warn', - 'react/jsx-uses-react': 'off', - 'react/react-in-jsx-scope': 'off', - 'import/no-extraneous-dependencies': [ 'error', { devDependencies: [ - '*.config.js', - '*.config.mjs', '*.config.ts', '**/*.config.ts', '**/*.test.ts', @@ -123,13 +74,93 @@ export default [ }, }, { - files: ['**/*.cjs', '**/*.mjs'], + files: ['**/*.tsx', '**/*.ts'], + languageOptions: { + globals: { + ...globals.browser, + }, + }, + plugins: { + react: eslintPluginReact, + 'react-hooks': fixupPluginRules(eslintPluginReactHook), + }, + rules: { + ...eslintPluginReact.configs.recommended.rules, + ...eslintPluginReactHook.configs.recommended.rules, + 'react/prop-types': 'off', + 'react/no-unknown-property': ['error', { ignore: ['css'] }], + 'react/jsx-uses-react': 'off', + 'react/react-in-jsx-scope': 'off', + }, + settings: { + react: { + version: 'detect', + }, + }, + }, +] + +const config = [ + eslint.configs.recommended, + eslintPluginPrettierRecommended, + ...typescriptConfig, + { + ignores: [ + '**/dist/', + '**/node_modules/', + '**/__snapshots__/', + '**/.yarn/', + 'public/', + 'storybook-static/', + 'coverage/', + '**/.next/', + 'misc/', + 'packages/tailwind-diff/bin/tailwind-diff.js', + 'packages/icon-files/src/', + 'eslint.config.mjs', + '.storybook', + ], + }, + { + files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'], + rules: { + 'no-console': 'warn', + 'no-undef': 'off', + 'no-constant-condition': 'error', + }, + }, + { + files: [ + '**/*.test.ts', + '**/*.test.tsx', + '**/__tests__/**', + '**/*.config.*', + '*.config.*', + '**/*.story.*', + '.storybook/**', + ], + languageOptions: { + globals: { + ...globals.node, + ...globals.jest, + }, + }, + plugins: { + import: _import, + }, + rules: { + 'import/no-extraneous-dependencies': 'off', + }, }, { files: ['**/docs/**'], - + plugins: { + import: _import, + }, rules: { 'import/no-extraneous-dependencies': 'off', }, }, ] + +export default config diff --git a/package.json b/package.json index 0c6dcc45e..2bec47a00 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,6 @@ "@storybook/test-runner": "^0.17.0", "@storybook/web-components": "^8.0.5", "@stylelint/postcss-css-in-js": "^0.37.2", - "@types/eslint": "^8.4.1", "@types/eslint__eslintrc": "^2.1.1", "@types/eslint__js": "^8.42.3", "@types/jest": "^27.4.0", @@ -88,13 +87,13 @@ "css-loader": "^6.10.0", "esbuild": "^0.14.14", "esbuild-jest": "^0.5.0", - "eslint": "^9.5.0", - "eslint-config-prettier": "^8.7.0", + "eslint": "^9.6.0", + "eslint-config-prettier": "^9.1.0", "eslint-import-resolver-typescript": "^3.6.1", - "eslint-plugin-import": "^2.29.1", - "eslint-plugin-jest": "^27.2.1", - "eslint-plugin-react": "^7.32.2", - "eslint-plugin-react-hooks": "^4.6.0", + "eslint-plugin-import-x": "^0.5.3", + "eslint-plugin-jest": "^28.6.0", + "eslint-plugin-react": "^7.34.3", + "eslint-plugin-react-hooks": "^4.6.2", "eslint-plugin-storybook": "^0.8.0", "glob": "^7.2.0", "globals": "^15.6.0", @@ -125,6 +124,7 @@ "stylelint-config-styled-components": "^0.1.1", "ts-jest": "^29.0.5", "typescript": "^4.9.5", + "typescript-eslint": "^7.15.0", "vite": "^5.2.7", "wait-on": "^7.2.0", "zx": "^7.0.3" diff --git a/packages/pullrequest-cli/package.json b/packages/pullrequest-cli/package.json index c1985cbd2..efdbf6dc1 100644 --- a/packages/pullrequest-cli/package.json +++ b/packages/pullrequest-cli/package.json @@ -1,6 +1,6 @@ { "name": "@charcoal-ui/pullrequest-cli", - "private": "true", + "private": true, "license": "Apache-2.0", "bin": "./dist/index.js", "scripts": { diff --git a/tsconfig.json b/tsconfig.json index 0bdc37db1..3052c25e4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -25,8 +25,7 @@ "**/.*.cjs", "**/.*.js", "__mocks__/*.ts", - ".storybook", "vite.config.ts" ], - "exclude": ["docs"] + "exclude": ["docs", ".storybook"] } diff --git a/yarn.lock b/yarn.lock index cbb89cddf..7ab21f928 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3455,6 +3455,24 @@ __metadata: languageName: node linkType: hard +"@eslint-community/eslint-utils@npm:^4.4.0": + version: 4.4.0 + resolution: "@eslint-community/eslint-utils@npm:4.4.0" + dependencies: + eslint-visitor-keys: ^3.3.0 + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || >=8.0.0 + checksum: cdfe3ae42b4f572cbfb46d20edafe6f36fc5fb52bf2d90875c58aefe226892b9677fef60820e2832caf864a326fe4fc225714c46e8389ccca04d5f9288aabd22 + languageName: node + linkType: hard + +"@eslint-community/regexpp@npm:^4.10.0": + version: 4.11.0 + resolution: "@eslint-community/regexpp@npm:4.11.0" + checksum: 97d2fe46690b69417a551bd19a3dc53b6d9590d2295c43cc4c4e44e64131af541e2f4a44d5c12e87de990403654d3dae9d33600081f3a2f0386b368abc9111ec + languageName: node + linkType: hard + "@eslint-community/regexpp@npm:^4.4.0": version: 4.4.0 resolution: "@eslint-community/regexpp@npm:4.4.0" @@ -3476,14 +3494,14 @@ __metadata: languageName: node linkType: hard -"@eslint/config-array@npm:^0.16.0": - version: 0.16.0 - resolution: "@eslint/config-array@npm:0.16.0" +"@eslint/config-array@npm:^0.17.0": + version: 0.17.0 + resolution: "@eslint/config-array@npm:0.17.0" dependencies: "@eslint/object-schema": ^2.1.4 debug: ^4.3.1 - minimatch: ^3.0.5 - checksum: b5682fef89232338200005e75008ee8edf147d265383ce4a9eb863c06ec38eff3dd0a4700b720774ad1f26d7c2721ab33eb425b1785ff95bc0844b23d5e57f94 + minimatch: ^3.1.2 + checksum: 4a7eea8e8531045ae6836c7b899776663f120b75a074fd09c5bfa52304ee969053d1daad35c30e3f657ef578078c14fe277a5ff625bceb4166c6196ff44e5d02 languageName: node linkType: hard @@ -3504,7 +3522,14 @@ __metadata: languageName: node linkType: hard -"@eslint/js@npm:9.5.0, @eslint/js@npm:^9.5.0": +"@eslint/js@npm:9.6.0": + version: 9.6.0 + resolution: "@eslint/js@npm:9.6.0" + checksum: 8d0c1cc81ae9182139a38555a56bd6387b663b45efa5ca642e1e50584926f749a68d497c8a5ca02d55661341a5b689fc7977c65b10191e2a315888ca403b8bcd + languageName: node + linkType: hard + +"@eslint/js@npm:^9.5.0": version: 9.5.0 resolution: "@eslint/js@npm:9.5.0" checksum: e79639f7d9fd754e432dd33d1908d31c48bcf93aadc9e88b987c51b0208b5b3120f0c0038108ff2517c35b8c3d4bcd74f4e506a93b676b8bb311d29cce111c09 @@ -8384,7 +8409,7 @@ __metadata: languageName: node linkType: hard -"@types/eslint@npm:*, @types/eslint@npm:^8.4.1": +"@types/eslint@npm:*": version: 8.4.1 resolution: "@types/eslint@npm:8.4.1" dependencies: @@ -8658,13 +8683,6 @@ __metadata: languageName: node linkType: hard -"@types/json5@npm:^0.0.29": - version: 0.0.29 - resolution: "@types/json5@npm:0.0.29" - checksum: e60b153664572116dfea673c5bda7778dbff150498f44f998e34b5886d8afc47f16799280e4b6e241c0472aef1bc36add771c569c68fc5125fc2ae519a3eb9ac - languageName: node - linkType: hard - "@types/jsonfile@npm:*": version: 6.1.4 resolution: "@types/jsonfile@npm:6.1.4" @@ -9135,6 +9153,29 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/eslint-plugin@npm:7.15.0": + version: 7.15.0 + resolution: "@typescript-eslint/eslint-plugin@npm:7.15.0" + dependencies: + "@eslint-community/regexpp": ^4.10.0 + "@typescript-eslint/scope-manager": 7.15.0 + "@typescript-eslint/type-utils": 7.15.0 + "@typescript-eslint/utils": 7.15.0 + "@typescript-eslint/visitor-keys": 7.15.0 + graphemer: ^1.4.0 + ignore: ^5.3.1 + natural-compare: ^1.4.0 + ts-api-utils: ^1.3.0 + peerDependencies: + "@typescript-eslint/parser": ^7.0.0 + eslint: ^8.56.0 + peerDependenciesMeta: + typescript: + optional: true + checksum: 4ee884c7c00362a40f1d95be042434b8dc737d9680ace7f0c283f33b044c8b9c9be93ea1e3990d7cf1271f73f4b16900469626fea213cc3ca37fe0a8d02f517d + languageName: node + linkType: hard + "@typescript-eslint/eslint-plugin@npm:^5.55.0": version: 5.55.0 resolution: "@typescript-eslint/eslint-plugin@npm:5.55.0" @@ -9159,6 +9200,24 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/parser@npm:7.15.0": + version: 7.15.0 + resolution: "@typescript-eslint/parser@npm:7.15.0" + dependencies: + "@typescript-eslint/scope-manager": 7.15.0 + "@typescript-eslint/types": 7.15.0 + "@typescript-eslint/typescript-estree": 7.15.0 + "@typescript-eslint/visitor-keys": 7.15.0 + debug: ^4.3.4 + peerDependencies: + eslint: ^8.56.0 + peerDependenciesMeta: + typescript: + optional: true + checksum: e907ba4c5595d8d47a865fad4c5482937f9347510ea6d456cb6eaef785b2d3c5a08b070ed3a0b918baa07d6d634721156a0937f6ea457a24ddcc20dc5e4d7320 + languageName: node + linkType: hard + "@typescript-eslint/parser@npm:^5.55.0": version: 5.55.0 resolution: "@typescript-eslint/parser@npm:5.55.0" @@ -9176,16 +9235,6 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/scope-manager@npm:5.15.0": - version: 5.15.0 - resolution: "@typescript-eslint/scope-manager@npm:5.15.0" - dependencies: - "@typescript-eslint/types": 5.15.0 - "@typescript-eslint/visitor-keys": 5.15.0 - checksum: 39fa688691c5cc207d44cc1f5a3ba0ecb3c34144505b32c1267df9e9368cc29373acd7e85e27d6fe84a0012417e40745887baeec6719f33b8a5ae4232d0db061 - languageName: node - linkType: hard - "@typescript-eslint/scope-manager@npm:5.55.0": version: 5.55.0 resolution: "@typescript-eslint/scope-manager@npm:5.55.0" @@ -9206,6 +9255,16 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/scope-manager@npm:7.15.0": + version: 7.15.0 + resolution: "@typescript-eslint/scope-manager@npm:7.15.0" + dependencies: + "@typescript-eslint/types": 7.15.0 + "@typescript-eslint/visitor-keys": 7.15.0 + checksum: 4a7b6c9b73d40cd3ecb146187cafea5cb85e36ee0b7f7003b39ba6a6980e13591db5f931aacc99400e2cb55ae9f31ea56dd81bb3592c2e345c9f8a1dd4725526 + languageName: node + linkType: hard + "@typescript-eslint/type-utils@npm:5.55.0": version: 5.55.0 resolution: "@typescript-eslint/type-utils@npm:5.55.0" @@ -9223,10 +9282,20 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/types@npm:5.15.0": - version: 5.15.0 - resolution: "@typescript-eslint/types@npm:5.15.0" - checksum: 749d6eb366cb103924b51bcbe69d1c0fd6f7a00f5be4c01b3d6de3134537db956653db9958cdd8cc32f375bca818ea804f8e07697122943faff06232519529a1 +"@typescript-eslint/type-utils@npm:7.15.0": + version: 7.15.0 + resolution: "@typescript-eslint/type-utils@npm:7.15.0" + dependencies: + "@typescript-eslint/typescript-estree": 7.15.0 + "@typescript-eslint/utils": 7.15.0 + debug: ^4.3.4 + ts-api-utils: ^1.3.0 + peerDependencies: + eslint: ^8.56.0 + peerDependenciesMeta: + typescript: + optional: true + checksum: 6104ac153419d5364e6b8540c44f52a8db614ff040dfed30e59d5a050ac2372d6bf47a7d73449198eeff8c532259bd5ad0ea56e567d9f0dbc121268caf8ecf9d languageName: node linkType: hard @@ -9244,21 +9313,10 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/typescript-estree@npm:5.15.0": - version: 5.15.0 - resolution: "@typescript-eslint/typescript-estree@npm:5.15.0" - dependencies: - "@typescript-eslint/types": 5.15.0 - "@typescript-eslint/visitor-keys": 5.15.0 - debug: ^4.3.2 - globby: ^11.0.4 - is-glob: ^4.0.3 - semver: ^7.3.5 - tsutils: ^3.21.0 - peerDependenciesMeta: - typescript: - optional: true - checksum: 84fbb5030db5c1ac34527860725a9ea5b104fa1c49072a69306954b4b8516242427e70cb6a657ec2b822789432179a0df7a866e4618a29ee54b4285ca23556c8 +"@typescript-eslint/types@npm:7.15.0": + version: 7.15.0 + resolution: "@typescript-eslint/types@npm:7.15.0" + checksum: 6da90322d0073ecc83378d6e0cb13c173b5baf8eb30b785624b3155c19c66468b9ab7b6c93cda1b5162559622085cb30f24811d77f6d305c26784d65e9e1cebd languageName: node linkType: hard @@ -9298,6 +9356,25 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/typescript-estree@npm:7.15.0": + version: 7.15.0 + resolution: "@typescript-eslint/typescript-estree@npm:7.15.0" + dependencies: + "@typescript-eslint/types": 7.15.0 + "@typescript-eslint/visitor-keys": 7.15.0 + debug: ^4.3.4 + globby: ^11.1.0 + is-glob: ^4.0.3 + minimatch: ^9.0.4 + semver: ^7.6.0 + ts-api-utils: ^1.3.0 + peerDependenciesMeta: + typescript: + optional: true + checksum: ece4718496871d5f9188e32cbc692e5404c92b92f96d75709eab3847bbef96d1241c6a7d31a96b45cfdef6942b446018afefdd6c0c6133e31df8f9972b39b788 + languageName: node + linkType: hard + "@typescript-eslint/utils@npm:5.55.0": version: 5.55.0 resolution: "@typescript-eslint/utils@npm:5.55.0" @@ -9316,19 +9393,17 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/utils@npm:^5.10.0": - version: 5.15.0 - resolution: "@typescript-eslint/utils@npm:5.15.0" +"@typescript-eslint/utils@npm:7.15.0, @typescript-eslint/utils@npm:^6.0.0 || ^7.0.0, @typescript-eslint/utils@npm:^7.4.0": + version: 7.15.0 + resolution: "@typescript-eslint/utils@npm:7.15.0" dependencies: - "@types/json-schema": ^7.0.9 - "@typescript-eslint/scope-manager": 5.15.0 - "@typescript-eslint/types": 5.15.0 - "@typescript-eslint/typescript-estree": 5.15.0 - eslint-scope: ^5.1.1 - eslint-utils: ^3.0.0 + "@eslint-community/eslint-utils": ^4.4.0 + "@typescript-eslint/scope-manager": 7.15.0 + "@typescript-eslint/types": 7.15.0 + "@typescript-eslint/typescript-estree": 7.15.0 peerDependencies: - eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 - checksum: 406725b3e1282064612c9e69f346ceae5cf8e3fe4ae37295eaa1d594fb1b7ed3abd161c32b96622b00ca56e7b1120ea43b584954cd0cefad904a46d65b20960e + eslint: ^8.56.0 + checksum: 4b1b467985b46efbb47cdbabf7aa5cc86df3d223d82a6cfe9b181dbc18c229b9de591206204b9969818216f346433600e166f02f2bc2d293496b4d054aa7ab17 languageName: node linkType: hard @@ -9350,16 +9425,6 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/visitor-keys@npm:5.15.0": - version: 5.15.0 - resolution: "@typescript-eslint/visitor-keys@npm:5.15.0" - dependencies: - "@typescript-eslint/types": 5.15.0 - eslint-visitor-keys: ^3.0.0 - checksum: a3f231bf55794547680284aa23ba495efa1e52f864583fe53e1ff8b2c011db070ca48633eb8a333bfc93be0bdbb76ffa98e81bf032fd2737a5e0f0b1b81bbc22 - languageName: node - linkType: hard - "@typescript-eslint/visitor-keys@npm:5.55.0": version: 5.55.0 resolution: "@typescript-eslint/visitor-keys@npm:5.55.0" @@ -9380,6 +9445,16 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/visitor-keys@npm:7.15.0": + version: 7.15.0 + resolution: "@typescript-eslint/visitor-keys@npm:7.15.0" + dependencies: + "@typescript-eslint/types": 7.15.0 + eslint-visitor-keys: ^3.4.3 + checksum: 8be7b1997455a80135b5c3dd9dc64a367a20dca0c724218bfec37b7931696bb7be2c4325dc2121fe9d4232e6457ab5c8ca7d112fac5e88c80bc6f9257ba8df9b + languageName: node + linkType: hard + "@ungap/structured-clone@npm:^1.0.0": version: 1.2.0 resolution: "@ungap/structured-clone@npm:1.2.0" @@ -10380,20 +10455,7 @@ __metadata: languageName: node linkType: hard -"array-includes@npm:^3.1.6": - version: 3.1.6 - resolution: "array-includes@npm:3.1.6" - dependencies: - call-bind: ^1.0.2 - define-properties: ^1.1.4 - es-abstract: ^1.20.4 - get-intrinsic: ^1.1.3 - is-string: ^1.0.7 - checksum: f22f8cd8ba8a6448d91eebdc69f04e4e55085d09232b5216ee2d476dab3ef59984e8d1889e662c6a0ed939dcb1b57fd05b2c0209c3370942fc41b752c82a2ca5 - languageName: node - linkType: hard - -"array-includes@npm:^3.1.7": +"array-includes@npm:^3.1.8": version: 3.1.8 resolution: "array-includes@npm:3.1.8" dependencies: @@ -10421,9 +10483,9 @@ __metadata: languageName: node linkType: hard -"array.prototype.findlastindex@npm:^1.2.3": +"array.prototype.findlast@npm:^1.2.5": version: 1.2.5 - resolution: "array.prototype.findlastindex@npm:1.2.5" + resolution: "array.prototype.findlast@npm:1.2.5" dependencies: call-bind: ^1.0.7 define-properties: ^1.2.1 @@ -10431,56 +10493,44 @@ __metadata: es-errors: ^1.3.0 es-object-atoms: ^1.0.0 es-shim-unscopables: ^1.0.2 - checksum: 2c81cff2a75deb95bf1ed89b6f5f2bfbfb882211e3b7cc59c3d6b87df774cd9d6b36949a8ae39ac476e092c1d4a4905f5ee11a86a456abb10f35f8211ae4e710 + checksum: 83ce4ad95bae07f136d316f5a7c3a5b911ac3296c3476abe60225bc4a17938bf37541972fcc37dd5adbc99cbb9c928c70bbbfc1c1ce549d41a415144030bb446 languageName: node linkType: hard -"array.prototype.flat@npm:^1.3.2": +"array.prototype.flatmap@npm:^1.3.2": version: 1.3.2 - resolution: "array.prototype.flat@npm:1.3.2" + resolution: "array.prototype.flatmap@npm:1.3.2" dependencies: call-bind: ^1.0.2 define-properties: ^1.2.0 es-abstract: ^1.22.1 es-shim-unscopables: ^1.0.0 - checksum: 5d6b4bf102065fb3f43764bfff6feb3295d372ce89591e6005df3d0ce388527a9f03c909af6f2a973969a4d178ab232ffc9236654149173e0e187ec3a1a6b87b - languageName: node - linkType: hard - -"array.prototype.flatmap@npm:^1.3.1": - version: 1.3.1 - resolution: "array.prototype.flatmap@npm:1.3.1" - dependencies: - call-bind: ^1.0.2 - define-properties: ^1.1.4 - es-abstract: ^1.20.4 - es-shim-unscopables: ^1.0.0 - checksum: 8c1c43a4995f12cf12523436da28515184c753807b3f0bc2ca6c075f71c470b099e2090cc67dba8e5280958fea401c1d0c59e1db0143272aef6cd1103921a987 + checksum: ce09fe21dc0bcd4f30271f8144083aa8c13d4639074d6c8dc82054b847c7fc9a0c97f857491f4da19d4003e507172a78f4bcd12903098adac8b9cd374f734be3 languageName: node linkType: hard -"array.prototype.flatmap@npm:^1.3.2": - version: 1.3.2 - resolution: "array.prototype.flatmap@npm:1.3.2" +"array.prototype.toreversed@npm:^1.1.2": + version: 1.1.2 + resolution: "array.prototype.toreversed@npm:1.1.2" dependencies: call-bind: ^1.0.2 define-properties: ^1.2.0 es-abstract: ^1.22.1 es-shim-unscopables: ^1.0.0 - checksum: ce09fe21dc0bcd4f30271f8144083aa8c13d4639074d6c8dc82054b847c7fc9a0c97f857491f4da19d4003e507172a78f4bcd12903098adac8b9cd374f734be3 + checksum: 58598193426282155297bedf950dc8d464624a0d81659822fb73124286688644cb7e0e4927a07f3ab2daaeb6617b647736cc3a5e6ca7ade5bb8e573b284e6240 languageName: node linkType: hard -"array.prototype.tosorted@npm:^1.1.1": - version: 1.1.1 - resolution: "array.prototype.tosorted@npm:1.1.1" +"array.prototype.tosorted@npm:^1.1.4": + version: 1.1.4 + resolution: "array.prototype.tosorted@npm:1.1.4" dependencies: - call-bind: ^1.0.2 - define-properties: ^1.1.4 - es-abstract: ^1.20.4 - es-shim-unscopables: ^1.0.0 - get-intrinsic: ^1.1.3 - checksum: 7923324a67e70a2fc0a6e40237405d92395e45ebd76f5cb89c2a5cf1e66b47aca6baacd0cd628ffd88830b90d47fff268071493d09c9ae123645613dac2c2ca3 + call-bind: ^1.0.7 + define-properties: ^1.2.1 + es-abstract: ^1.23.3 + es-errors: ^1.3.0 + es-shim-unscopables: ^1.0.2 + checksum: e4142d6f556bcbb4f393c02e7dbaea9af8f620c040450c2be137c9cbbd1a17f216b9c688c5f2c08fbb038ab83f55993fa6efdd9a05881d84693c7bcb5422127a languageName: node linkType: hard @@ -11712,7 +11762,6 @@ __metadata: "@storybook/test-runner": ^0.17.0 "@storybook/web-components": ^8.0.5 "@stylelint/postcss-css-in-js": ^0.37.2 - "@types/eslint": ^8.4.1 "@types/eslint__eslintrc": ^2.1.1 "@types/eslint__js": ^8.42.3 "@types/jest": ^27.4.0 @@ -11731,13 +11780,13 @@ __metadata: css-loader: ^6.10.0 esbuild: ^0.14.14 esbuild-jest: ^0.5.0 - eslint: ^9.5.0 - eslint-config-prettier: ^8.7.0 + eslint: ^9.6.0 + eslint-config-prettier: ^9.1.0 eslint-import-resolver-typescript: ^3.6.1 - eslint-plugin-import: ^2.29.1 - eslint-plugin-jest: ^27.2.1 - eslint-plugin-react: ^7.32.2 - eslint-plugin-react-hooks: ^4.6.0 + eslint-plugin-import-x: ^0.5.3 + eslint-plugin-jest: ^28.6.0 + eslint-plugin-react: ^7.34.3 + eslint-plugin-react-hooks: ^4.6.2 eslint-plugin-storybook: ^0.8.0 glob: ^7.2.0 globals: ^15.6.0 @@ -11768,6 +11817,7 @@ __metadata: stylelint-config-styled-components: ^0.1.1 ts-jest: ^29.0.5 typescript: ^4.9.5 + typescript-eslint: ^7.15.0 vite: ^5.2.7 wait-on: ^7.2.0 zx: ^7.0.3 @@ -13894,49 +13944,7 @@ __metadata: languageName: node linkType: hard -"es-abstract@npm:^1.20.4": - version: 1.21.2 - resolution: "es-abstract@npm:1.21.2" - dependencies: - array-buffer-byte-length: ^1.0.0 - available-typed-arrays: ^1.0.5 - call-bind: ^1.0.2 - es-set-tostringtag: ^2.0.1 - es-to-primitive: ^1.2.1 - function.prototype.name: ^1.1.5 - get-intrinsic: ^1.2.0 - get-symbol-description: ^1.0.0 - globalthis: ^1.0.3 - gopd: ^1.0.1 - has: ^1.0.3 - has-property-descriptors: ^1.0.0 - has-proto: ^1.0.1 - has-symbols: ^1.0.3 - internal-slot: ^1.0.5 - is-array-buffer: ^3.0.2 - is-callable: ^1.2.7 - is-negative-zero: ^2.0.2 - is-regex: ^1.1.4 - is-shared-array-buffer: ^1.0.2 - is-string: ^1.0.7 - is-typed-array: ^1.1.10 - is-weakref: ^1.0.2 - object-inspect: ^1.12.3 - object-keys: ^1.1.1 - object.assign: ^4.1.4 - regexp.prototype.flags: ^1.4.3 - safe-regex-test: ^1.0.0 - string.prototype.trim: ^1.2.7 - string.prototype.trimend: ^1.0.6 - string.prototype.trimstart: ^1.0.6 - typed-array-length: ^1.0.4 - unbox-primitive: ^1.0.2 - which-typed-array: ^1.1.9 - checksum: 037f55ee5e1cdf2e5edbab5524095a4f97144d95b94ea29e3611b77d852fd8c8a40e7ae7101fa6a759a9b9b1405f188c3c70928f2d3cd88d543a07fc0d5ad41a - languageName: node - linkType: hard - -"es-abstract@npm:^1.22.1, es-abstract@npm:^1.22.3, es-abstract@npm:^1.23.0, es-abstract@npm:^1.23.2": +"es-abstract@npm:^1.22.1, es-abstract@npm:^1.22.3, es-abstract@npm:^1.23.0, es-abstract@npm:^1.23.1, es-abstract@npm:^1.23.2, es-abstract@npm:^1.23.3": version: 1.23.3 resolution: "es-abstract@npm:1.23.3" dependencies: @@ -14023,6 +14031,28 @@ __metadata: languageName: node linkType: hard +"es-iterator-helpers@npm:^1.0.19": + version: 1.0.19 + resolution: "es-iterator-helpers@npm:1.0.19" + dependencies: + call-bind: ^1.0.7 + define-properties: ^1.2.1 + es-abstract: ^1.23.3 + es-errors: ^1.3.0 + es-set-tostringtag: ^2.0.3 + function-bind: ^1.1.2 + get-intrinsic: ^1.2.4 + globalthis: ^1.0.3 + has-property-descriptors: ^1.0.2 + has-proto: ^1.0.3 + has-symbols: ^1.0.3 + internal-slot: ^1.0.7 + iterator.prototype: ^1.1.2 + safe-array-concat: ^1.1.2 + checksum: 7ae112b88359fbaf4b9d7d1d1358ae57c5138768c57ba3a8fb930393662653b0512bfd7917c15890d1471577fb012fee8b73b4465e59b331739e6ee94f961683 + languageName: node + linkType: hard + "es-module-lexer@npm:^0.9.0, es-module-lexer@npm:^0.9.3": version: 0.9.3 resolution: "es-module-lexer@npm:0.9.3" @@ -14053,17 +14083,6 @@ __metadata: languageName: node linkType: hard -"es-set-tostringtag@npm:^2.0.1": - version: 2.0.1 - resolution: "es-set-tostringtag@npm:2.0.1" - dependencies: - get-intrinsic: ^1.1.3 - has: ^1.0.3 - has-tostringtag: ^1.0.0 - checksum: ec416a12948cefb4b2a5932e62093a7cf36ddc3efd58d6c58ca7ae7064475ace556434b869b0bbeb0c365f1032a8ccd577211101234b69837ad83ad204fff884 - languageName: node - linkType: hard - "es-set-tostringtag@npm:^2.0.3": version: 2.0.3 resolution: "es-set-tostringtag@npm:2.0.3" @@ -14812,14 +14831,14 @@ __metadata: languageName: node linkType: hard -"eslint-config-prettier@npm:^8.7.0": - version: 8.7.0 - resolution: "eslint-config-prettier@npm:8.7.0" +"eslint-config-prettier@npm:^9.1.0": + version: 9.1.0 + resolution: "eslint-config-prettier@npm:9.1.0" peerDependencies: eslint: ">=7.0.0" bin: eslint-config-prettier: bin/cli.js - checksum: b05bc7f2296ce3e0925c14147849706544870e0382d38af2352d709a6cf8521bdaff2bd8e5021f1780e570775a8ffa1d2bac28b8065d90d43a3f1f98fd26ce52 + checksum: 9229b768c879f500ee54ca05925f31b0c0bafff3d9f5521f98ff05127356de78c81deb9365c86a5ec4efa990cb72b74df8612ae15965b14136044c73e1f6a907 languageName: node linkType: hard @@ -14852,7 +14871,7 @@ __metadata: languageName: node linkType: hard -"eslint-module-utils@npm:^2.7.4, eslint-module-utils@npm:^2.8.0": +"eslint-module-utils@npm:^2.7.4": version: 2.8.1 resolution: "eslint-module-utils@npm:2.8.1" dependencies: @@ -14864,81 +14883,78 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-import@npm:^2.29.1": - version: 2.29.1 - resolution: "eslint-plugin-import@npm:2.29.1" +"eslint-plugin-import-x@npm:^0.5.3": + version: 0.5.3 + resolution: "eslint-plugin-import-x@npm:0.5.3" dependencies: - array-includes: ^3.1.7 - array.prototype.findlastindex: ^1.2.3 - array.prototype.flat: ^1.3.2 - array.prototype.flatmap: ^1.3.2 - debug: ^3.2.7 - doctrine: ^2.1.0 + "@typescript-eslint/utils": ^7.4.0 + debug: ^4.3.4 + doctrine: ^3.0.0 eslint-import-resolver-node: ^0.3.9 - eslint-module-utils: ^2.8.0 - hasown: ^2.0.0 - is-core-module: ^2.13.1 + get-tsconfig: ^4.7.3 is-glob: ^4.0.3 - minimatch: ^3.1.2 - object.fromentries: ^2.0.7 - object.groupby: ^1.0.1 - object.values: ^1.1.7 - semver: ^6.3.1 - tsconfig-paths: ^3.15.0 + minimatch: ^9.0.3 + semver: ^7.6.0 + stable-hash: ^0.0.4 + tslib: ^2.6.2 peerDependencies: - eslint: ^2 || ^3 || ^4 || ^5 || ^6 || ^7.2.0 || ^8 - checksum: e65159aef808136d26d029b71c8c6e4cb5c628e65e5de77f1eb4c13a379315ae55c9c3afa847f43f4ff9df7e54515c77ffc6489c6a6f81f7dd7359267577468c + eslint: ^8.56.0 || ^9.0.0-0 + checksum: b30039a8416cdbb2f3cc6d32efc631f55e7cc677830b37e204a845f872cad3b9a07ef4313d353068df9474f9ae4f9a101d64f0287fd7f6832778ba78e12fde15 languageName: node linkType: hard -"eslint-plugin-jest@npm:^27.2.1": - version: 27.2.1 - resolution: "eslint-plugin-jest@npm:27.2.1" +"eslint-plugin-jest@npm:^28.6.0": + version: 28.6.0 + resolution: "eslint-plugin-jest@npm:28.6.0" dependencies: - "@typescript-eslint/utils": ^5.10.0 + "@typescript-eslint/utils": ^6.0.0 || ^7.0.0 peerDependencies: - "@typescript-eslint/eslint-plugin": ^5.0.0 - eslint: ^7.0.0 || ^8.0.0 + "@typescript-eslint/eslint-plugin": ^6.0.0 || ^7.0.0 + eslint: ^7.0.0 || ^8.0.0 || ^9.0.0 + jest: "*" peerDependenciesMeta: "@typescript-eslint/eslint-plugin": optional: true jest: optional: true - checksum: 579a4d26304cc6748b2e6dff6c965ea7a21b618d8b051eb02727d25cf5c7767f6db8ef5237531635ff77e242b983b973e7cb8c820a4d20d5bda73358c452a8ab + checksum: 5abcef6933445ae0017dcea6cafacb4aaab6619f8660d1097667dd040129b4efa3f1284ded1c2605c7d14c11c976c725912f660dcdec8278c6f6ce793ff9dab6 languageName: node linkType: hard -"eslint-plugin-react-hooks@npm:^4.6.0": - version: 4.6.0 - resolution: "eslint-plugin-react-hooks@npm:4.6.0" +"eslint-plugin-react-hooks@npm:^4.6.2": + version: 4.6.2 + resolution: "eslint-plugin-react-hooks@npm:4.6.2" peerDependencies: eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 - checksum: 23001801f14c1d16bf0a837ca7970d9dd94e7b560384b41db378b49b6e32dc43d6e2790de1bd737a652a86f81a08d6a91f402525061b47719328f586a57e86c3 + checksum: 395c433610f59577cfcf3f2e42bcb130436c8a0b3777ac64f441d88c5275f4fcfc89094cedab270f2822daf29af1079151a7a6579a8e9ea8cee66540ba0384c4 languageName: node linkType: hard -"eslint-plugin-react@npm:^7.32.2": - version: 7.32.2 - resolution: "eslint-plugin-react@npm:7.32.2" +"eslint-plugin-react@npm:^7.34.3": + version: 7.34.3 + resolution: "eslint-plugin-react@npm:7.34.3" dependencies: - array-includes: ^3.1.6 - array.prototype.flatmap: ^1.3.1 - array.prototype.tosorted: ^1.1.1 + array-includes: ^3.1.8 + array.prototype.findlast: ^1.2.5 + array.prototype.flatmap: ^1.3.2 + array.prototype.toreversed: ^1.1.2 + array.prototype.tosorted: ^1.1.4 doctrine: ^2.1.0 + es-iterator-helpers: ^1.0.19 estraverse: ^5.3.0 jsx-ast-utils: ^2.4.1 || ^3.0.0 minimatch: ^3.1.2 - object.entries: ^1.1.6 - object.fromentries: ^2.0.6 - object.hasown: ^1.1.2 - object.values: ^1.1.6 + object.entries: ^1.1.8 + object.fromentries: ^2.0.8 + object.hasown: ^1.1.4 + object.values: ^1.2.0 prop-types: ^15.8.1 - resolve: ^2.0.0-next.4 - semver: ^6.3.0 - string.prototype.matchall: ^4.0.8 + resolve: ^2.0.0-next.5 + semver: ^6.3.1 + string.prototype.matchall: ^4.0.11 peerDependencies: eslint: ^3 || ^4 || ^5 || ^6 || ^7 || ^8 - checksum: 2232b3b8945aa50b7773919c15cd96892acf35d2f82503667a79e2f55def90f728ed4f0e496f0f157acbe1bd4397c5615b676ae7428fe84488a544ca53feb944 + checksum: 1a519b9792ab9392a5157f2543ce98ab1218c62f4a31c4c3ceb5dd3e7997def4aa07ab39f7276af0fe116ef002db29d97216a15b7aa3b200e55b641cf77d6292 languageName: node linkType: hard @@ -14976,31 +14992,6 @@ __metadata: languageName: node linkType: hard -"eslint-utils@npm:^3.0.0": - version: 3.0.0 - resolution: "eslint-utils@npm:3.0.0" - dependencies: - eslint-visitor-keys: ^2.0.0 - peerDependencies: - eslint: ">=5" - checksum: 0668fe02f5adab2e5a367eee5089f4c39033af20499df88fe4e6aba2015c20720404d8c3d6349b6f716b08fdf91b9da4e5d5481f265049278099c4c836ccb619 - languageName: node - linkType: hard - -"eslint-visitor-keys@npm:^2.0.0": - version: 2.1.0 - resolution: "eslint-visitor-keys@npm:2.1.0" - checksum: e3081d7dd2611a35f0388bbdc2f5da60b3a3c5b8b6e928daffff7391146b434d691577aa95064c8b7faad0b8a680266bcda0a42439c18c717b80e6718d7e267d - languageName: node - linkType: hard - -"eslint-visitor-keys@npm:^3.0.0": - version: 3.2.0 - resolution: "eslint-visitor-keys@npm:3.2.0" - checksum: fdadbb26f9e6417d3db7ad4f00bb0d573b6031c32fa72e8cdae32d038223faaeddff2ee443c90cb489bf774e75bff765c00912b8f9106d65e4f202ccd78c1b18 - languageName: node - linkType: hard - "eslint-visitor-keys@npm:^3.3.0": version: 3.3.0 resolution: "eslint-visitor-keys@npm:3.3.0" @@ -15008,6 +14999,13 @@ __metadata: languageName: node linkType: hard +"eslint-visitor-keys@npm:^3.4.3": + version: 3.4.3 + resolution: "eslint-visitor-keys@npm:3.4.3" + checksum: 36e9ef87fca698b6fd7ca5ca35d7b2b6eeaaf106572e2f7fd31c12d3bfdaccdb587bba6d3621067e5aece31c8c3a348b93922ab8f7b2cbc6aaab5e1d89040c60 + languageName: node + linkType: hard + "eslint-visitor-keys@npm:^4.0.0": version: 4.0.0 resolution: "eslint-visitor-keys@npm:4.0.0" @@ -15015,15 +15013,15 @@ __metadata: languageName: node linkType: hard -"eslint@npm:^9.5.0": - version: 9.5.0 - resolution: "eslint@npm:9.5.0" +"eslint@npm:^9.6.0": + version: 9.6.0 + resolution: "eslint@npm:9.6.0" dependencies: "@eslint-community/eslint-utils": ^4.2.0 "@eslint-community/regexpp": ^4.6.1 - "@eslint/config-array": ^0.16.0 + "@eslint/config-array": ^0.17.0 "@eslint/eslintrc": ^3.1.0 - "@eslint/js": 9.5.0 + "@eslint/js": 9.6.0 "@humanwhocodes/module-importer": ^1.0.1 "@humanwhocodes/retry": ^0.3.0 "@nodelib/fs.walk": ^1.2.8 @@ -15034,7 +15032,7 @@ __metadata: escape-string-regexp: ^4.0.0 eslint-scope: ^8.0.1 eslint-visitor-keys: ^4.0.0 - espree: ^10.0.1 + espree: ^10.1.0 esquery: ^1.5.0 esutils: ^2.0.2 fast-deep-equal: ^3.1.3 @@ -15055,11 +15053,11 @@ __metadata: text-table: ^0.2.0 bin: eslint: bin/eslint.js - checksum: 8e6c85eb30a6959150cb40e16a07ce662c4f4a9f87c677eda13360eb11522b6f16627a41e05dc0b2e0715685f1d61c2694d671a1ce09ceb5bd1a887eef14f13c + checksum: b3f3de28df0ebbccbd0863637523cd443569dd32d18da021a97b53f25b2f5bc7f788fe74da8e585da6bb7b2060d7a688e9dcaa35efaabb7b596c354ff4b07963 languageName: node linkType: hard -"espree@npm:^10.0.1": +"espree@npm:^10.0.1, espree@npm:^10.1.0": version: 10.1.0 resolution: "espree@npm:10.1.0" dependencies: @@ -16372,6 +16370,15 @@ __metadata: languageName: node linkType: hard +"get-tsconfig@npm:^4.7.3": + version: 4.7.5 + resolution: "get-tsconfig@npm:4.7.5" + dependencies: + resolve-pkg-maps: ^1.0.0 + checksum: e5b271fae2b4cd1869bbfc58db56983026cc4a08fdba988725a6edd55d04101507de154722503a22ee35920898ff9bdcba71f99d93b17df35dddb8e8a2ad91be + languageName: node + linkType: hard + "get-value@npm:^2.0.3, get-value@npm:^2.0.6": version: 2.0.6 resolution: "get-value@npm:2.0.6" @@ -16711,7 +16718,7 @@ __metadata: languageName: node linkType: hard -"globby@npm:11.1.0, globby@npm:^11.0.1, globby@npm:^11.0.2, globby@npm:^11.0.3, globby@npm:^11.0.4, globby@npm:^11.1.0": +"globby@npm:11.1.0, globby@npm:^11.0.1, globby@npm:^11.0.2, globby@npm:^11.0.3, globby@npm:^11.1.0": version: 11.1.0 resolution: "globby@npm:11.1.0" dependencies: @@ -16808,6 +16815,13 @@ __metadata: languageName: node linkType: hard +"graphemer@npm:^1.4.0": + version: 1.4.0 + resolution: "graphemer@npm:1.4.0" + checksum: bab8f0be9b568857c7bec9fda95a89f87b783546d02951c40c33f84d05bb7da3fd10f863a9beb901463669b6583173a8c8cc6d6b306ea2b9b9d5d3d943c3a673 + languageName: node + linkType: hard + "gunzip-maybe@npm:^1.4.2": version: 1.4.2 resolution: "gunzip-maybe@npm:1.4.2" @@ -17441,6 +17455,13 @@ __metadata: languageName: node linkType: hard +"ignore@npm:^5.3.1": + version: 5.3.1 + resolution: "ignore@npm:5.3.1" + checksum: 71d7bb4c1dbe020f915fd881108cbe85a0db3d636a0ea3ba911393c53946711d13a9b1143c7e70db06d571a5822c0a324a6bcde5c9904e7ca5047f01f1bf8cd3 + languageName: node + linkType: hard + "import-fresh@npm:^3.0.0, import-fresh@npm:^3.2.1, import-fresh@npm:^3.3.0": version: 3.3.0 resolution: "import-fresh@npm:3.3.0" @@ -17594,7 +17615,7 @@ __metadata: languageName: node linkType: hard -"internal-slot@npm:^1.0.4, internal-slot@npm:^1.0.5": +"internal-slot@npm:^1.0.4": version: 1.0.5 resolution: "internal-slot@npm:1.0.5" dependencies: @@ -17719,6 +17740,15 @@ __metadata: languageName: node linkType: hard +"is-async-function@npm:^2.0.0": + version: 2.0.0 + resolution: "is-async-function@npm:2.0.0" + dependencies: + has-tostringtag: ^1.0.0 + checksum: e3471d95e6c014bf37cad8a93f2f4b6aac962178e0a5041e8903147166964fdc1c5c1d2ef87e86d77322c370ca18f2ea004fa7420581fa747bcaf7c223069dbd + languageName: node + linkType: hard + "is-bigint@npm:^1.0.1": version: 1.0.4 resolution: "is-bigint@npm:1.0.4" @@ -17779,7 +17809,7 @@ __metadata: languageName: node linkType: hard -"is-core-module@npm:^2.11.0, is-core-module@npm:^2.13.1": +"is-core-module@npm:^2.11.0": version: 2.13.1 resolution: "is-core-module@npm:2.13.1" dependencies: @@ -17928,6 +17958,15 @@ __metadata: languageName: node linkType: hard +"is-finalizationregistry@npm:^1.0.2": + version: 1.0.2 + resolution: "is-finalizationregistry@npm:1.0.2" + dependencies: + call-bind: ^1.0.2 + checksum: 4f243a8e06228cd45bdab8608d2cb7abfc20f6f0189c8ac21ea8d603f1f196eabd531ce0bb8e08cbab047e9845ef2c191a3761c9a17ad5cabf8b35499c4ad35d + languageName: node + linkType: hard + "is-fullwidth-code-point@npm:^3.0.0": version: 3.0.0 resolution: "is-fullwidth-code-point@npm:3.0.0" @@ -17958,7 +17997,7 @@ __metadata: languageName: node linkType: hard -"is-generator-function@npm:^1.0.7": +"is-generator-function@npm:^1.0.10, is-generator-function@npm:^1.0.7": version: 1.0.10 resolution: "is-generator-function@npm:1.0.10" dependencies: @@ -18021,7 +18060,7 @@ __metadata: languageName: node linkType: hard -"is-negative-zero@npm:^2.0.1, is-negative-zero@npm:^2.0.2": +"is-negative-zero@npm:^2.0.1": version: 2.0.2 resolution: "is-negative-zero@npm:2.0.2" checksum: f3232194c47a549da60c3d509c9a09be442507616b69454716692e37ae9f37c4dea264fb208ad0c9f3efd15a796a46b79df07c7e53c6227c32170608b809149a @@ -18238,7 +18277,7 @@ __metadata: languageName: node linkType: hard -"is-typed-array@npm:^1.1.10, is-typed-array@npm:^1.1.9": +"is-typed-array@npm:^1.1.10": version: 1.1.10 resolution: "is-typed-array@npm:1.1.10" dependencies: @@ -18479,6 +18518,19 @@ __metadata: languageName: node linkType: hard +"iterator.prototype@npm:^1.1.2": + version: 1.1.2 + resolution: "iterator.prototype@npm:1.1.2" + dependencies: + define-properties: ^1.2.1 + get-intrinsic: ^1.2.1 + has-symbols: ^1.0.3 + reflect.getprototypeof: ^1.0.4 + set-function-name: ^2.0.1 + checksum: d8a507e2ccdc2ce762e8a1d3f4438c5669160ac72b88b648e59a688eec6bc4e64b22338e74000518418d9e693faf2a092d2af21b9ec7dbf7763b037a54701168 + languageName: node + linkType: hard + "jackspeak@npm:^2.0.3": version: 2.2.2 resolution: "jackspeak@npm:2.2.2" @@ -19942,17 +19994,6 @@ __metadata: languageName: node linkType: hard -"json5@npm:^1.0.2": - version: 1.0.2 - resolution: "json5@npm:1.0.2" - dependencies: - minimist: ^1.2.0 - bin: - json5: lib/cli.js - checksum: 866458a8c58a95a49bef3adba929c625e82532bcff1fe93f01d29cb02cac7c3fe1f4b79951b7792c2da9de0b32871a8401a6e3c5b36778ad852bf5b8a61165d7 - languageName: node - linkType: hard - "json5@npm:^2.2.2, json5@npm:^2.2.3": version: 2.2.3 resolution: "json5@npm:2.2.3" @@ -21455,7 +21496,7 @@ __metadata: languageName: node linkType: hard -"minimatch@npm:^3.0.2, minimatch@npm:^3.0.4, minimatch@npm:^3.0.5, minimatch@npm:^3.1.1, minimatch@npm:^3.1.2": +"minimatch@npm:^3.0.2, minimatch@npm:^3.0.4, minimatch@npm:^3.1.1, minimatch@npm:^3.1.2": version: 3.1.2 resolution: "minimatch@npm:3.1.2" dependencies: @@ -21500,6 +21541,15 @@ __metadata: languageName: node linkType: hard +"minimatch@npm:^9.0.3, minimatch@npm:^9.0.4": + version: 9.0.5 + resolution: "minimatch@npm:9.0.5" + dependencies: + brace-expansion: ^2.0.1 + checksum: 2c035575eda1e50623c731ec6c14f65a85296268f749b9337005210bb2b34e2705f8ef1a358b188f69892286ab99dc42c8fb98a57bde55c8d81b3023c19cea28 + languageName: node + linkType: hard + "minimist-options@npm:4.1.0": version: 4.1.0 resolution: "minimist-options@npm:4.1.0" @@ -22544,13 +22594,6 @@ __metadata: languageName: node linkType: hard -"object-inspect@npm:^1.12.3": - version: 1.12.3 - resolution: "object-inspect@npm:1.12.3" - checksum: dabfd824d97a5f407e6d5d24810d888859f6be394d8b733a77442b277e0808860555176719c5905e765e3743a7cada6b8b0a3b85e5331c530fd418cc8ae991db - languageName: node - linkType: hard - "object-inspect@npm:^1.13.1": version: 1.13.1 resolution: "object-inspect@npm:1.13.1" @@ -22620,29 +22663,18 @@ __metadata: languageName: node linkType: hard -"object.entries@npm:^1.1.6": - version: 1.1.6 - resolution: "object.entries@npm:1.1.6" +"object.entries@npm:^1.1.8": + version: 1.1.8 + resolution: "object.entries@npm:1.1.8" dependencies: - call-bind: ^1.0.2 - define-properties: ^1.1.4 - es-abstract: ^1.20.4 - checksum: 0f8c47517e6a9a980241eafe3b73de11e59511883173c2b93d67424a008e47e11b77c80e431ad1d8a806f6108b225a1cab9223e53e555776c612a24297117d28 - languageName: node - linkType: hard - -"object.fromentries@npm:^2.0.6": - version: 2.0.6 - resolution: "object.fromentries@npm:2.0.6" - dependencies: - call-bind: ^1.0.2 - define-properties: ^1.1.4 - es-abstract: ^1.20.4 - checksum: 453c6d694180c0c30df451b60eaf27a5b9bca3fb43c37908fd2b78af895803dc631242bcf05582173afa40d8d0e9c96e16e8874b39471aa53f3ac1f98a085d85 + call-bind: ^1.0.7 + define-properties: ^1.2.1 + es-object-atoms: ^1.0.0 + checksum: 5314877cb637ef3437a30bba61d9bacdb3ce74bf73ac101518be0633c37840c8cc67407edb341f766e8093b3d7516d5c3358f25adfee4a2c697c0ec4c8491907 languageName: node linkType: hard -"object.fromentries@npm:^2.0.7": +"object.fromentries@npm:^2.0.8": version: 2.0.8 resolution: "object.fromentries@npm:2.0.8" dependencies: @@ -22665,24 +22697,14 @@ __metadata: languageName: node linkType: hard -"object.groupby@npm:^1.0.1": - version: 1.0.3 - resolution: "object.groupby@npm:1.0.3" +"object.hasown@npm:^1.1.4": + version: 1.1.4 + resolution: "object.hasown@npm:1.1.4" dependencies: - call-bind: ^1.0.7 define-properties: ^1.2.1 es-abstract: ^1.23.2 - checksum: 0d30693ca3ace29720bffd20b3130451dca7a56c612e1926c0a1a15e4306061d84410bdb1456be2656c5aca53c81b7a3661eceaa362db1bba6669c2c9b6d1982 - languageName: node - linkType: hard - -"object.hasown@npm:^1.1.2": - version: 1.1.2 - resolution: "object.hasown@npm:1.1.2" - dependencies: - define-properties: ^1.1.4 - es-abstract: ^1.20.4 - checksum: b936572536db0cdf38eb30afd2f1026a8b6f2cc5d2c4497c9d9bbb01eaf3e980dead4fd07580cfdd098e6383e5a9db8212d3ea0c6bdd2b5e68c60aa7e3b45566 + es-object-atoms: ^1.0.0 + checksum: bc46eb5ca22106fcd07aab1411508c2c68b7565fe8fb272f166fb9bf203972e8b5c86a5a4b2c86204beead0626a7a4119d32cefbaf7c5dd57b400bf9e6363cb6 languageName: node linkType: hard @@ -22706,18 +22728,7 @@ __metadata: languageName: node linkType: hard -"object.values@npm:^1.1.6": - version: 1.1.6 - resolution: "object.values@npm:1.1.6" - dependencies: - call-bind: ^1.0.2 - define-properties: ^1.1.4 - es-abstract: ^1.20.4 - checksum: f6fff9fd817c24cfd8107f50fb33061d81cd11bacc4e3dbb3852e9ff7692fde4dbce823d4333ea27cd9637ef1b6690df5fbb61f1ed314fa2959598dc3ae23d8e - languageName: node - linkType: hard - -"object.values@npm:^1.1.7": +"object.values@npm:^1.2.0": version: 1.2.0 resolution: "object.values@npm:1.2.0" dependencies: @@ -24586,6 +24597,21 @@ __metadata: languageName: node linkType: hard +"reflect.getprototypeof@npm:^1.0.4": + version: 1.0.6 + resolution: "reflect.getprototypeof@npm:1.0.6" + dependencies: + call-bind: ^1.0.7 + define-properties: ^1.2.1 + es-abstract: ^1.23.1 + es-errors: ^1.3.0 + get-intrinsic: ^1.2.4 + globalthis: ^1.0.3 + which-builtin-type: ^1.1.3 + checksum: 88e9e65a7eaa0bf8e9a8bbf8ac07571363bc333ba8b6769ed5e013e0042ed7c385e97fae9049510b3b5fe4b42472d8f32de9ce8ce84902bc4297d4bbe3777dba + languageName: node + linkType: hard + "regenerate-unicode-properties@npm:^10.1.0": version: 10.1.0 resolution: "regenerate-unicode-properties@npm:10.1.0" @@ -24628,17 +24654,6 @@ __metadata: languageName: node linkType: hard -"regexp.prototype.flags@npm:^1.4.3": - version: 1.4.3 - resolution: "regexp.prototype.flags@npm:1.4.3" - dependencies: - call-bind: ^1.0.2 - define-properties: ^1.1.3 - functions-have-names: ^1.2.2 - checksum: 51228bae732592adb3ededd5e15426be25f289e9c4ef15212f4da73f4ec3919b6140806374b8894036a86020d054a8d2657d3fee6bb9b4d35d8939c20030b7a6 - languageName: node - linkType: hard - "regexp.prototype.flags@npm:^1.5.0": version: 1.5.0 resolution: "regexp.prototype.flags@npm:1.5.0" @@ -24948,16 +24963,16 @@ __metadata: languageName: node linkType: hard -"resolve@npm:^2.0.0-next.4": - version: 2.0.0-next.4 - resolution: "resolve@npm:2.0.0-next.4" +"resolve@npm:^2.0.0-next.5": + version: 2.0.0-next.5 + resolution: "resolve@npm:2.0.0-next.5" dependencies: - is-core-module: ^2.9.0 + is-core-module: ^2.13.0 path-parse: ^1.0.7 supports-preserve-symlinks-flag: ^1.0.0 bin: resolve: bin/resolve - checksum: c438ac9a650f2030fd074219d7f12ceb983b475da2d89ad3d6dd05fbf6b7a0a8cd37d4d10b43cb1f632bc19f22246ab7f36ebda54d84a29bfb2910a0680906d3 + checksum: a73ac69a1c4bd34c56b213d91f5b17ce390688fdb4a1a96ed3025cc7e08e7bfb90b3a06fcce461780cb0b589c958afcb0080ab802c71c01a7ecc8c64feafc89f languageName: node linkType: hard @@ -24987,16 +25002,16 @@ __metadata: languageName: node linkType: hard -"resolve@patch:resolve@^2.0.0-next.4#~builtin": - version: 2.0.0-next.4 - resolution: "resolve@patch:resolve@npm%3A2.0.0-next.4#~builtin::version=2.0.0-next.4&hash=07638b" +"resolve@patch:resolve@^2.0.0-next.5#~builtin": + version: 2.0.0-next.5 + resolution: "resolve@patch:resolve@npm%3A2.0.0-next.5#~builtin::version=2.0.0-next.5&hash=07638b" dependencies: - is-core-module: ^2.9.0 + is-core-module: ^2.13.0 path-parse: ^1.0.7 supports-preserve-symlinks-flag: ^1.0.0 bin: resolve: bin/resolve - checksum: 4bf9f4f8a458607af90518ff73c67a4bc1a38b5a23fef2bb0ccbd45e8be89820a1639b637b0ba377eb2be9eedfb1739a84cde24fe4cd670c8207d8fea922b011 + checksum: 064d09c1808d0c51b3d90b5d27e198e6d0c5dad0eb57065fd40803d6a20553e5398b07f76739d69cbabc12547058bec6b32106ea66622375fb0d7e8fca6a846c languageName: node linkType: hard @@ -25285,17 +25300,6 @@ __metadata: languageName: node linkType: hard -"safe-regex-test@npm:^1.0.0": - version: 1.0.0 - resolution: "safe-regex-test@npm:1.0.0" - dependencies: - call-bind: ^1.0.2 - get-intrinsic: ^1.1.3 - is-regex: ^1.1.4 - checksum: bc566d8beb8b43c01b94e67de3f070fd2781685e835959bbbaaec91cc53381145ca91f69bd837ce6ec244817afa0a5e974fc4e40a2957f0aca68ac3add1ddd34 - languageName: node - linkType: hard - "safe-regex-test@npm:^1.0.3": version: 1.0.3 resolution: "safe-regex-test@npm:1.0.3" @@ -25500,6 +25504,15 @@ __metadata: languageName: node linkType: hard +"semver@npm:^7.6.0": + version: 7.6.2 + resolution: "semver@npm:7.6.2" + bin: + semver: bin/semver.js + checksum: 40f6a95101e8d854357a644da1b8dd9d93ce786d5c6a77227bc69dbb17bea83d0d1d1d7c4cd5920a6df909f48e8bd8a5909869535007f90278289f2451d0292d + languageName: node + linkType: hard + "send@npm:0.18.0": version: 0.18.0 resolution: "send@npm:0.18.0" @@ -25583,7 +25596,7 @@ __metadata: languageName: node linkType: hard -"set-function-name@npm:^2.0.1": +"set-function-name@npm:^2.0.1, set-function-name@npm:^2.0.2": version: 2.0.2 resolution: "set-function-name@npm:2.0.2" dependencies: @@ -26128,6 +26141,13 @@ __metadata: languageName: node linkType: hard +"stable-hash@npm:^0.0.4": + version: 0.0.4 + resolution: "stable-hash@npm:0.0.4" + checksum: 21c039d21c1cb739cf8342561753a5e007cb95ea682ccd452e76310bbb9c6987a89de8eda023e320b019f3e4691aabda75079cdbb7dadf7ab9013e931f2f23cd + languageName: node + linkType: hard + "stable@npm:^0.1.8": version: 0.1.8 resolution: "stable@npm:0.1.8" @@ -26288,19 +26308,23 @@ __metadata: languageName: node linkType: hard -"string.prototype.matchall@npm:^4.0.8": - version: 4.0.8 - resolution: "string.prototype.matchall@npm:4.0.8" +"string.prototype.matchall@npm:^4.0.11": + version: 4.0.11 + resolution: "string.prototype.matchall@npm:4.0.11" dependencies: - call-bind: ^1.0.2 - define-properties: ^1.1.4 - es-abstract: ^1.20.4 - get-intrinsic: ^1.1.3 + call-bind: ^1.0.7 + define-properties: ^1.2.1 + es-abstract: ^1.23.2 + es-errors: ^1.3.0 + es-object-atoms: ^1.0.0 + get-intrinsic: ^1.2.4 + gopd: ^1.0.1 has-symbols: ^1.0.3 - internal-slot: ^1.0.3 - regexp.prototype.flags: ^1.4.3 - side-channel: ^1.0.4 - checksum: 952da3a818de42ad1c10b576140a5e05b4de7b34b8d9dbf00c3ac8c1293e9c0f533613a39c5cda53e0a8221f2e710bc2150e730b1c2278d60004a8a35726efb6 + internal-slot: ^1.0.7 + regexp.prototype.flags: ^1.5.2 + set-function-name: ^2.0.2 + side-channel: ^1.0.6 + checksum: 6ac6566ed065c0c8489c91156078ca077db8ff64d683fda97ae652d00c52dfa5f39aaab0a710d8243031a857fd2c7c511e38b45524796764d25472d10d7075ae languageName: node linkType: hard @@ -26314,17 +26338,6 @@ __metadata: languageName: node linkType: hard -"string.prototype.trim@npm:^1.2.7": - version: 1.2.7 - resolution: "string.prototype.trim@npm:1.2.7" - dependencies: - call-bind: ^1.0.2 - define-properties: ^1.1.4 - es-abstract: ^1.20.4 - checksum: 05b7b2d6af63648e70e44c4a8d10d8cc457536df78b55b9d6230918bde75c5987f6b8604438c4c8652eb55e4fc9725d2912789eb4ec457d6995f3495af190c09 - languageName: node - linkType: hard - "string.prototype.trim@npm:^1.2.9": version: 1.2.9 resolution: "string.prototype.trim@npm:1.2.9" @@ -26347,17 +26360,6 @@ __metadata: languageName: node linkType: hard -"string.prototype.trimend@npm:^1.0.6": - version: 1.0.6 - resolution: "string.prototype.trimend@npm:1.0.6" - dependencies: - call-bind: ^1.0.2 - define-properties: ^1.1.4 - es-abstract: ^1.20.4 - checksum: 0fdc34645a639bd35179b5a08227a353b88dc089adf438f46be8a7c197fc3f22f8514c1c9be4629b3cd29c281582730a8cbbad6466c60f76b5f99cf2addb132e - languageName: node - linkType: hard - "string.prototype.trimend@npm:^1.0.8": version: 1.0.8 resolution: "string.prototype.trimend@npm:1.0.8" @@ -26379,17 +26381,6 @@ __metadata: languageName: node linkType: hard -"string.prototype.trimstart@npm:^1.0.6": - version: 1.0.6 - resolution: "string.prototype.trimstart@npm:1.0.6" - dependencies: - call-bind: ^1.0.2 - define-properties: ^1.1.4 - es-abstract: ^1.20.4 - checksum: 89080feef416621e6ef1279588994305477a7a91648d9436490d56010a1f7adc39167cddac7ce0b9884b8cdbef086987c4dcb2960209f2af8bac0d23ceff4f41 - languageName: node - linkType: hard - "string.prototype.trimstart@npm:^1.0.8": version: 1.0.8 resolution: "string.prototype.trimstart@npm:1.0.8" @@ -27310,6 +27301,15 @@ __metadata: languageName: node linkType: hard +"ts-api-utils@npm:^1.3.0": + version: 1.3.0 + resolution: "ts-api-utils@npm:1.3.0" + peerDependencies: + typescript: ">=4.2.0" + checksum: c746ddabfdffbf16cb0b0db32bb287236a19e583057f8649ee7c49995bb776e1d3ef384685181c11a1a480369e022ca97512cb08c517b2d2bd82c83754c97012 + languageName: node + linkType: hard + "ts-dedent@npm:^2.0.0": version: 2.0.0 resolution: "ts-dedent@npm:2.0.0" @@ -27400,18 +27400,6 @@ __metadata: languageName: node linkType: hard -"tsconfig-paths@npm:^3.15.0": - version: 3.15.0 - resolution: "tsconfig-paths@npm:3.15.0" - dependencies: - "@types/json5": ^0.0.29 - json5: ^1.0.2 - minimist: ^1.2.6 - strip-bom: ^3.0.0 - checksum: 59f35407a390d9482b320451f52a411a256a130ff0e7543d18c6f20afab29ac19fbe55c360a93d6476213cc335a4d76ce90f67df54c4e9037f7d240920832201 - languageName: node - linkType: hard - "tsconfig-paths@npm:^4.1.2, tsconfig-paths@npm:^4.2.0": version: 4.2.0 resolution: "tsconfig-paths@npm:4.2.0" @@ -27465,6 +27453,13 @@ __metadata: languageName: node linkType: hard +"tslib@npm:^2.6.2": + version: 2.6.3 + resolution: "tslib@npm:2.6.3" + checksum: 74fce0e100f1ebd95b8995fbbd0e6c91bdd8f4c35c00d4da62e285a3363aaa534de40a80db30ecfd388ed7c313c42d930ee0eaf108e8114214b180eec3dbe6f5 + languageName: node + linkType: hard + "tsup@npm:^6.5.0": version: 6.5.0 resolution: "tsup@npm:6.5.0" @@ -27691,17 +27686,6 @@ __metadata: languageName: node linkType: hard -"typed-array-length@npm:^1.0.4": - version: 1.0.4 - resolution: "typed-array-length@npm:1.0.4" - dependencies: - call-bind: ^1.0.2 - for-each: ^0.3.3 - is-typed-array: ^1.1.9 - checksum: 2228febc93c7feff142b8c96a58d4a0d7623ecde6c7a24b2b98eb3170e99f7c7eff8c114f9b283085cd59dcd2bd43aadf20e25bba4b034a53c5bb292f71f8956 - languageName: node - linkType: hard - "typed-array-length@npm:^1.0.6": version: 1.0.6 resolution: "typed-array-length@npm:1.0.6" @@ -27739,6 +27723,22 @@ __metadata: languageName: node linkType: hard +"typescript-eslint@npm:^7.15.0": + version: 7.15.0 + resolution: "typescript-eslint@npm:7.15.0" + dependencies: + "@typescript-eslint/eslint-plugin": 7.15.0 + "@typescript-eslint/parser": 7.15.0 + "@typescript-eslint/utils": 7.15.0 + peerDependencies: + eslint: ^8.56.0 + peerDependenciesMeta: + typescript: + optional: true + checksum: 0a14724dba7a9f402db9d52f8d87b7d86b3472ffc0934627176b572680938ae60c584c5cb18db29335ea47293b6979a5ce6626d34507cd89726ceb15376c7d93 + languageName: node + linkType: hard + "typescript@npm:^3 || ^4, typescript@npm:^4.9.5": version: 4.9.5 resolution: "typescript@npm:4.9.5" @@ -28731,6 +28731,26 @@ __metadata: languageName: node linkType: hard +"which-builtin-type@npm:^1.1.3": + version: 1.1.3 + resolution: "which-builtin-type@npm:1.1.3" + dependencies: + function.prototype.name: ^1.1.5 + has-tostringtag: ^1.0.0 + is-async-function: ^2.0.0 + is-date-object: ^1.0.5 + is-finalizationregistry: ^1.0.2 + is-generator-function: ^1.0.10 + is-regex: ^1.1.4 + is-weakref: ^1.0.2 + isarray: ^2.0.5 + which-boxed-primitive: ^1.0.2 + which-collection: ^1.0.1 + which-typed-array: ^1.1.9 + checksum: 43730f7d8660ff9e33d1d3f9f9451c4784265ee7bf222babc35e61674a11a08e1c2925019d6c03154fcaaca4541df43abe35d2720843b9b4cbcebdcc31408f36 + languageName: node + linkType: hard + "which-collection@npm:^1.0.1": version: 1.0.1 resolution: "which-collection@npm:1.0.1" From a3cc25b28f2a39820c527e6a97640efd50ddcb9c Mon Sep 17 00:00:00 2001 From: naporin0624 Date: Thu, 4 Jul 2024 10:39:26 +0000 Subject: [PATCH 3/3] chore: esilnt --fix --- packages/icons-cli/src/GitHubClient.ts | 4 ++-- packages/icons-cli/src/GitlabClient.ts | 1 - packages/pullrequest-cli/src/GitHubClient.ts | 4 ++-- .../react-sandbox/src/components/Carousel/index.tsx | 13 ++++++++++--- .../react-sandbox/src/components/Layout/index.tsx | 2 -- .../react-sandbox/src/components/icons/Base.tsx | 1 - .../react-sandbox/src/components/icons/NextIcon.tsx | 1 - packages/react-sandbox/src/foundation/support.ts | 1 - packages/react-sandbox/src/foundation/utils.ts | 2 +- packages/react/src/_lib/index.ts | 2 +- packages/react/src/components/Switch/index.tsx | 1 - packages/styled/src/builders/colors.ts | 2 +- packages/styled/src/util.ts | 2 +- packages/tailwind-config/src/_lib/TailwindBuild.ts | 1 - packages/tailwind-config/src/index.ts | 1 - packages/tailwind-diff/src/defer.ts | 2 +- 16 files changed, 19 insertions(+), 21 deletions(-) diff --git a/packages/icons-cli/src/GitHubClient.ts b/packages/icons-cli/src/GitHubClient.ts index 51117702b..fd1b43739 100644 --- a/packages/icons-cli/src/GitHubClient.ts +++ b/packages/icons-cli/src/GitHubClient.ts @@ -99,14 +99,14 @@ export class GithubClient { const parentCommit = await this.api.git.getCommit({ owner: this.repoOwner, repo: this.repoName, - // eslint-disable-next-line @typescript-eslint/naming-convention + commit_sha: targetBranch.data.object.sha, }) const newTree = await this.api.git.createTree({ owner: this.repoOwner, repo: this.repoName, - // eslint-disable-next-line @typescript-eslint/naming-convention + base_tree: parentCommit.data.tree.sha, tree, }) diff --git a/packages/icons-cli/src/GitlabClient.ts b/packages/icons-cli/src/GitlabClient.ts index f144c8a67..cec96679b 100644 --- a/packages/icons-cli/src/GitlabClient.ts +++ b/packages/icons-cli/src/GitlabClient.ts @@ -82,7 +82,6 @@ export class GitlabClient { this.message, diff, { - // eslint-disable-next-line @typescript-eslint/naming-convention start_branch: this.defaultBranch, } ) diff --git a/packages/pullrequest-cli/src/GitHubClient.ts b/packages/pullrequest-cli/src/GitHubClient.ts index 642ba7717..83f38798a 100644 --- a/packages/pullrequest-cli/src/GitHubClient.ts +++ b/packages/pullrequest-cli/src/GitHubClient.ts @@ -107,14 +107,14 @@ export class GithubClient { const parentCommit = await this.api.git.getCommit({ owner: this.repoOwner, repo: this.repoName, - // eslint-disable-next-line @typescript-eslint/naming-convention + commit_sha: targetBranch.data.object.sha, }) const newTree = await this.api.git.createTree({ owner: this.repoOwner, repo: this.repoName, - // eslint-disable-next-line @typescript-eslint/naming-convention + base_tree: parentCommit.data.tree.sha, tree, }) diff --git a/packages/react-sandbox/src/components/Carousel/index.tsx b/packages/react-sandbox/src/components/Carousel/index.tsx index f0e6af081..81793973f 100644 --- a/packages/react-sandbox/src/components/Carousel/index.tsx +++ b/packages/react-sandbox/src/components/Carousel/index.tsx @@ -96,7 +96,11 @@ export default function Carousel({ maxScrollLeft ) setScrollLeft(scroll, true) - set({ scroll, from: { scroll: scrollLeft }, reset: !animation.current }) + void set({ + scroll, + from: { scroll: scrollLeft }, + reset: !animation.current, + }) animation.current = true }, [ animation, @@ -114,7 +118,11 @@ export default function Carousel({ const { clientWidth } = visibleAreaRef.current const scroll = Math.max(scrollLeft - clientWidth * scrollAmountCoef, 0) setScrollLeft(scroll, true) - set({ scroll, from: { scroll: scrollLeft }, reset: !animation.current }) + void set({ + scroll, + from: { scroll: scrollLeft }, + reset: !animation.current, + }) animation.current = true }, [animation, scrollLeft, set, scrollAmountCoef, setScrollLeft]) @@ -206,7 +214,6 @@ export default function Carousel({ setScrollLeft(scrollLength, true) } } - // eslint-disable-next-line react-hooks/exhaustive-deps }, [ref.current]) const handleScrollMove = useCallback(() => { diff --git a/packages/react-sandbox/src/components/Layout/index.tsx b/packages/react-sandbox/src/components/Layout/index.tsx index a39e7a108..4714b1ed8 100644 --- a/packages/react-sandbox/src/components/Layout/index.tsx +++ b/packages/react-sandbox/src/components/Layout/index.tsx @@ -354,7 +354,6 @@ interface StyledCancelLayoutItemBodyPaddingProps { cancelTop?: boolean } -/* eslint-disable max-len */ export const StyledCancelLayoutItemBodyPadding = styled.div` margin: 0 -${(p) => (p.wide ? LAYOUT_ITEM_BODY_PADDING.wide.x : LAYOUT_ITEM_BODY_PADDING.default.x)}px; margin-top: -${({ cancelTop = false, wide }) => (!cancelTop ? 0 : wide ? LAYOUT_ITEM_BODY_PADDING.wide.y : LAYOUT_ITEM_BODY_PADDING.default.y)}px; @@ -364,4 +363,3 @@ export const StyledCancelLayoutItemBodyPadding = styled.div (!cancelTop ? 0 : LAYOUT_ITEM_BODY_PADDING.column1.x)}px; } ` -/* eslint-enable max-len */ diff --git a/packages/react-sandbox/src/components/icons/Base.tsx b/packages/react-sandbox/src/components/icons/Base.tsx index 438fa830c..74f0b11f1 100644 --- a/packages/react-sandbox/src/components/icons/Base.tsx +++ b/packages/react-sandbox/src/components/icons/Base.tsx @@ -69,7 +69,6 @@ export const IconBasePath = ({ /> ) } else { - // eslint-disable-next-line react/jsx-no-useless-fragment return <>{path} } } diff --git a/packages/react-sandbox/src/components/icons/NextIcon.tsx b/packages/react-sandbox/src/components/icons/NextIcon.tsx index 04e2e70b8..26f8edc69 100644 --- a/packages/react-sandbox/src/components/icons/NextIcon.tsx +++ b/packages/react-sandbox/src/components/icons/NextIcon.tsx @@ -8,7 +8,6 @@ export enum WedgeDirection { Right = 'right', } -// eslint-disable-next-line max-len const path = `M8.08579 16.5858C7.30474 17.3668 7.30474 18.6332 8.08579 19.4142C8.86684 20.1953 10.1332 20.1953 10.9142 19.4142L18.3284 12L10.9142 4.58579C10.1332 3.80474 8.86684 3.80474 8.08579 4.58579C7.30474 5.36684 7.30474 6.63317 8.08579 7.41421L12.6716 12L8.08579 16.5858Z` const size = 24 diff --git a/packages/react-sandbox/src/foundation/support.ts b/packages/react-sandbox/src/foundation/support.ts index 1e99adfee..cc1d5dfa0 100644 --- a/packages/react-sandbox/src/foundation/support.ts +++ b/packages/react-sandbox/src/foundation/support.ts @@ -6,7 +6,6 @@ export function passiveEvents(): boolean { passiveEventsResult = false try { - // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment const options = Object.defineProperty({}, 'passive', { get() { return (passiveEventsResult = true) diff --git a/packages/react-sandbox/src/foundation/utils.ts b/packages/react-sandbox/src/foundation/utils.ts index 4891bae08..5aa1d6383 100644 --- a/packages/react-sandbox/src/foundation/utils.ts +++ b/packages/react-sandbox/src/foundation/utils.ts @@ -20,7 +20,7 @@ export function unreachable(): never * @param value Value to be asserted as unreachable */ // NOTE: Uses separate overloads, _not_ `value?: never`, to not allow `undefined` to be passed -// eslint-disable-next-line @typescript-eslint/unified-signatures + export function unreachable(value: never): never export function unreachable(value?: never): never { throw new Error( diff --git a/packages/react/src/_lib/index.ts b/packages/react/src/_lib/index.ts index 26a42753e..ffd869355 100644 --- a/packages/react/src/_lib/index.ts +++ b/packages/react/src/_lib/index.ts @@ -24,7 +24,7 @@ export function unreachable(): never * @param value Value to be asserted as unreachable */ // NOTE: Uses separate overloads, _not_ `value?: never`, to not allow `undefined` to be passed -// eslint-disable-next-line @typescript-eslint/unified-signatures + export function unreachable(value: never): never export function unreachable(value?: never): never { throw new Error( diff --git a/packages/react/src/components/Switch/index.tsx b/packages/react/src/components/Switch/index.tsx index b5848a7fc..13a532fdf 100644 --- a/packages/react/src/components/Switch/index.tsx +++ b/packages/react/src/components/Switch/index.tsx @@ -50,7 +50,6 @@ const SwitchCheckbox = forwardRef( diff --git a/packages/styled/src/builders/colors.ts b/packages/styled/src/builders/colors.ts index 63cba7d58..2c8c1888f 100644 --- a/packages/styled/src/builders/colors.ts +++ b/packages/styled/src/builders/colors.ts @@ -124,7 +124,7 @@ export const createGradientColorCss = warning( effects.length === 0, - // eslint-disable-next-line max-len + `'Transition' will not be applied. You can get around this by specifying 'preserveHalfLeading' or both 'padding' and 'typography'.` ) diff --git a/packages/styled/src/util.ts b/packages/styled/src/util.ts index 5eb66bb4f..d2ecd0a43 100644 --- a/packages/styled/src/util.ts +++ b/packages/styled/src/util.ts @@ -31,7 +31,7 @@ export function unreachable(): never * @param value Value to be asserted as unreachable */ // NOTE: Uses separate overloads, _not_ `value?: never`, to not allow `undefined` to be passed -// eslint-disable-next-line @typescript-eslint/unified-signatures + export function unreachable(value: never): never export function unreachable(value?: never): never { throw new Error( diff --git a/packages/tailwind-config/src/_lib/TailwindBuild.ts b/packages/tailwind-config/src/_lib/TailwindBuild.ts index b56e7072d..458d6ad6f 100644 --- a/packages/tailwind-config/src/_lib/TailwindBuild.ts +++ b/packages/tailwind-config/src/_lib/TailwindBuild.ts @@ -49,7 +49,6 @@ export class TailwindBuild { const plugin = tailwindcss({ ...config, - // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-expect-error safelist が @types/tailwindcss に生えてない safelist: [ { diff --git a/packages/tailwind-config/src/index.ts b/packages/tailwind-config/src/index.ts index 85b1522e2..c3a75d40f 100644 --- a/packages/tailwind-config/src/index.ts +++ b/packages/tailwind-config/src/index.ts @@ -108,7 +108,6 @@ export function createTailwindConfig({ ...getVariantOption(version), corePlugins: { - // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-expect-error 配列にしろと言ってくるが、たぶん @types が間違っている lineHeight: false, }, diff --git a/packages/tailwind-diff/src/defer.ts b/packages/tailwind-diff/src/defer.ts index 7d3425014..29cf8d972 100644 --- a/packages/tailwind-diff/src/defer.ts +++ b/packages/tailwind-diff/src/defer.ts @@ -6,7 +6,7 @@ export function createDefer() { } const dispose = () => { - // eslint-disable-next-line no-constant-condition, @typescript-eslint/no-unnecessary-condition + // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition while (true) { const deferFn = defers.pop() if (deferFn == null) {