From 5847b5cea943f7a3e3d3a3341bf0ca82891749bb Mon Sep 17 00:00:00 2001 From: kurone-kito Date: Mon, 12 Aug 2024 21:54:49 +0900 Subject: [PATCH 01/10] chore(root): updated the Yarn version --- .yarnrc.yml | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.yarnrc.yml b/.yarnrc.yml index 4e253ee..a07809a 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -18,6 +18,9 @@ packageExtensions: "@types/node": "*" peerDependencies: typescript: ">=4.9.5" + "@typescript-eslint/type-utils@*": + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 "@typescript-eslint/utils@*": peerDependencies: typescript: ">=4.2.0" diff --git a/package.json b/package.json index 8e1b49c..610ebbf 100644 --- a/package.json +++ b/package.json @@ -92,7 +92,7 @@ "typescript": "~5.5.4", "typescript-eslint-language-service": "^5.0.5" }, - "packageManager": "yarn@4.3.1+sha512.af78262d7d125afbfeed740602ace8c5e4405cd7f4735c08feb327286b2fdb2390fbca01589bfd1f50b1240548b74806767f5a063c94b67e431aabd0d86f7774", + "packageManager": "yarn@4.4.0+sha512.91d93b445d9284e7ed52931369bc89a663414e5582d00eea45c67ddc459a2582919eece27c412d6ffd1bd0793ff35399381cb229326b961798ce4f4cc60ddfdb", "engines": { "node": ">=18" }, From 6dca1ed97dcd41c92e99e263703482c9611de3af Mon Sep 17 00:00:00 2001 From: kurone-kito Date: Tue, 13 Aug 2024 08:51:06 +0900 Subject: [PATCH 02/10] feat(eslint,root): added the entrypoints --- .vscode/settings.json | 2 ++ packages/eslint-config-base/package.json | 17 +++++++++++----- packages/eslint-config-base/src/index.mts | 6 ++++++ packages/eslint-config-base/tsconfig.json | 8 ++++++++ packages/eslint-config-react/package.json | 16 ++++++++++----- packages/eslint-config-react/src/index.mts | 7 +++++++ packages/eslint-config-react/tsconfig.json | 8 ++++++++ yarn.lock | 23 +++++++++++++++++++++- 8 files changed, 76 insertions(+), 11 deletions(-) create mode 100644 packages/eslint-config-base/src/index.mts create mode 100644 packages/eslint-config-base/tsconfig.json create mode 100644 packages/eslint-config-react/src/index.mts create mode 100644 packages/eslint-config-react/tsconfig.json diff --git a/.vscode/settings.json b/.vscode/settings.json index 8710361..7321c34 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,6 +3,7 @@ "explorer.fileNesting.expand": false, "explorer.fileNesting.patterns": { "*": "${capture}.meta, ${capture}.md5", + "*.d.mts": "${capture}.d.mts*, ${capture}.mjs*", "*.md": "${capture}.*.md", "*.yml": "${capture}.json", ".eslintrc*": ".eslintignore", @@ -20,6 +21,7 @@ } ], "files.associations": { + "*.map": "json", ".imgbotconfig": "json", "LICENSE": "plaintext" }, diff --git a/packages/eslint-config-base/package.json b/packages/eslint-config-base/package.json index f51b8de..f2e14d0 100644 --- a/packages/eslint-config-base/package.json +++ b/packages/eslint-config-base/package.json @@ -19,23 +19,30 @@ "author": "kurone-kito (https://kit.black/)", "type": "module", "exports": { - ".": "./.eslintrc.json", + ".": "./dist/index.mjs", + "./index.d.mts": "./dist/index.d.mts", "./.eslintrc.json": "./.eslintrc.json", "./.eslintrc.yml": "./.eslintrc.yml" }, - "main": ".eslintrc.json", + "main": "./dist/index.mjs", + "types": "./dist/index.d.mts", "files": [ - ".eslintrc.*" + ".eslintrc.*", + "dist" ], "scripts": { "build": "conc \"yarn:build:*\"", "build:json": "js-yaml .eslintrc.yml > .eslintrc.json", "build:license": "cpy --flat ../../LICENSE .", - "clean": "rimraf -g \"*.tgz\" \"*.tsbuildinfo\" .eslintcache .eslintrc.json LICENSE", - "prepack": "conc -m 1 \"yarn:clean\" \"yarn:build\"" + "build:ts": "tsc", + "clean": "rimraf -g \"*.tgz\" \"*.tsbuildinfo\" .eslintcache .eslintrc.json dist LICENSE", + "prepack": "conc -m 1 \"yarn:clean\" \"yarn:build\"", + "start": "tsc --watch" }, "devDependencies": { "@cspell/eslint-plugin": "^8.13.1", + "@kurone-kito/typescript-config": "workspace:^", + "@types/eslint": "^8.56.11", "@typescript-eslint/eslint-plugin": "^8.0.0", "@typescript-eslint/parser": "^8.0.0", "concurrently": "^8.2.2", diff --git a/packages/eslint-config-base/src/index.mts b/packages/eslint-config-base/src/index.mts new file mode 100644 index 0000000..5408f03 --- /dev/null +++ b/packages/eslint-config-base/src/index.mts @@ -0,0 +1,6 @@ +import type { Linter } from 'eslint'; + +/** ESLint configuration for generic TypeScript projects. */ +const config: readonly Linter.FlatConfig[] = []; + +export default config; diff --git a/packages/eslint-config-base/tsconfig.json b/packages/eslint-config-base/tsconfig.json new file mode 100644 index 0000000..e74e45b --- /dev/null +++ b/packages/eslint-config-base/tsconfig.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "lib": ["ESNext"], + "outDir": "dist", + "rootDir": "src" + }, + "extends": "@kurone-kito/typescript-config/tsconfig.json" +} diff --git a/packages/eslint-config-react/package.json b/packages/eslint-config-react/package.json index 2622672..efcd8b0 100644 --- a/packages/eslint-config-react/package.json +++ b/packages/eslint-config-react/package.json @@ -20,26 +20,32 @@ "author": "kurone-kito (https://kit.black/)", "type": "module", "exports": { - ".": "./.eslintrc.json", + ".": "./dist/index.mjs", "./.eslintrc.json": "./.eslintrc.json", "./.eslintrc.yml": "./.eslintrc.yml" }, - "main": ".eslintrc.json", + "main": "./dist/index.mjs", + "types": "./dist/index.d.mts", "files": [ - ".eslintrc.*" + ".eslintrc.*", + "dist" ], "scripts": { "build": "conc \"yarn:build:*\"", "build:json": "js-yaml .eslintrc.yml > .eslintrc.json", "build:license": "cpy --flat ../../LICENSE .", - "clean": "rimraf -g \"*.tgz\" \"*.tsbuildinfo\" .eslintcache .eslintrc.json LICENSE", - "prepack": "conc -m 1 \"yarn:clean\" \"yarn:build\"" + "build:ts": "tsc", + "clean": "rimraf -g \"*.tgz\" \"*.tsbuildinfo\" .eslintcache .eslintrc.json dist LICENSE", + "prepack": "conc -m 1 \"yarn:clean\" \"yarn:build\"", + "start": "tsc --watch" }, "dependencies": { "@kurone-kito/eslint-config-base": "workspace:^" }, "devDependencies": { "@cspell/eslint-plugin": "^8.13.1", + "@kurone-kito/typescript-config": "workspace:^", + "@types/eslint": "^8.56.11", "@typescript-eslint/eslint-plugin": "^8.0.0", "@typescript-eslint/parser": "^8.0.0", "concurrently": "^8.2.2", diff --git a/packages/eslint-config-react/src/index.mts b/packages/eslint-config-react/src/index.mts new file mode 100644 index 0000000..6bbf017 --- /dev/null +++ b/packages/eslint-config-react/src/index.mts @@ -0,0 +1,7 @@ +import baseConfig from '@kurone-kito/eslint-config-base'; +import type { Linter } from 'eslint'; + +/** ESLint configuration for generic React projects. */ +const config: readonly Linter.FlatConfig[] = [...baseConfig]; + +export default config; diff --git a/packages/eslint-config-react/tsconfig.json b/packages/eslint-config-react/tsconfig.json new file mode 100644 index 0000000..e74e45b --- /dev/null +++ b/packages/eslint-config-react/tsconfig.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "lib": ["ESNext"], + "outDir": "dist", + "rootDir": "src" + }, + "extends": "@kurone-kito/typescript-config/tsconfig.json" +} diff --git a/yarn.lock b/yarn.lock index 6953fa8..e2c653d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -886,6 +886,8 @@ __metadata: resolution: "@kurone-kito/eslint-config-base@workspace:packages/eslint-config-base" dependencies: "@cspell/eslint-plugin": "npm:^8.13.1" + "@kurone-kito/typescript-config": "workspace:^" + "@types/eslint": "npm:^8.56.11" "@typescript-eslint/eslint-plugin": "npm:^8.0.0" "@typescript-eslint/parser": "npm:^8.0.0" concurrently: "npm:^8.2.2" @@ -974,6 +976,8 @@ __metadata: dependencies: "@cspell/eslint-plugin": "npm:^8.13.1" "@kurone-kito/eslint-config-base": "workspace:^" + "@kurone-kito/typescript-config": "workspace:^" + "@types/eslint": "npm:^8.56.11" "@typescript-eslint/eslint-plugin": "npm:^8.0.0" "@typescript-eslint/parser": "npm:^8.0.0" concurrently: "npm:^8.2.2" @@ -1347,6 +1351,23 @@ __metadata: languageName: node linkType: hard +"@types/eslint@npm:^8.56.11": + version: 8.56.11 + resolution: "@types/eslint@npm:8.56.11" + dependencies: + "@types/estree": "npm:*" + "@types/json-schema": "npm:*" + checksum: 10/cfc4409973ed8d3ed183bc477bcfed39ea3fd264dc1da4a11b9c002d1e5fb96de8abed67f60a0e32a668cc2817b2b1c27a1885ec5de5fdc5471bcc99d5d1f75b + languageName: node + linkType: hard + +"@types/estree@npm:*": + version: 1.0.5 + resolution: "@types/estree@npm:1.0.5" + checksum: 10/7de6d928dd4010b0e20c6919e1a6c27b61f8d4567befa89252055fad503d587ecb9a1e3eab1b1901f923964d7019796db810b7fd6430acb26c32866d126fd408 + languageName: node + linkType: hard + "@types/http-cache-semantics@npm:*": version: 4.0.4 resolution: "@types/http-cache-semantics@npm:4.0.4" @@ -1354,7 +1375,7 @@ __metadata: languageName: node linkType: hard -"@types/json-schema@npm:^7.0.9": +"@types/json-schema@npm:*, @types/json-schema@npm:^7.0.9": version: 7.0.15 resolution: "@types/json-schema@npm:7.0.15" checksum: 10/1a3c3e06236e4c4aab89499c428d585527ce50c24fe8259e8b3926d3df4cfbbbcf306cfc73ddfb66cbafc973116efd15967020b0f738f63e09e64c7d260519e7 From 8c76f6b30a290a69d78b2b3d42245b5abdaa554d Mon Sep 17 00:00:00 2001 From: kurone-kito Date: Tue, 13 Aug 2024 13:42:02 +0900 Subject: [PATCH 03/10] feat(eslint,root): implemented the minimum configuration --- packages/eslint-config-base/package.json | 8 +++++--- packages/eslint-config-base/src/data.mts | 7 +++++++ packages/eslint-config-base/src/index.mts | 3 ++- packages/eslint-config-base/tsconfig.json | 3 ++- packages/eslint-config-react/package.json | 7 +------ packages/eslint-config-react/tsconfig.json | 3 ++- yarn.lock | 8 ++------ 7 files changed, 21 insertions(+), 18 deletions(-) create mode 100644 packages/eslint-config-base/src/data.mts diff --git a/packages/eslint-config-base/package.json b/packages/eslint-config-base/package.json index f2e14d0..210122b 100644 --- a/packages/eslint-config-base/package.json +++ b/packages/eslint-config-base/package.json @@ -39,6 +39,10 @@ "prepack": "conc -m 1 \"yarn:clean\" \"yarn:build\"", "start": "tsc --watch" }, + "dependencies": { + "eslint": "^8.57.0", + "eslint-plugin-yaml": "^1.0.3" + }, "devDependencies": { "@cspell/eslint-plugin": "^8.13.1", "@kurone-kito/typescript-config": "workspace:^", @@ -47,7 +51,6 @@ "@typescript-eslint/parser": "^8.0.0", "concurrently": "^8.2.2", "cpy-cli": "^5.0.0", - "eslint": "^8.57.0", "eslint-config-airbnb-typescript": "^18.0.0", "eslint-config-prettier": "^9.1.0", "eslint-formatter-codeframe": "^7.32.1", @@ -61,7 +64,6 @@ "eslint-plugin-markdownlint": "^0.6.0", "eslint-plugin-n": "^17.10.1", "eslint-plugin-oxlint": "^0.5.0", - "eslint-plugin-yaml": "^1.0.3", "js-yaml": "^4.1.0", "prettier": "^3.3.3", "rimraf": "^5.0.10", @@ -85,7 +87,7 @@ "eslint-plugin-markdownlint": ">=0.5.x", "eslint-plugin-n": ">=17.x.x", "eslint-plugin-oxlint": ">=0.2.x", - "eslint-plugin-yaml": ">=0.5.x" + "eslint-plugin-yaml": ">=1.0.3" }, "peerDependenciesMeta": { "@cspell/eslint-plugin": { diff --git a/packages/eslint-config-base/src/data.mts b/packages/eslint-config-base/src/data.mts new file mode 100644 index 0000000..5fccad2 --- /dev/null +++ b/packages/eslint-config-base/src/data.mts @@ -0,0 +1,7 @@ +import type { Linter } from 'eslint'; +import pluginYaml from 'eslint-plugin-yaml'; + +/** The ESLint configuration for data language files. */ +export const dataConfig: readonly Linter.FlatConfig[] = [ + (pluginYaml as any).configs.recommended, +]; diff --git a/packages/eslint-config-base/src/index.mts b/packages/eslint-config-base/src/index.mts index 5408f03..ea5131d 100644 --- a/packages/eslint-config-base/src/index.mts +++ b/packages/eslint-config-base/src/index.mts @@ -1,6 +1,7 @@ import type { Linter } from 'eslint'; +import { dataConfig } from './data.mjs'; /** ESLint configuration for generic TypeScript projects. */ -const config: readonly Linter.FlatConfig[] = []; +const config: readonly Linter.FlatConfig[] = [...dataConfig]; export default config; diff --git a/packages/eslint-config-base/tsconfig.json b/packages/eslint-config-base/tsconfig.json index e74e45b..f5e568e 100644 --- a/packages/eslint-config-base/tsconfig.json +++ b/packages/eslint-config-base/tsconfig.json @@ -2,7 +2,8 @@ "compilerOptions": { "lib": ["ESNext"], "outDir": "dist", - "rootDir": "src" + "rootDir": "src", + "skipLibCheck": true }, "extends": "@kurone-kito/typescript-config/tsconfig.json" } diff --git a/packages/eslint-config-react/package.json b/packages/eslint-config-react/package.json index efcd8b0..e7d2ed7 100644 --- a/packages/eslint-config-react/package.json +++ b/packages/eslint-config-react/package.json @@ -50,7 +50,6 @@ "@typescript-eslint/parser": "^8.0.0", "concurrently": "^8.2.2", "cpy-cli": "^5.0.0", - "eslint": "^8.57.0", "eslint-config-airbnb-typescript": "^18.0.0", "eslint-config-prettier": "^9.1.0", "eslint-formatter-codeframe": "^7.32.1", @@ -78,7 +77,6 @@ "@cspell/eslint-plugin": ">=6.x.x", "@typescript-eslint/eslint-plugin": ">=6.0.x", "@typescript-eslint/parser": ">=6.0.x", - "eslint": ">=8.2.x", "eslint-config-airbnb-typescript": ">=17.x.x", "eslint-config-prettier": ">=8.x.x", "eslint-formatter-codeframe": ">=7.x.x", @@ -96,7 +94,7 @@ "eslint-plugin-react": ">=7.2.x", "eslint-plugin-react-hooks": ">=4.3.x", "eslint-plugin-storybook": ">=0.6.x", - "eslint-plugin-yaml": ">=0.5.x" + "eslint-plugin-yaml": ">=1.0.3" }, "peerDependenciesMeta": { "@cspell/eslint-plugin": { @@ -108,9 +106,6 @@ "@typescript-eslint/parser": { "optional": true }, - "eslint": { - "optional": true - }, "eslint-config-airbnb-typescript": { "optional": true }, diff --git a/packages/eslint-config-react/tsconfig.json b/packages/eslint-config-react/tsconfig.json index e74e45b..f5e568e 100644 --- a/packages/eslint-config-react/tsconfig.json +++ b/packages/eslint-config-react/tsconfig.json @@ -2,7 +2,8 @@ "compilerOptions": { "lib": ["ESNext"], "outDir": "dist", - "rootDir": "src" + "rootDir": "src", + "skipLibCheck": true }, "extends": "@kurone-kito/typescript-config/tsconfig.json" } diff --git a/yarn.lock b/yarn.lock index e2c653d..b103891 100644 --- a/yarn.lock +++ b/yarn.lock @@ -929,7 +929,7 @@ __metadata: eslint-plugin-markdownlint: ">=0.5.x" eslint-plugin-n: ">=17.x.x" eslint-plugin-oxlint: ">=0.2.x" - eslint-plugin-yaml: ">=0.5.x" + eslint-plugin-yaml: ">=1.0.3" peerDependenciesMeta: "@cspell/eslint-plugin": optional: true @@ -982,7 +982,6 @@ __metadata: "@typescript-eslint/parser": "npm:^8.0.0" concurrently: "npm:^8.2.2" cpy-cli: "npm:^5.0.0" - eslint: "npm:^8.57.0" eslint-config-airbnb-typescript: "npm:^18.0.0" eslint-config-prettier: "npm:^9.1.0" eslint-formatter-codeframe: "npm:^7.32.1" @@ -1009,7 +1008,6 @@ __metadata: "@cspell/eslint-plugin": ">=6.x.x" "@typescript-eslint/eslint-plugin": ">=6.0.x" "@typescript-eslint/parser": ">=6.0.x" - eslint: ">=8.2.x" eslint-config-airbnb-typescript: ">=17.x.x" eslint-config-prettier: ">=8.x.x" eslint-formatter-codeframe: ">=7.x.x" @@ -1027,7 +1025,7 @@ __metadata: eslint-plugin-react: ">=7.2.x" eslint-plugin-react-hooks: ">=4.3.x" eslint-plugin-storybook: ">=0.6.x" - eslint-plugin-yaml: ">=0.5.x" + eslint-plugin-yaml: ">=1.0.3" peerDependenciesMeta: "@cspell/eslint-plugin": optional: true @@ -1035,8 +1033,6 @@ __metadata: optional: true "@typescript-eslint/parser": optional: true - eslint: - optional: true eslint-config-airbnb-typescript: optional: true eslint-config-prettier: From a837061dbee61e75c0e35848488e993dc9810a45 Mon Sep 17 00:00:00 2001 From: kurone-kito Date: Tue, 13 Aug 2024 00:31:42 +0900 Subject: [PATCH 04/10] feat(eslint,root): migrated the ignore settings to the flat config --- .yarnrc.yml | 3 +++ packages/eslint-config-base/package.json | 2 ++ packages/eslint-config-base/src/ignore.mts | 13 +++++++++++++ packages/eslint-config-base/src/index.mts | 3 ++- packages/eslint-config-base/tsconfig.json | 3 ++- packages/eslint-config-react/package.json | 1 + packages/eslint-config-react/tsconfig.json | 3 ++- yarn.lock | 18 ++++++++++++++---- 8 files changed, 39 insertions(+), 7 deletions(-) create mode 100644 packages/eslint-config-base/src/ignore.mts diff --git a/.yarnrc.yml b/.yarnrc.yml index a07809a..a46d337 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -18,6 +18,9 @@ packageExtensions: "@types/node": "*" peerDependencies: typescript: ">=4.9.5" + "@eslint/compat@*": + peerDependencies: + "@types/eslint": "*" "@typescript-eslint/type-utils@*": peerDependencies: eslint: ^8.57.0 || ^9.0.0 diff --git a/packages/eslint-config-base/package.json b/packages/eslint-config-base/package.json index 210122b..bf306c2 100644 --- a/packages/eslint-config-base/package.json +++ b/packages/eslint-config-base/package.json @@ -40,6 +40,7 @@ "start": "tsc --watch" }, "dependencies": { + "@eslint/compat": "^1.1.1", "eslint": "^8.57.0", "eslint-plugin-yaml": "^1.0.3" }, @@ -47,6 +48,7 @@ "@cspell/eslint-plugin": "^8.13.1", "@kurone-kito/typescript-config": "workspace:^", "@types/eslint": "^8.56.11", + "@types/node": "^22.2.0", "@typescript-eslint/eslint-plugin": "^8.0.0", "@typescript-eslint/parser": "^8.0.0", "concurrently": "^8.2.2", diff --git a/packages/eslint-config-base/src/ignore.mts b/packages/eslint-config-base/src/ignore.mts new file mode 100644 index 0000000..dd7776e --- /dev/null +++ b/packages/eslint-config-base/src/ignore.mts @@ -0,0 +1,13 @@ +import { existsSync } from 'node:fs'; +import { resolve } from 'node:path'; +import { includeIgnoreFile } from '@eslint/compat'; +import type { Linter } from 'eslint'; + +/** The configuration for ESLint to ignore files and directories. */ +export const ignoreConfig: readonly Linter.FlatConfig[] = [ + ...['.gitignore', '.eslintignore'] + .map((file) => resolve(process.cwd(), file)) + .filter((file) => existsSync(file)) + .map((file) => includeIgnoreFile(file)), + { ignores: ['.yarn/**/*', 'yarn.lock'] }, +]; diff --git a/packages/eslint-config-base/src/index.mts b/packages/eslint-config-base/src/index.mts index ea5131d..13142b0 100644 --- a/packages/eslint-config-base/src/index.mts +++ b/packages/eslint-config-base/src/index.mts @@ -1,7 +1,8 @@ import type { Linter } from 'eslint'; import { dataConfig } from './data.mjs'; +import { ignoreConfig } from './ignore.mjs'; /** ESLint configuration for generic TypeScript projects. */ -const config: readonly Linter.FlatConfig[] = [...dataConfig]; +const config: readonly Linter.FlatConfig[] = [...ignoreConfig, ...dataConfig]; export default config; diff --git a/packages/eslint-config-base/tsconfig.json b/packages/eslint-config-base/tsconfig.json index f5e568e..5b22c98 100644 --- a/packages/eslint-config-base/tsconfig.json +++ b/packages/eslint-config-base/tsconfig.json @@ -3,7 +3,8 @@ "lib": ["ESNext"], "outDir": "dist", "rootDir": "src", - "skipLibCheck": true + "skipLibCheck": true, + "types": ["node"] }, "extends": "@kurone-kito/typescript-config/tsconfig.json" } diff --git a/packages/eslint-config-react/package.json b/packages/eslint-config-react/package.json index e7d2ed7..38f603e 100644 --- a/packages/eslint-config-react/package.json +++ b/packages/eslint-config-react/package.json @@ -46,6 +46,7 @@ "@cspell/eslint-plugin": "^8.13.1", "@kurone-kito/typescript-config": "workspace:^", "@types/eslint": "^8.56.11", + "@types/node": "^22.2.0", "@typescript-eslint/eslint-plugin": "^8.0.0", "@typescript-eslint/parser": "^8.0.0", "concurrently": "^8.2.2", diff --git a/packages/eslint-config-react/tsconfig.json b/packages/eslint-config-react/tsconfig.json index f5e568e..5b22c98 100644 --- a/packages/eslint-config-react/tsconfig.json +++ b/packages/eslint-config-react/tsconfig.json @@ -3,7 +3,8 @@ "lib": ["ESNext"], "outDir": "dist", "rootDir": "src", - "skipLibCheck": true + "skipLibCheck": true, + "types": ["node"] }, "extends": "@kurone-kito/typescript-config/tsconfig.json" } diff --git a/yarn.lock b/yarn.lock index b103891..dcdce04 100644 --- a/yarn.lock +++ b/yarn.lock @@ -791,6 +791,13 @@ __metadata: languageName: node linkType: hard +"@eslint/compat@npm:^1.1.1": + version: 1.1.1 + resolution: "@eslint/compat@npm:1.1.1" + checksum: 10/9004697701e9e9a7749d9e37452ee965af3620af46796ac0ee196478bbda490c780d17686c2888353c2a12d764837fa71c027c3ca18b1c3af6136105caa93642 + languageName: node + linkType: hard + "@eslint/eslintrc@npm:^2.1.4": version: 2.1.4 resolution: "@eslint/eslintrc@npm:2.1.4" @@ -886,8 +893,10 @@ __metadata: resolution: "@kurone-kito/eslint-config-base@workspace:packages/eslint-config-base" dependencies: "@cspell/eslint-plugin": "npm:^8.13.1" + "@eslint/compat": "npm:^1.1.1" "@kurone-kito/typescript-config": "workspace:^" "@types/eslint": "npm:^8.56.11" + "@types/node": "npm:^22.2.0" "@typescript-eslint/eslint-plugin": "npm:^8.0.0" "@typescript-eslint/parser": "npm:^8.0.0" concurrently: "npm:^8.2.2" @@ -978,6 +987,7 @@ __metadata: "@kurone-kito/eslint-config-base": "workspace:^" "@kurone-kito/typescript-config": "workspace:^" "@types/eslint": "npm:^8.56.11" + "@types/node": "npm:^22.2.0" "@typescript-eslint/eslint-plugin": "npm:^8.0.0" "@typescript-eslint/parser": "npm:^8.0.0" concurrently: "npm:^8.2.2" @@ -1403,12 +1413,12 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:*": - version: 22.1.0 - resolution: "@types/node@npm:22.1.0" +"@types/node@npm:*, @types/node@npm:^22.2.0": + version: 22.2.0 + resolution: "@types/node@npm:22.2.0" dependencies: undici-types: "npm:~6.13.0" - checksum: 10/c2ac1340509646b6c673b27fae2a46e501a97e540e7221be4dd2e0be7a0f61efefb5bf3be8bedf2dbce245fa49cfc49bba77bce73fa3c4296d0d19521ced3222 + checksum: 10/2957c5c81f1a07a1210f28382adae65c11070c301e395fa819448516f1a2a710054b29e0ec7d8e28624afbcd90dae810403a497109545dea835b554fc76edf6c languageName: node linkType: hard From f9d0128cbdd538b7305880d4aedc9944d52c1138 Mon Sep 17 00:00:00 2001 From: kurone-kito Date: Wed, 14 Aug 2024 08:49:36 +0900 Subject: [PATCH 05/10] chore(root): migrated the linting settings of this repository to flat config --- .eslintignore | 386 ------------------------------------------ .eslintrc.yml | 7 - .vscode/settings.json | 1 - eslint.config.mjs | 1 + package.json | 17 +- yarn.lock | 17 +- 6 files changed, 3 insertions(+), 426 deletions(-) delete mode 100644 .eslintignore delete mode 100644 .eslintrc.yml create mode 100644 eslint.config.mjs diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 4a44329..0000000 --- a/.eslintignore +++ /dev/null @@ -1,386 +0,0 @@ -# Created by https://www.toptal.com/developers/gitignore/api/images,linux,macos,node,sublimetext,vim,visualstudiocode,windows,yarn -# Edit at https://www.toptal.com/developers/gitignore?templates=images,linux,macos,node,sublimetext,vim,visualstudiocode,windows,yarn - -### Images ### -# JPEG -*.jpg -*.jpeg -*.jpe -*.jif -*.jfif -*.jfi - -# JPEG 2000 -*.jp2 -*.j2k -*.jpf -*.jpx -*.jpm -*.mj2 - -# JPEG XR -*.jxr -*.hdp -*.wdp - -# Graphics Interchange Format -*.gif - -# RAW -*.raw - -# Web P -*.webp - -# Portable Network Graphics -*.png - -# Animated Portable Network Graphics -*.apng - -# Multiple-image Network Graphics -*.mng - -# Tagged Image File Format -*.tiff -*.tif - -# Scalable Vector Graphics -*.svg -*.svgz - -# Portable Document Format -*.pdf - -# X BitMap -*.xbm - -# BMP -*.bmp -*.dib - -# ICO -*.ico - -# 3D Images -*.3dm -*.max - -### Linux ### -*~ - -# temporary files which can be created if a process still has a handle open of a deleted file -.fuse_hidden* - -# KDE directory preferences -.directory - -# Linux trash folder which might appear on any partition or disk -.Trash-* - -# .nfs files are created when an open file is removed but is still being accessed -.nfs* - -### macOS ### -# General -.DS_Store -.AppleDouble -.LSOverride - -# Icon must end with two \r -Icon - - -# Thumbnails -._* - -# Files that might appear in the root of a volume -.DocumentRevisions-V100 -.fseventsd -.Spotlight-V100 -.TemporaryItems -.Trashes -.VolumeIcon.icns -.com.apple.timemachine.donotpresent - -# Directories potentially created on remote AFP share -.AppleDB -.AppleDesktop -Network Trash Folder -Temporary Items -.apdisk - -### macOS Patch ### -# iCloud generated files -*.icloud - -### Node ### -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -lerna-debug.log* -.pnpm-debug.log* - -# Diagnostic reports (https://nodejs.org/api/report.html) -report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage -*.lcov - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules/ -jspm_packages/ - -# Snowpack dependency directory (https://snowpack.dev/) -web_modules/ - -# TypeScript cache -*.tsbuildinfo - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Optional stylelint cache -.stylelintcache - -# Microbundle cache -.rpt2_cache/ -.rts2_cache_cjs/ -.rts2_cache_es/ -.rts2_cache_umd/ - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variable files -.env -.env.development.local -.env.test.local -.env.production.local -.env.local - -# parcel-bundler cache (https://parceljs.org/) -.cache -.parcel-cache - -# Next.js build output -.next -out - -# Nuxt.js build / generate output -.nuxt -dist - -# Gatsby files -.cache/ -# Comment in the public line in if your project uses Gatsby and not Next.js -# https://nextjs.org/blog/next-9-1#public-directory-support -public - -# vuepress build output -.vuepress/dist - -# vuepress v2.x temp and cache directory -.temp - -# Docusaurus cache and generated files -.docusaurus - -# Serverless directories -.serverless/ - -# FuseBox cache -.fusebox/ - -# DynamoDB Local files -.dynamodb/ - -# TernJS port file -.tern-port - -# Stores VSCode versions used for testing VSCode extensions -.vscode-test - -# yarn v2 -.yarn/cache -.yarn/unplugged -.yarn/build-state.yml -.yarn/install-state.gz -.pnp.* - -### Node Patch ### -# Serverless Webpack directories -.webpack/ - -# Optional stylelint cache - -# SvelteKit build / generate output -.svelte-kit - -### SublimeText ### -# Cache files for Sublime Text -*.tmlanguage.cache -*.tmPreferences.cache -*.stTheme.cache - -# Workspace files are user-specific -*.sublime-workspace - -# Project files should be checked into the repository, unless a significant -# proportion of contributors will probably not be using Sublime Text -*.sublime-project - -# SFTP configuration file -sftp-config.json -sftp-config-alt*.json - -# Package control specific files -Package Control.last-run -Package Control.ca-list -Package Control.ca-bundle -Package Control.system-ca-bundle -Package Control.cache/ -Package Control.ca-certs/ -Package Control.merged-ca-bundle -Package Control.user-ca-bundle -oscrypto-ca-bundle.crt -bh_unicode_properties.cache - -# Sublime-github package stores a github token in this file -# https://packagecontrol.io/packages/sublime-github -GitHub.sublime-settings - -### Vim ### -# Swap -[._]*.s[a-v][a-z] -!*.svg # comment out if you don't need vector files -[._]*.sw[a-p] -[._]s[a-rt-v][a-z] -[._]ss[a-gi-z] -[._]sw[a-p] - -# Session -Session.vim -Sessionx.vim - -# Temporary -.netrwhist -# Auto-generated tag files -tags -# Persistent undo -[._]*.un~ - -### VisualStudioCode ### -.vscode/* -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json -!.vscode/*.code-snippets - -# Local History for Visual Studio Code -.history/ - -# Built Visual Studio Code Extensions -*.vsix - -### VisualStudioCode Patch ### -# Ignore all local history of files -.history -.ionide - -### Windows ### -# Windows thumbnail cache files -Thumbs.db -Thumbs.db:encryptable -ehthumbs.db -ehthumbs_vista.db - -# Dump file -*.stackdump - -# Folder config file -[Dd]esktop.ini - -# Recycle Bin used on file shares -$RECYCLE.BIN/ - -# Windows Installer files -*.cab -*.msi -*.msix -*.msm -*.msp - -# Windows shortcuts -*.lnk - -### yarn ### -# https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored - -.yarn/* -!.yarn/releases -!.yarn/patches -!.yarn/plugins -!.yarn/sdks -!.yarn/versions - -# if you are NOT using Zero-installs, then: -# comment the following lines -# !.yarn/cache - -# and uncomment the following lines -.pnp.* - -# End of https://www.toptal.com/developers/gitignore/api/images,linux,macos,node,sublimetext,vim,visualstudiocode,windows,yarn - -### THE PROJECT SPECIFIES ################################################# - -### Node ### -# JSON -*.json - -# yarn v2 -.yarn/ -yarn.lock - -### Text ### -*.md -LICENSE diff --git a/.eslintrc.yml b/.eslintrc.yml deleted file mode 100644 index 7fb0c66..0000000 --- a/.eslintrc.yml +++ /dev/null @@ -1,7 +0,0 @@ -extends: - - '@kurone-kito/eslint-config-base/.eslintrc.yml' -parserOptions: - project: - - './tsconfig.json' - - packages/*/tsconfig.json -root: true diff --git a/.vscode/settings.json b/.vscode/settings.json index 7321c34..ca116cb 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -6,7 +6,6 @@ "*.d.mts": "${capture}.d.mts*, ${capture}.mjs*", "*.md": "${capture}.*.md", "*.yml": "${capture}.json", - ".eslintrc*": ".eslintignore", ".gitattributes": ".gitignore", ".markdownlint.*": ".markdownlint-cli2.*", ".pnp.loader.mjs": ".pnp.cjs", diff --git a/eslint.config.mjs b/eslint.config.mjs new file mode 100644 index 0000000..2b213d4 --- /dev/null +++ b/eslint.config.mjs @@ -0,0 +1 @@ +export { default } from '@kurone-kito/eslint-config-base'; diff --git a/package.json b/package.json index 610ebbf..45c2f1a 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,6 @@ "@commitlint/cli": "^19.3.0", "@commitlint/config-conventional": "^19.2.2", "@cspell/cspell-types": "^8.13.1", - "@cspell/eslint-plugin": "^8.13.1", "@kurone-kito/commitlint-config": "workspace:^", "@kurone-kito/cspell-config": "workspace:^", "@kurone-kito/eslint-config-base": "workspace:^", @@ -62,27 +61,13 @@ "@kurone-kito/markdownlint-config": "workspace:^", "@kurone-kito/prettier-config": "workspace:^", "@kurone-kito/typescript-config": "workspace:^", - "@typescript-eslint/eslint-plugin": "^8.0.0", + "@types/eslint": "^8.56.11", "@typescript-eslint/parser": "^8.0.0", "@yarnpkg/sdks": "^3.2.0", "concurrently": "^8.2.2", "cspell": "^8.13.1", "eslint": "^8.57.0", - "eslint-config-airbnb-typescript": "^18.0.0", - "eslint-config-prettier": "^9.1.0", "eslint-formatter-codeframe": "^7.32.1", - "eslint-import-resolver-node": "^0.3.9", - "eslint-import-resolver-typescript": "^3.6.1", - "eslint-plugin-editorconfig": "^4.0.3", - "eslint-plugin-import": "^2.29.1", - "eslint-plugin-jsdoc": "^48.11.0", - "eslint-plugin-json": "^4.0.0", - "eslint-plugin-markdown": "^5.1.0", - "eslint-plugin-markdownlint": "^0.6.0", - "eslint-plugin-n": "^17.10.1", - "eslint-plugin-oxlint": "^0.5.0", - "eslint-plugin-react": "^7.35.0", - "eslint-plugin-yaml": "^1.0.3", "husky": "^9.1.4", "lint-staged": "^15.2.8", "markdownlint-cli2": "^0.13.0", diff --git a/yarn.lock b/yarn.lock index dcdce04..40222d6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1106,7 +1106,6 @@ __metadata: "@commitlint/cli": "npm:^19.3.0" "@commitlint/config-conventional": "npm:^19.2.2" "@cspell/cspell-types": "npm:^8.13.1" - "@cspell/eslint-plugin": "npm:^8.13.1" "@kurone-kito/commitlint-config": "workspace:^" "@kurone-kito/cspell-config": "workspace:^" "@kurone-kito/eslint-config-base": "workspace:^" @@ -1115,27 +1114,13 @@ __metadata: "@kurone-kito/markdownlint-config": "workspace:^" "@kurone-kito/prettier-config": "workspace:^" "@kurone-kito/typescript-config": "workspace:^" - "@typescript-eslint/eslint-plugin": "npm:^8.0.0" + "@types/eslint": "npm:^8.56.11" "@typescript-eslint/parser": "npm:^8.0.0" "@yarnpkg/sdks": "npm:^3.2.0" concurrently: "npm:^8.2.2" cspell: "npm:^8.13.1" eslint: "npm:^8.57.0" - eslint-config-airbnb-typescript: "npm:^18.0.0" - eslint-config-prettier: "npm:^9.1.0" eslint-formatter-codeframe: "npm:^7.32.1" - eslint-import-resolver-node: "npm:^0.3.9" - eslint-import-resolver-typescript: "npm:^3.6.1" - eslint-plugin-editorconfig: "npm:^4.0.3" - eslint-plugin-import: "npm:^2.29.1" - eslint-plugin-jsdoc: "npm:^48.11.0" - eslint-plugin-json: "npm:^4.0.0" - eslint-plugin-markdown: "npm:^5.1.0" - eslint-plugin-markdownlint: "npm:^0.6.0" - eslint-plugin-n: "npm:^17.10.1" - eslint-plugin-oxlint: "npm:^0.5.0" - eslint-plugin-react: "npm:^7.35.0" - eslint-plugin-yaml: "npm:^1.0.3" husky: "npm:^9.1.4" lint-staged: "npm:^15.2.8" markdownlint-cli2: "npm:^0.13.0" From 2c3c368e9d96060a2c2f4a242f518db4a405eab8 Mon Sep 17 00:00:00 2001 From: kurone-kito Date: Thu, 15 Aug 2024 13:53:49 +0900 Subject: [PATCH 06/10] feat(eslint,root): migrate to eslint v9 --- .yarn/sdks/eslint/package.json | 2 +- package.json | 4 +- packages/eslint-config-base/package.json | 10 +- packages/eslint-config-base/src/data.mts | 2 +- packages/eslint-config-base/src/ignore.mts | 2 +- packages/eslint-config-base/src/index.mts | 2 +- packages/eslint-config-react/package.json | 7 +- packages/eslint-config-react/src/index.mts | 2 +- packages/typescript-config/package.json | 2 +- yarn.lock | 171 ++++++++++++++++++--- 10 files changed, 170 insertions(+), 34 deletions(-) diff --git a/.yarn/sdks/eslint/package.json b/.yarn/sdks/eslint/package.json index 263cd3d..c7bd682 100644 --- a/.yarn/sdks/eslint/package.json +++ b/.yarn/sdks/eslint/package.json @@ -1,6 +1,6 @@ { "name": "eslint", - "version": "8.57.0-sdk", + "version": "9.9.0-sdk", "main": "./lib/api.js", "type": "commonjs", "bin": { diff --git a/package.json b/package.json index 45c2f1a..9e5982c 100644 --- a/package.json +++ b/package.json @@ -61,12 +61,12 @@ "@kurone-kito/markdownlint-config": "workspace:^", "@kurone-kito/prettier-config": "workspace:^", "@kurone-kito/typescript-config": "workspace:^", - "@types/eslint": "^8.56.11", + "@types/eslint": "^9.6.0", "@typescript-eslint/parser": "^8.0.0", "@yarnpkg/sdks": "^3.2.0", "concurrently": "^8.2.2", "cspell": "^8.13.1", - "eslint": "^8.57.0", + "eslint": "^9.9.0", "eslint-formatter-codeframe": "^7.32.1", "husky": "^9.1.4", "lint-staged": "^15.2.8", diff --git a/packages/eslint-config-base/package.json b/packages/eslint-config-base/package.json index bf306c2..67b05a0 100644 --- a/packages/eslint-config-base/package.json +++ b/packages/eslint-config-base/package.json @@ -41,13 +41,13 @@ }, "dependencies": { "@eslint/compat": "^1.1.1", - "eslint": "^8.57.0", + "eslint": "^9.9.0", "eslint-plugin-yaml": "^1.0.3" }, "devDependencies": { "@cspell/eslint-plugin": "^8.13.1", "@kurone-kito/typescript-config": "workspace:^", - "@types/eslint": "^8.56.11", + "@types/eslint": "^9.6.0", "@types/node": "^22.2.0", "@typescript-eslint/eslint-plugin": "^8.0.0", "@typescript-eslint/parser": "^8.0.0", @@ -73,9 +73,9 @@ }, "peerDependencies": { "@cspell/eslint-plugin": ">=6.x.x", - "@typescript-eslint/eslint-plugin": ">=6.0.x", - "@typescript-eslint/parser": ">=6.0.x", - "eslint": ">=8.2.x", + "@typescript-eslint/eslint-plugin": ">=8.0.x", + "@typescript-eslint/parser": ">=8.0.x", + "eslint": ">=9.x.x", "eslint-config-airbnb-typescript": ">=17.x.x", "eslint-config-prettier": ">=8.x.x", "eslint-formatter-codeframe": ">=7.x.x", diff --git a/packages/eslint-config-base/src/data.mts b/packages/eslint-config-base/src/data.mts index 5fccad2..b8e08eb 100644 --- a/packages/eslint-config-base/src/data.mts +++ b/packages/eslint-config-base/src/data.mts @@ -2,6 +2,6 @@ import type { Linter } from 'eslint'; import pluginYaml from 'eslint-plugin-yaml'; /** The ESLint configuration for data language files. */ -export const dataConfig: readonly Linter.FlatConfig[] = [ +export const dataConfig: readonly Linter.Config[] = [ (pluginYaml as any).configs.recommended, ]; diff --git a/packages/eslint-config-base/src/ignore.mts b/packages/eslint-config-base/src/ignore.mts index dd7776e..118d685 100644 --- a/packages/eslint-config-base/src/ignore.mts +++ b/packages/eslint-config-base/src/ignore.mts @@ -4,7 +4,7 @@ import { includeIgnoreFile } from '@eslint/compat'; import type { Linter } from 'eslint'; /** The configuration for ESLint to ignore files and directories. */ -export const ignoreConfig: readonly Linter.FlatConfig[] = [ +export const ignoreConfig: readonly Linter.Config[] = [ ...['.gitignore', '.eslintignore'] .map((file) => resolve(process.cwd(), file)) .filter((file) => existsSync(file)) diff --git a/packages/eslint-config-base/src/index.mts b/packages/eslint-config-base/src/index.mts index 13142b0..bcf7672 100644 --- a/packages/eslint-config-base/src/index.mts +++ b/packages/eslint-config-base/src/index.mts @@ -3,6 +3,6 @@ import { dataConfig } from './data.mjs'; import { ignoreConfig } from './ignore.mjs'; /** ESLint configuration for generic TypeScript projects. */ -const config: readonly Linter.FlatConfig[] = [...ignoreConfig, ...dataConfig]; +const config: readonly Linter.Config[] = [...ignoreConfig, ...dataConfig]; export default config; diff --git a/packages/eslint-config-react/package.json b/packages/eslint-config-react/package.json index 38f603e..ebba069 100644 --- a/packages/eslint-config-react/package.json +++ b/packages/eslint-config-react/package.json @@ -45,7 +45,7 @@ "devDependencies": { "@cspell/eslint-plugin": "^8.13.1", "@kurone-kito/typescript-config": "workspace:^", - "@types/eslint": "^8.56.11", + "@types/eslint": "^9.6.0", "@types/node": "^22.2.0", "@typescript-eslint/eslint-plugin": "^8.0.0", "@typescript-eslint/parser": "^8.0.0", @@ -76,8 +76,9 @@ }, "peerDependencies": { "@cspell/eslint-plugin": ">=6.x.x", - "@typescript-eslint/eslint-plugin": ">=6.0.x", - "@typescript-eslint/parser": ">=6.0.x", + "@typescript-eslint/eslint-plugin": ">=8.0.x", + "@typescript-eslint/parser": ">=8.0.x", + "eslint": ">=9.x.x", "eslint-config-airbnb-typescript": ">=17.x.x", "eslint-config-prettier": ">=8.x.x", "eslint-formatter-codeframe": ">=7.x.x", diff --git a/packages/eslint-config-react/src/index.mts b/packages/eslint-config-react/src/index.mts index 6bbf017..d281076 100644 --- a/packages/eslint-config-react/src/index.mts +++ b/packages/eslint-config-react/src/index.mts @@ -2,6 +2,6 @@ import baseConfig from '@kurone-kito/eslint-config-base'; import type { Linter } from 'eslint'; /** ESLint configuration for generic React projects. */ -const config: readonly Linter.FlatConfig[] = [...baseConfig]; +const config: readonly Linter.Config[] = [...baseConfig]; export default config; diff --git a/packages/typescript-config/package.json b/packages/typescript-config/package.json index b3cf382..36725ed 100644 --- a/packages/typescript-config/package.json +++ b/packages/typescript-config/package.json @@ -35,7 +35,7 @@ "@typescript-eslint/parser": "^8.0.0", "concurrently": "^8.2.2", "cpy-cli": "^5.0.0", - "eslint": "^8.57.0", + "eslint": "^9.9.0", "typescript": "~5.5.4", "typescript-eslint-language-service": "^5.0.5" }, diff --git a/yarn.lock b/yarn.lock index 40222d6..6e921a9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -798,6 +798,17 @@ __metadata: languageName: node linkType: hard +"@eslint/config-array@npm:^0.17.1": + version: 0.17.1 + resolution: "@eslint/config-array@npm:0.17.1" + dependencies: + "@eslint/object-schema": "npm:^2.1.4" + debug: "npm:^4.3.1" + minimatch: "npm:^3.1.2" + checksum: 10/d837852445d3cfc62da5e0d94ab036aa4393751cf2ee71676df61ec77bffabaa73f87207bfa200b8d0e7e95b556704f29f35f2f22d63d1ce2e285db4a325a2df + languageName: node + linkType: hard + "@eslint/eslintrc@npm:^2.1.4": version: 2.1.4 resolution: "@eslint/eslintrc@npm:2.1.4" @@ -815,6 +826,23 @@ __metadata: languageName: node linkType: hard +"@eslint/eslintrc@npm:^3.1.0": + version: 3.1.0 + resolution: "@eslint/eslintrc@npm:3.1.0" + dependencies: + ajv: "npm:^6.12.4" + debug: "npm:^4.3.2" + espree: "npm:^10.0.1" + globals: "npm:^14.0.0" + ignore: "npm:^5.2.0" + import-fresh: "npm:^3.2.1" + js-yaml: "npm:^4.1.0" + minimatch: "npm:^3.1.2" + strip-json-comments: "npm:^3.1.1" + checksum: 10/02bf892d1397e1029209dea685e9f4f87baf643315df2a632b5f121ec7e8548a3b34f428a007234fa82772218fa8a3ac2d10328637b9ce63b7f8344035b74db3 + languageName: node + linkType: hard + "@eslint/js@npm:8.57.0": version: 8.57.0 resolution: "@eslint/js@npm:8.57.0" @@ -822,6 +850,20 @@ __metadata: languageName: node linkType: hard +"@eslint/js@npm:9.9.0": + version: 9.9.0 + resolution: "@eslint/js@npm:9.9.0" + checksum: 10/9d6e94d0334aecaa7e5c78e654297d9b11679f56c8ec1b64db122cbecf64b5a04138617e901d0c79727d03abce8a898cce4288259435bde78460ebdab202998f + languageName: node + linkType: hard + +"@eslint/object-schema@npm:^2.1.4": + version: 2.1.4 + resolution: "@eslint/object-schema@npm:2.1.4" + checksum: 10/221e8d9f281c605948cd6e030874aacce83fe097f8f9c1964787037bccf08e82b7aa9eff1850a30fffac43f1d76555727ec22a2af479d91e268e89d1e035131e + languageName: node + linkType: hard + "@humanwhocodes/config-array@npm:^0.11.14": version: 0.11.14 resolution: "@humanwhocodes/config-array@npm:0.11.14" @@ -847,6 +889,13 @@ __metadata: languageName: node linkType: hard +"@humanwhocodes/retry@npm:^0.3.0": + version: 0.3.0 + resolution: "@humanwhocodes/retry@npm:0.3.0" + checksum: 10/e574bab58680867414e225c9002e9a97eb396f85871c180fbb1a9bcdf9ded4b4de0b327f7d0c43b775873362b7c92956d4b322e8bc4b90be56077524341f04b2 + languageName: node + linkType: hard + "@isaacs/cliui@npm:^8.0.2": version: 8.0.2 resolution: "@isaacs/cliui@npm:8.0.2" @@ -895,13 +944,13 @@ __metadata: "@cspell/eslint-plugin": "npm:^8.13.1" "@eslint/compat": "npm:^1.1.1" "@kurone-kito/typescript-config": "workspace:^" - "@types/eslint": "npm:^8.56.11" + "@types/eslint": "npm:^9.6.0" "@types/node": "npm:^22.2.0" "@typescript-eslint/eslint-plugin": "npm:^8.0.0" "@typescript-eslint/parser": "npm:^8.0.0" concurrently: "npm:^8.2.2" cpy-cli: "npm:^5.0.0" - eslint: "npm:^8.57.0" + eslint: "npm:^9.9.0" eslint-config-airbnb-typescript: "npm:^18.0.0" eslint-config-prettier: "npm:^9.1.0" eslint-formatter-codeframe: "npm:^7.32.1" @@ -922,9 +971,9 @@ __metadata: typescript: "npm:~5.5.4" peerDependencies: "@cspell/eslint-plugin": ">=6.x.x" - "@typescript-eslint/eslint-plugin": ">=6.0.x" - "@typescript-eslint/parser": ">=6.0.x" - eslint: ">=8.2.x" + "@typescript-eslint/eslint-plugin": ">=8.0.x" + "@typescript-eslint/parser": ">=8.0.x" + eslint: ">=9.x.x" eslint-config-airbnb-typescript: ">=17.x.x" eslint-config-prettier: ">=8.x.x" eslint-formatter-codeframe: ">=7.x.x" @@ -986,7 +1035,7 @@ __metadata: "@cspell/eslint-plugin": "npm:^8.13.1" "@kurone-kito/eslint-config-base": "workspace:^" "@kurone-kito/typescript-config": "workspace:^" - "@types/eslint": "npm:^8.56.11" + "@types/eslint": "npm:^9.6.0" "@types/node": "npm:^22.2.0" "@typescript-eslint/eslint-plugin": "npm:^8.0.0" "@typescript-eslint/parser": "npm:^8.0.0" @@ -1016,8 +1065,9 @@ __metadata: typescript: "npm:~5.5.4" peerDependencies: "@cspell/eslint-plugin": ">=6.x.x" - "@typescript-eslint/eslint-plugin": ">=6.0.x" - "@typescript-eslint/parser": ">=6.0.x" + "@typescript-eslint/eslint-plugin": ">=8.0.x" + "@typescript-eslint/parser": ">=8.0.x" + eslint: ">=9.x.x" eslint-config-airbnb-typescript: ">=17.x.x" eslint-config-prettier: ">=8.x.x" eslint-formatter-codeframe: ">=7.x.x" @@ -1114,12 +1164,12 @@ __metadata: "@kurone-kito/markdownlint-config": "workspace:^" "@kurone-kito/prettier-config": "workspace:^" "@kurone-kito/typescript-config": "workspace:^" - "@types/eslint": "npm:^8.56.11" + "@types/eslint": "npm:^9.6.0" "@typescript-eslint/parser": "npm:^8.0.0" "@yarnpkg/sdks": "npm:^3.2.0" concurrently: "npm:^8.2.2" cspell: "npm:^8.13.1" - eslint: "npm:^8.57.0" + eslint: "npm:^9.9.0" eslint-formatter-codeframe: "npm:^7.32.1" husky: "npm:^9.1.4" lint-staged: "npm:^15.2.8" @@ -1161,7 +1211,7 @@ __metadata: "@typescript-eslint/parser": "npm:^8.0.0" concurrently: "npm:^8.2.2" cpy-cli: "npm:^5.0.0" - eslint: "npm:^8.57.0" + eslint: "npm:^9.9.0" typescript: "npm:~5.5.4" typescript-eslint-language-service: "npm:^5.0.5" peerDependencies: @@ -1342,13 +1392,13 @@ __metadata: languageName: node linkType: hard -"@types/eslint@npm:^8.56.11": - version: 8.56.11 - resolution: "@types/eslint@npm:8.56.11" +"@types/eslint@npm:^9.6.0": + version: 9.6.0 + resolution: "@types/eslint@npm:9.6.0" dependencies: "@types/estree": "npm:*" "@types/json-schema": "npm:*" - checksum: 10/cfc4409973ed8d3ed183bc477bcfed39ea3fd264dc1da4a11b9c002d1e5fb96de8abed67f60a0e32a668cc2817b2b1c27a1885ec5de5fdc5471bcc99d5d1f75b + checksum: 10/39fc797c671ec9c9184802b4974748cf45ee1b11d7aaaaede44426abcafd07ec7c18eb090e8f5b3387b51637ce3fdf54499472d8dd58a928f0d005cbacb573b4 languageName: node linkType: hard @@ -3560,6 +3610,16 @@ __metadata: languageName: node linkType: hard +"eslint-scope@npm:^8.0.2": + version: 8.0.2 + resolution: "eslint-scope@npm:8.0.2" + dependencies: + esrecurse: "npm:^4.3.0" + estraverse: "npm:^5.2.0" + checksum: 10/d17c2e1ff4d3a98911414a954531078db912e2747d6da8ea4cafd16d0526e32086c676ce9aeaffb3ca0ff695fc951ac3169d7f08a0b42962db683dff126cc95b + languageName: node + linkType: hard + "eslint-visitor-keys@npm:^3.3.0, eslint-visitor-keys@npm:^3.4.1, eslint-visitor-keys@npm:^3.4.3": version: 3.4.3 resolution: "eslint-visitor-keys@npm:3.4.3" @@ -3574,7 +3634,7 @@ __metadata: languageName: node linkType: hard -"eslint@npm:^8.40.0, eslint@npm:^8.57.0": +"eslint@npm:^8.40.0": version: 8.57.0 resolution: "eslint@npm:8.57.0" dependencies: @@ -3622,7 +3682,56 @@ __metadata: languageName: node linkType: hard -"espree@npm:^10.1.0": +"eslint@npm:^9.9.0": + version: 9.9.0 + resolution: "eslint@npm:9.9.0" + dependencies: + "@eslint-community/eslint-utils": "npm:^4.2.0" + "@eslint-community/regexpp": "npm:^4.11.0" + "@eslint/config-array": "npm:^0.17.1" + "@eslint/eslintrc": "npm:^3.1.0" + "@eslint/js": "npm:9.9.0" + "@humanwhocodes/module-importer": "npm:^1.0.1" + "@humanwhocodes/retry": "npm:^0.3.0" + "@nodelib/fs.walk": "npm:^1.2.8" + ajv: "npm:^6.12.4" + chalk: "npm:^4.0.0" + cross-spawn: "npm:^7.0.2" + debug: "npm:^4.3.2" + escape-string-regexp: "npm:^4.0.0" + eslint-scope: "npm:^8.0.2" + eslint-visitor-keys: "npm:^4.0.0" + espree: "npm:^10.1.0" + esquery: "npm:^1.5.0" + esutils: "npm:^2.0.2" + fast-deep-equal: "npm:^3.1.3" + file-entry-cache: "npm:^8.0.0" + find-up: "npm:^5.0.0" + glob-parent: "npm:^6.0.2" + ignore: "npm:^5.2.0" + imurmurhash: "npm:^0.1.4" + is-glob: "npm:^4.0.0" + is-path-inside: "npm:^3.0.3" + json-stable-stringify-without-jsonify: "npm:^1.0.1" + levn: "npm:^0.4.1" + lodash.merge: "npm:^4.6.2" + minimatch: "npm:^3.1.2" + natural-compare: "npm:^1.4.0" + optionator: "npm:^0.9.3" + strip-ansi: "npm:^6.0.1" + text-table: "npm:^0.2.0" + peerDependencies: + jiti: "*" + peerDependenciesMeta: + jiti: + optional: true + bin: + eslint: bin/eslint.js + checksum: 10/88616421c9cb873d8f116d1ef6aa665cc898d35361351739c8041f11c30fe004bcfa641a2b6074655393eac7e7e5f9a661675dd1c01a24cf1e65cc6b556e06b3 + languageName: node + linkType: hard + +"espree@npm:^10.0.1, espree@npm:^10.1.0": version: 10.1.0 resolution: "espree@npm:10.1.0" dependencies: @@ -3654,7 +3763,7 @@ __metadata: languageName: node linkType: hard -"esquery@npm:^1.4.2, esquery@npm:^1.6.0": +"esquery@npm:^1.4.2, esquery@npm:^1.5.0, esquery@npm:^1.6.0": version: 1.6.0 resolution: "esquery@npm:1.6.0" dependencies: @@ -3790,6 +3899,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: "npm:^4.0.0" + checksum: 10/afe55c4de4e0d226a23c1eae62a7219aafb390859122608a89fa4df6addf55c7fd3f1a2da6f5b41e7cdff496e4cf28bbd215d53eab5c817afa96d2b40c81bfb0 + languageName: node + linkType: hard + "file-entry-cache@npm:^9.0.0": version: 9.0.0 resolution: "file-entry-cache@npm:9.0.0" @@ -3847,6 +3965,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: "npm:^3.2.9" + keyv: "npm:^4.5.4" + checksum: 10/58ce851d9045fffc7871ce2bd718bc485ad7e777bf748c054904b87c351ff1080c2c11da00788d78738bfb51b71e4d5ea12d13b98eb36e3358851ffe495b62dc + languageName: node + linkType: hard + "flat-cache@npm:^5.0.0": version: 5.0.0 resolution: "flat-cache@npm:5.0.0" @@ -4081,6 +4209,13 @@ __metadata: languageName: node linkType: hard +"globals@npm:^14.0.0": + version: 14.0.0 + resolution: "globals@npm:14.0.0" + checksum: 10/03939c8af95c6df5014b137cac83aa909090c3a3985caef06ee9a5a669790877af8698ab38007e4c0186873adc14c0b13764acc754b16a754c216cc56aa5f021 + languageName: node + linkType: hard + "globals@npm:^15.8.0": version: 15.9.0 resolution: "globals@npm:15.9.0" From 1b55a61cd058574b5c8b70770bed425782011f9c Mon Sep 17 00:00:00 2001 From: kurone-kito Date: Thu, 15 Aug 2024 01:11:25 +0900 Subject: [PATCH 07/10] feat(eslint,root): added the utils function to the eslint config --- packages/eslint-config-base/package.json | 4 +++ packages/eslint-config-base/src/utils.mts | 13 ++++++++++ packages/eslint-config-react/package.json | 4 +++ packages/eslint-config-react/src/utils.mts | 13 ++++++++++ yarn.lock | 30 ++++++++++++++++++++-- 5 files changed, 62 insertions(+), 2 deletions(-) create mode 100644 packages/eslint-config-base/src/utils.mts create mode 100644 packages/eslint-config-react/src/utils.mts diff --git a/packages/eslint-config-base/package.json b/packages/eslint-config-base/package.json index 67b05a0..bbba1d7 100644 --- a/packages/eslint-config-base/package.json +++ b/packages/eslint-config-base/package.json @@ -41,6 +41,8 @@ }, "dependencies": { "@eslint/compat": "^1.1.1", + "@eslint/eslintrc": "^3.1.0", + "@eslint/js": "^9.9.0", "eslint": "^9.9.0", "eslint-plugin-yaml": "^1.0.3" }, @@ -48,6 +50,8 @@ "@cspell/eslint-plugin": "^8.13.1", "@kurone-kito/typescript-config": "workspace:^", "@types/eslint": "^9.6.0", + "@types/eslint__eslintrc": "^2.1.2", + "@types/eslint__js": "^8.42.3", "@types/node": "^22.2.0", "@typescript-eslint/eslint-plugin": "^8.0.0", "@typescript-eslint/parser": "^8.0.0", diff --git a/packages/eslint-config-base/src/utils.mts b/packages/eslint-config-base/src/utils.mts new file mode 100644 index 0000000..5b4d1cb --- /dev/null +++ b/packages/eslint-config-base/src/utils.mts @@ -0,0 +1,13 @@ +import { dirname } from 'node:path'; +import { fileURLToPath } from 'node:url'; +import { FlatCompat } from '@eslint/eslintrc'; +import eslint from '@eslint/js'; + +/** The directory of the current file. */ +export const __dirname = dirname(fileURLToPath(import.meta.url)); + +/** The compatibility layer for ESLint configuration. */ +export const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: eslint.configs.recommended, +}); diff --git a/packages/eslint-config-react/package.json b/packages/eslint-config-react/package.json index ebba069..54b22d4 100644 --- a/packages/eslint-config-react/package.json +++ b/packages/eslint-config-react/package.json @@ -40,12 +40,16 @@ "start": "tsc --watch" }, "dependencies": { + "@eslint/eslintrc": "^3.1.0", + "@eslint/js": "^9.9.0", "@kurone-kito/eslint-config-base": "workspace:^" }, "devDependencies": { "@cspell/eslint-plugin": "^8.13.1", "@kurone-kito/typescript-config": "workspace:^", "@types/eslint": "^9.6.0", + "@types/eslint__eslintrc": "^2.1.2", + "@types/eslint__js": "^8.42.3", "@types/node": "^22.2.0", "@typescript-eslint/eslint-plugin": "^8.0.0", "@typescript-eslint/parser": "^8.0.0", diff --git a/packages/eslint-config-react/src/utils.mts b/packages/eslint-config-react/src/utils.mts new file mode 100644 index 0000000..5b4d1cb --- /dev/null +++ b/packages/eslint-config-react/src/utils.mts @@ -0,0 +1,13 @@ +import { dirname } from 'node:path'; +import { fileURLToPath } from 'node:url'; +import { FlatCompat } from '@eslint/eslintrc'; +import eslint from '@eslint/js'; + +/** The directory of the current file. */ +export const __dirname = dirname(fileURLToPath(import.meta.url)); + +/** The compatibility layer for ESLint configuration. */ +export const compat = new FlatCompat({ + baseDirectory: __dirname, + recommendedConfig: eslint.configs.recommended, +}); diff --git a/yarn.lock b/yarn.lock index 6e921a9..1edcac3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -850,7 +850,7 @@ __metadata: languageName: node linkType: hard -"@eslint/js@npm:9.9.0": +"@eslint/js@npm:9.9.0, @eslint/js@npm:^9.9.0": version: 9.9.0 resolution: "@eslint/js@npm:9.9.0" checksum: 10/9d6e94d0334aecaa7e5c78e654297d9b11679f56c8ec1b64db122cbecf64b5a04138617e901d0c79727d03abce8a898cce4288259435bde78460ebdab202998f @@ -943,8 +943,12 @@ __metadata: dependencies: "@cspell/eslint-plugin": "npm:^8.13.1" "@eslint/compat": "npm:^1.1.1" + "@eslint/eslintrc": "npm:^3.1.0" + "@eslint/js": "npm:^9.9.0" "@kurone-kito/typescript-config": "workspace:^" "@types/eslint": "npm:^9.6.0" + "@types/eslint__eslintrc": "npm:^2.1.2" + "@types/eslint__js": "npm:^8.42.3" "@types/node": "npm:^22.2.0" "@typescript-eslint/eslint-plugin": "npm:^8.0.0" "@typescript-eslint/parser": "npm:^8.0.0" @@ -1033,9 +1037,13 @@ __metadata: resolution: "@kurone-kito/eslint-config-react@workspace:packages/eslint-config-react" dependencies: "@cspell/eslint-plugin": "npm:^8.13.1" + "@eslint/eslintrc": "npm:^3.1.0" + "@eslint/js": "npm:^9.9.0" "@kurone-kito/eslint-config-base": "workspace:^" "@kurone-kito/typescript-config": "workspace:^" "@types/eslint": "npm:^9.6.0" + "@types/eslint__eslintrc": "npm:^2.1.2" + "@types/eslint__js": "npm:^8.42.3" "@types/node": "npm:^22.2.0" "@typescript-eslint/eslint-plugin": "npm:^8.0.0" "@typescript-eslint/parser": "npm:^8.0.0" @@ -1392,7 +1400,7 @@ __metadata: languageName: node linkType: hard -"@types/eslint@npm:^9.6.0": +"@types/eslint@npm:*, @types/eslint@npm:^9.6.0": version: 9.6.0 resolution: "@types/eslint@npm:9.6.0" dependencies: @@ -1402,6 +1410,24 @@ __metadata: languageName: node linkType: hard +"@types/eslint__eslintrc@npm:^2.1.2": + version: 2.1.2 + resolution: "@types/eslint__eslintrc@npm:2.1.2" + dependencies: + "@types/eslint": "npm:*" + checksum: 10/3aa91058e0a37306a98ad28681e6662e66d93462b668a06a0e53ea8cd60d93bd5341e3cb8f57be70fafa747418cb7d4741d0c49d6996914ffe452e6c22097ee9 + 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": "npm:*" + checksum: 10/e31f19de642d35a664695d0cab873ce6de19b8a3506755835b91f8a49a8c41099dcace449df49f1a486de6fa6565d21ceb1fa33be6004fc7adef9226e5d256a1 + languageName: node + linkType: hard + "@types/estree@npm:*": version: 1.0.5 resolution: "@types/estree@npm:1.0.5" From 5888f9127d180da3d842ac3356b320bab36b3b34 Mon Sep 17 00:00:00 2001 From: kurone-kito Date: Thu, 15 Aug 2024 01:21:10 +0900 Subject: [PATCH 08/10] feat(root,ts): migrated the eslint flat config --- .yarnrc.yml | 3 + cspell.config.yml | 2 + package.json | 2 +- packages/eslint-config-base/README.md | 30 +- packages/eslint-config-base/package.json | 70 +- packages/eslint-config-base/src/airbnb.mts | 13 + packages/eslint-config-base/src/data.mts | 3 + packages/eslint-config-base/src/import.mts | 107 ++++ packages/eslint-config-base/src/index.mts | 31 +- packages/eslint-config-base/src/jsdoc.mts | 41 ++ packages/eslint-config-base/src/markdown.mts | 17 + packages/eslint-config-base/src/node.mts | 41 ++ packages/eslint-config-base/src/style.mts | 28 + packages/eslint-config-base/src/ts.mts | 47 ++ packages/eslint-config-react/README.md | 27 +- packages/eslint-config-react/package.json | 73 +-- packages/eslint-config-react/src/index.mts | 20 +- packages/eslint-config-react/src/react.mts | 48 ++ .../eslint-config-react/src/storybook.mts | 33 + packages/typescript-config/package.json | 4 +- yarn.lock | 596 +++++++++++++----- 21 files changed, 964 insertions(+), 272 deletions(-) create mode 100644 packages/eslint-config-base/src/airbnb.mts create mode 100644 packages/eslint-config-base/src/import.mts create mode 100644 packages/eslint-config-base/src/jsdoc.mts create mode 100644 packages/eslint-config-base/src/markdown.mts create mode 100644 packages/eslint-config-base/src/node.mts create mode 100644 packages/eslint-config-base/src/style.mts create mode 100644 packages/eslint-config-base/src/ts.mts create mode 100644 packages/eslint-config-react/src/react.mts create mode 100644 packages/eslint-config-react/src/storybook.mts diff --git a/.yarnrc.yml b/.yarnrc.yml index a46d337..f0f343b 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -33,5 +33,8 @@ packageExtensions: eslint-plugin-storybook@*: peerDependencies: typescript: ">=4.2.0" + typescript-eslint@*: + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 pnpEnableEsmLoader: true diff --git a/cspell.config.yml b/cspell.config.yml index abf8fd5..f1fa540 100644 --- a/cspell.config.yml +++ b/cspell.config.yml @@ -7,3 +7,5 @@ import: - '@kurone-kito/cspell-config' usePnP: true version: '0.2' +words: + - TSES diff --git a/package.json b/package.json index 9e5982c..addee13 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,7 @@ "@kurone-kito/prettier-config": "workspace:^", "@kurone-kito/typescript-config": "workspace:^", "@types/eslint": "^9.6.0", - "@typescript-eslint/parser": "^8.0.0", + "@typescript-eslint/parser": "^8.1.0", "@yarnpkg/sdks": "^3.2.0", "concurrently": "^8.2.2", "cspell": "^8.13.1", diff --git a/packages/eslint-config-base/README.md b/packages/eslint-config-base/README.md index be152dc..054d352 100644 --- a/packages/eslint-config-base/README.md +++ b/packages/eslint-config-base/README.md @@ -4,29 +4,39 @@ My ESLint configuration for general Node.js projects. ## Usage +### Use the flat config (recommended) + +First, install this package and its peer dependencies: + +```sh +npm install --save-dev @kurone-kito/eslint-config-base eslint typescript +``` + +Then, create a `eslint.config.mjs` file. +If exists, merge the following configuration into it: + +```js +export { default } from '@kurone-kito/eslint-config-base'; +``` + +### for legacy configuration (deprecated) + +⚠️ **DEPRECATED**: The legacy configuration is no longer maintained. + First, install this package and its peer dependencies: ```sh npm install --save-dev \ @kurone-kito/eslint-config-base \ @cspell/eslint-plugin \ - @typescript-eslint/eslint-plugin \ - @typescript-eslint/parser \ eslint \ eslint-config-airbnb-typescript \ - eslint-config-prettier \ - eslint-formatter-codeframe \ eslint-import-resolver-node \ eslint-import-resolver-typescript \ eslint-plugin-editorconfig \ eslint-plugin-import \ - eslint-plugin-jsdoc \ - eslint-plugin-json \ - eslint-plugin-markdown \ eslint-plugin-markdownlint \ - eslint-plugin-n \ - eslint-plugin-oxlint \ - eslint-plugin-yaml + eslint-plugin-n ``` Then, create a `.eslintrc.yml` file. diff --git a/packages/eslint-config-base/package.json b/packages/eslint-config-base/package.json index bbba1d7..c44d1ae 100644 --- a/packages/eslint-config-base/package.json +++ b/packages/eslint-config-base/package.json @@ -40,59 +40,63 @@ "start": "tsc --watch" }, "dependencies": { + "@cspell/eslint-plugin": "^8.13.3", "@eslint/compat": "^1.1.1", "@eslint/eslintrc": "^3.1.0", "@eslint/js": "^9.9.0", - "eslint": "^9.9.0", - "eslint-plugin-yaml": "^1.0.3" + "@typescript-eslint/eslint-plugin": "^8.1.0", + "@typescript-eslint/parser": "^8.1.0", + "eslint-config-airbnb-base": "^15.0.0", + "eslint-config-airbnb-typescript": "^18.0.0", + "eslint-config-prettier": "^9.1.0", + "eslint-import-resolver-node": "^0.3.9", + "eslint-import-resolver-typescript": "^3.6.1", + "eslint-plugin-editorconfig": "^4.0.3", + "eslint-plugin-import": "^2.29.1", + "eslint-plugin-jsdoc": "^50.2.2", + "eslint-plugin-json": "^4.0.1", + "eslint-plugin-markdown": "^5.1.0", + "eslint-plugin-markdownlint": "^0.6.0", + "eslint-plugin-n": "^17.10.2", + "eslint-plugin-oxlint": "^0.7.2", + "eslint-plugin-yaml": "^1.0.3", + "globals": "^15.9.0", + "typescript-eslint": "^8.1.0" }, "devDependencies": { - "@cspell/eslint-plugin": "^8.13.1", "@kurone-kito/typescript-config": "workspace:^", "@types/eslint": "^9.6.0", + "@types/eslint-config-prettier": "^6.11.3", + "@types/eslint-plugin-markdown": "^2.0.2", "@types/eslint__eslintrc": "^2.1.2", "@types/eslint__js": "^8.42.3", "@types/node": "^22.2.0", - "@typescript-eslint/eslint-plugin": "^8.0.0", - "@typescript-eslint/parser": "^8.0.0", + "@typescript-eslint/utils": "^8.1.0", "concurrently": "^8.2.2", "cpy-cli": "^5.0.0", - "eslint-config-airbnb-typescript": "^18.0.0", - "eslint-config-prettier": "^9.1.0", + "eslint": "^9.9.0", "eslint-formatter-codeframe": "^7.32.1", - "eslint-import-resolver-node": "^0.3.9", - "eslint-import-resolver-typescript": "^3.6.1", - "eslint-plugin-editorconfig": "^4.0.3", - "eslint-plugin-import": "^2.29.1", - "eslint-plugin-jsdoc": "^48.11.0", - "eslint-plugin-json": "^4.0.0", - "eslint-plugin-markdown": "^5.1.0", - "eslint-plugin-markdownlint": "^0.6.0", - "eslint-plugin-n": "^17.10.1", - "eslint-plugin-oxlint": "^0.5.0", "js-yaml": "^4.1.0", - "prettier": "^3.3.3", "rimraf": "^5.0.10", "typescript": "~5.5.4" }, "peerDependencies": { - "@cspell/eslint-plugin": ">=6.x.x", - "@typescript-eslint/eslint-plugin": ">=8.0.x", - "@typescript-eslint/parser": ">=8.0.x", + "@cspell/eslint-plugin": ">=8.13.1", + "@typescript-eslint/eslint-plugin": ">=8.x.x", + "@typescript-eslint/parser": ">=8.x.x", "eslint": ">=9.x.x", - "eslint-config-airbnb-typescript": ">=17.x.x", - "eslint-config-prettier": ">=8.x.x", - "eslint-formatter-codeframe": ">=7.x.x", - "eslint-import-resolver-node": ">=0.3.x", - "eslint-import-resolver-typescript": ">=3.x.x", - "eslint-plugin-editorconfig": ">=4.x.x", - "eslint-plugin-import": ">=2.27.x", - "eslint-plugin-jsdoc": ">=46.x.x", + "eslint-config-airbnb-typescript": ">=18.x.x", + "eslint-config-prettier": ">=9.1.x", + "eslint-import-resolver-node": ">=0.3.9", + "eslint-import-resolver-typescript": ">=3.6.1", + "eslint-plugin-editorconfig": ">=4.0.3", + "eslint-plugin-import": ">=2.29.1", + "eslint-plugin-jsdoc": ">=48.11.x", "eslint-plugin-json": ">=4.x.x", - "eslint-plugin-markdown": ">=3.x.x", - "eslint-plugin-markdownlint": ">=0.5.x", - "eslint-plugin-n": ">=17.x.x", - "eslint-plugin-oxlint": ">=0.2.x", + "eslint-plugin-markdown": ">=5.1.x", + "eslint-plugin-markdownlint": ">=0.6.x", + "eslint-plugin-n": ">=17.10.1", + "eslint-plugin-oxlint": ">=0.5.x", "eslint-plugin-yaml": ">=1.0.3" }, "peerDependenciesMeta": { diff --git a/packages/eslint-config-base/src/airbnb.mts b/packages/eslint-config-base/src/airbnb.mts new file mode 100644 index 0000000..9d6b786 --- /dev/null +++ b/packages/eslint-config-base/src/airbnb.mts @@ -0,0 +1,13 @@ +import type { Linter } from 'eslint'; +import { compat } from './utils.mjs'; + +/** The configuration for ESLint to use the Airbnb style guide. */ +export const airbnbConfig: readonly Linter.Config[] = [ + ...compat.extends('airbnb-base'), + // ...compat.extends('airbnb-typescript/base'), + { + languageOptions: { + parserOptions: { project: true, tsconfigRootDir: process.cwd() }, + }, + }, +]; diff --git a/packages/eslint-config-base/src/data.mts b/packages/eslint-config-base/src/data.mts index b8e08eb..cd646b0 100644 --- a/packages/eslint-config-base/src/data.mts +++ b/packages/eslint-config-base/src/data.mts @@ -1,7 +1,10 @@ import type { Linter } from 'eslint'; +// @ts-ignore +import json from 'eslint-plugin-json'; import pluginYaml from 'eslint-plugin-yaml'; /** The ESLint configuration for data language files. */ export const dataConfig: readonly Linter.Config[] = [ + { files: ['**/*.json'], ...json.configs['recommended'] }, (pluginYaml as any).configs.recommended, ]; diff --git a/packages/eslint-config-base/src/import.mts b/packages/eslint-config-base/src/import.mts new file mode 100644 index 0000000..b9a94b4 --- /dev/null +++ b/packages/eslint-config-base/src/import.mts @@ -0,0 +1,107 @@ +import type { Linter } from 'eslint'; +import { compat } from './utils.mjs'; + +/** Additional configuration for the `import` plugin. */ +export const additionalImportConfig: readonly Linter.Config[] = [ + { + files: ['*.?(c)js?(x)'], + rules: { + /** + * Allow `require` syntax only for JavaScript. By default, it is + * completely prohibited. + * + * There are many situations where pure JavaScript is used outside + * the scope of transpiling, such as in various configuration files, + * making the `import` syntax challenging. + */ + '@typescript-eslint/no-var-requires': 'off', + }, + }, + { + files: ['*.?([cm])js?(x)'], + rules: { + /** + * Allow type inference of return values of exported functions, etc., + * only for JavaScript. By default, it is allowed with a warning. + * + * There are many situations where CommonJS is used outside the scope + * of transpiling, such as in various configuration files, + * where it is challenging to make type definitions mandatory. + */ + '@typescript-eslint/explicit-module-boundary-types': 'off', + }, + }, + { + rules: { + /** + * Forces import without extensions for internal modules only. + * The default is full enforcement. + * + * Because it interferes with imports such as `lodash-es` + * in the ES modules environment. + */ + 'import/extensions': [ + 'error', + 'never', + { js: 'ignorePackages', json: 'ignorePackages' }, + ], + /** + * Prohibit dependencies on `devDependencies`, except for specific + * files. By default, this is a total ban. + * + * There is no need for strict separation of dependent packages since + * they are internally tree shaken by bundlers. Still, some packages + * are separated into `devDependencies` to make it easier to organize. + */ + 'import/no-extraneous-dependencies': [ + 'error', + { + devDependencies: [ + '**/*.config.?([cm])[jt]s?(x)', + '**/*.spec.?([cm])[jt]s?(x)', + '**/*.test.?([cm])[jt]s?(x)', + ], + }, + ], + /** + * Allow with a warning that the arbitrary reordering in the + * import syntax. The default is to allow it unconditionally. + * + * in order to deal with the snowballing problem of the import part. + */ + 'import/order': [ + 'warn', + { + alphabetize: { caseInsensitive: true, order: 'asc' }, + groups: [ + 'builtin', + 'external', + 'internal', + 'parent', + 'sibling', + 'index', + 'object', + ], + 'newlines-between': 'never', + }, + ], + /** + * Allow with a warning that the arbitrary reordering in the + * import syntax. The default is to allow it unconditionally. + * + * To deal with the snowballing problem of the import part. + */ + 'sort-imports': [ + 'warn', + { ignoreCase: true, ignoreDeclarationSort: true }, + ], + }, + }, +]; + +/** The ESLint configuration for the `import` plugin. */ +export const importConfig: readonly Linter.Config[] = [ + ...compat.extends('plugin:import/recommended'), + ...compat.extends('plugin:import/typescript'), + ...additionalImportConfig, +]; diff --git a/packages/eslint-config-base/src/index.mts b/packages/eslint-config-base/src/index.mts index bcf7672..6419909 100644 --- a/packages/eslint-config-base/src/index.mts +++ b/packages/eslint-config-base/src/index.mts @@ -1,8 +1,29 @@ -import type { Linter } from 'eslint'; +import tsEslint from 'typescript-eslint'; +import { airbnbConfig } from './airbnb.mjs'; import { dataConfig } from './data.mjs'; import { ignoreConfig } from './ignore.mjs'; +import { importConfig, additionalImportConfig } from './import.mjs'; +import { jsdocConfig, additionalJsdocConfig } from './jsdoc.mjs'; +import { markdownConfig } from './markdown.mjs'; +import { additionalNodeConfig, nodeConfig } from './node.mjs'; +import { additionalStyleConfig, styleConfig } from './style.mjs'; +import { additionalTsConfig, tsConfig } from './ts.mjs'; -/** ESLint configuration for generic TypeScript projects. */ -const config: readonly Linter.Config[] = [...ignoreConfig, ...dataConfig]; - -export default config; +export default tsEslint.config( + ...([ + ...ignoreConfig, + ...markdownConfig, + ...dataConfig, + ...styleConfig, + ...jsdocConfig, + ...importConfig, + ...nodeConfig, + ...tsConfig, + ...airbnbConfig, + ...additionalStyleConfig, + ...additionalJsdocConfig, + ...additionalImportConfig, + ...additionalNodeConfig, + ...additionalTsConfig, + ] as tsEslint.ConfigWithExtends[]), +); diff --git a/packages/eslint-config-base/src/jsdoc.mts b/packages/eslint-config-base/src/jsdoc.mts new file mode 100644 index 0000000..ce39908 --- /dev/null +++ b/packages/eslint-config-base/src/jsdoc.mts @@ -0,0 +1,41 @@ +import type { Linter } from 'eslint'; +import jsdoc from 'eslint-plugin-jsdoc'; + +/** Additional ESLint configurations for JSDoc comments. */ +export const additionalJsdocConfig: readonly Linter.Config[] = [ + { + rules: { + /** + * Allow unconditional type specification of the arguments in JSDoc. + * The default is a blanket ban. + * + * Because in TypeScript projects, it can be inferred from the type + * definitions in the code. + * + * TODO: + * If there are any inconveniences in document generation, consider + * removing this rule. + */ + 'jsdoc/require-param-type': 'off', + + /** + * Allow unconditional type specification of the return value in JSDoc. + * The default is a blanket ban. + * + * Because in TypeScript projects, it can be inferred from the type + * definitions in the code. + * + * TODO: + * If there are any inconveniences in document generation, consider + * removing this rule. + */ + 'jsdoc/require-returns-type': 'off', + }, + }, +]; + +/** The ESLint configurations for JSDoc comments. */ +export const jsdocConfig: readonly Linter.Config[] = [ + jsdoc.configs['flat/recommended'], + ...additionalJsdocConfig, +]; diff --git a/packages/eslint-config-base/src/markdown.mts b/packages/eslint-config-base/src/markdown.mts new file mode 100644 index 0000000..05b3b93 --- /dev/null +++ b/packages/eslint-config-base/src/markdown.mts @@ -0,0 +1,17 @@ +import type { Linter } from 'eslint'; +import markdown from 'eslint-plugin-markdown'; +import { compat } from './utils.mjs'; + +/** The ESLint configuration for Markdown files. */ +export const markdownConfig: readonly Linter.Config[] = [ + ...(markdown.configs.recommended as Linter.Config[]), + ...compat.config({ + overrides: [ + { + extends: ['plugin:markdownlint/recommended'], + files: ['*.md'], + parser: 'eslint-plugin-markdownlint/parser', + }, + ], + }), +]; diff --git a/packages/eslint-config-base/src/node.mts b/packages/eslint-config-base/src/node.mts new file mode 100644 index 0000000..b9bf9c9 --- /dev/null +++ b/packages/eslint-config-base/src/node.mts @@ -0,0 +1,41 @@ +import type { Linter } from 'eslint'; +import nodePlugin from 'eslint-plugin-n'; + +/** Additional ESLint configurations for Node.js code. */ +export const additionalNodeConfig: readonly Linter.Config[] = [ + { + rules: { + /** + * Unconditional permission to import modules that do not exist. + * The default is total prohibition. + * + * A temporary measure to support the ES module resolution in + * TypeScript. + * + * @see {@link https://github.com/mysticatea/eslint-plugin-node/issues/248#issuecomment-1052550467} + */ + 'n/no-missing-import': 'off', + }, + settings: { 'import/resolver': { typescript: { alwaysTryTypes: true } } }, + }, + { + rules: { + /** + * Allows the use of unsupported Node.js notation. + * Unconditional prohibition by default. + * + * All Node.js versions prohibit dynamic imports, and the rule is + * already obsoleted. + * + * TODO: Remove this rule in the future. + */ + 'n/no-unsupported-features/es-syntax': 'off', + }, + }, +]; + +/** The ESLint configuration for Node.js code. */ +export const nodeConfig: readonly Linter.Config[] = [ + nodePlugin.configs['flat/recommended-script'], + ...additionalNodeConfig, +]; diff --git a/packages/eslint-config-base/src/style.mts b/packages/eslint-config-base/src/style.mts new file mode 100644 index 0000000..96a1be9 --- /dev/null +++ b/packages/eslint-config-base/src/style.mts @@ -0,0 +1,28 @@ +import cspell from '@cspell/eslint-plugin/recommended'; +import type { Linter } from 'eslint'; +import prettier from 'eslint-config-prettier'; +import { compat } from './utils.mjs'; + +/** Additional configuration for the style language files. */ +export const additionalStyleConfig: readonly Linter.Config[] = [ + ...compat.extends('plugin:editorconfig/noconflict'), + prettier, + { + rules: { + /** + * Permit explicit statements in Arrow functions, even when the block + * is optional, with a warning. The default is unconditional allow. + * + * The intent is to reduce the amount of code and keep it simple, + * thereby improving readability. + */ + 'arrow-body-style': 'warn', + }, + }, +]; + +/** The ESLint configuration for style language files. */ +export const styleConfig: readonly Linter.Config[] = [ + { plugins: cspell.plugins ?? {}, rules: cspell.rules ?? {} }, + ...additionalStyleConfig, +]; diff --git a/packages/eslint-config-base/src/ts.mts b/packages/eslint-config-base/src/ts.mts new file mode 100644 index 0000000..6701d64 --- /dev/null +++ b/packages/eslint-config-base/src/ts.mts @@ -0,0 +1,47 @@ +import eslint from '@eslint/js'; +import type { Linter } from 'eslint'; +import oxlint from 'eslint-plugin-oxlint'; +import globals from 'globals'; +import type { ConfigWithExtends } from 'typescript-eslint'; +import tsesLint from 'typescript-eslint'; + +/** Additional ESLint configurations for TypeScript. */ +export const additionalTsConfig: readonly Linter.Config[] = [ + { + languageOptions: { + globals: { ...globals.browser, ...globals.es2025, ...globals.node }, + parserOptions: { ecmaVersion: 'latest', projectService: true }, + }, + linterOptions: { reportUnusedDisableDirectives: 'warn' }, + rules: { + /** + * With a warning, allow use standard import syntax to import for + * type-only. The default is to enable it unconditionally. + * + * Tree shaking at build time needs to work correctly to reduce + * bundle size, and active use of the type import syntax can + * contribute significantly to this. + */ + '@typescript-eslint/consistent-type-imports': 'warn', + /** + * With a warning, allow type inference for return values of functions + * and methods referenced from other files, including public methods + * in exported functions and classes. Default is unconditional allow. + * + * Allowing this may cause TypeScript to chain type inference from the + * wrong type if it does not read the type definition correctly, + * resulting in type errors in the wrong places. + */ + '@typescript-eslint/explicit-module-boundary-types': 'warn', + }, + }, +]; + +/** The ESLint configurations for TypeScript. */ +export const tsConfig: readonly ConfigWithExtends[] = [ + eslint.configs.recommended, + ...tsesLint.configs.recommended, + ...tsesLint.configs.stylistic, + oxlint.configs['flat/recommended'] as Pick, + ...additionalTsConfig, +]; diff --git a/packages/eslint-config-react/README.md b/packages/eslint-config-react/README.md index 675994e..8722c05 100644 --- a/packages/eslint-config-react/README.md +++ b/packages/eslint-config-react/README.md @@ -4,6 +4,25 @@ My ESLint configuration for React projects. ## Usage +### Use the flat config (recommended) + +First, install this package and its peer dependencies: + +```sh +npm install --save-dev @kurone-kito/eslint-config-react eslint +``` + +Then, create a `eslint.config.mjs` file. +If exists, merge the following configuration into it: + +```js +export { default } from '@kurone-kito/eslint-config-react'; +``` + +### for legacy configuration (deprecated) + +⚠️ **DEPRECATED**: The legacy configuration is no longer maintained. + First, install this package and its peer dependencies: ```sh @@ -14,23 +33,17 @@ npm install --save-dev \ @typescript-eslint/parser \ eslint \ eslint-config-airbnb-typescript \ - eslint-config-prettier \ eslint-formatter-codeframe \ eslint-import-resolver-node \ eslint-import-resolver-typescript \ eslint-plugin-editorconfig \ eslint-plugin-import \ - eslint-plugin-jsdoc \ - eslint-plugin-json \ eslint-plugin-jsx-a11y \ - eslint-plugin-markdown \ eslint-plugin-markdownlint \ eslint-plugin-n \ - eslint-plugin-oxlint \ eslint-plugin-react \ eslint-plugin-react-hooks \ - eslint-plugin-storybook \ - eslint-plugin-yaml + eslint-plugin-storybook ``` Then, create a `.eslintrc.yml` file. diff --git a/packages/eslint-config-react/package.json b/packages/eslint-config-react/package.json index 54b22d4..3a3b296 100644 --- a/packages/eslint-config-react/package.json +++ b/packages/eslint-config-react/package.json @@ -40,66 +40,57 @@ "start": "tsc --watch" }, "dependencies": { + "@cspell/eslint-plugin": "^8.13.3", "@eslint/eslintrc": "^3.1.0", "@eslint/js": "^9.9.0", - "@kurone-kito/eslint-config-base": "workspace:^" + "@kurone-kito/eslint-config-base": "workspace:^", + "@typescript-eslint/eslint-plugin": "^8.1.0", + "@typescript-eslint/parser": "^8.1.0", + "eslint-config-airbnb": "^19.0.4", + "eslint-config-airbnb-typescript": "^18.0.0", + "eslint-plugin-import": "^2.29.1", + "eslint-plugin-jsx-a11y": "^6.9.0", + "eslint-plugin-react": "^7.35.0", + "eslint-plugin-react-hooks": "^4.6.2", + "eslint-plugin-storybook": "^0.8.0", + "typescript-eslint": "^8.1.0" }, "devDependencies": { - "@cspell/eslint-plugin": "^8.13.1", "@kurone-kito/typescript-config": "workspace:^", "@types/eslint": "^9.6.0", "@types/eslint__eslintrc": "^2.1.2", "@types/eslint__js": "^8.42.3", "@types/node": "^22.2.0", - "@typescript-eslint/eslint-plugin": "^8.0.0", - "@typescript-eslint/parser": "^8.0.0", + "@typescript-eslint/utils": "^8.1.0", "concurrently": "^8.2.2", "cpy-cli": "^5.0.0", - "eslint-config-airbnb-typescript": "^18.0.0", - "eslint-config-prettier": "^9.1.0", + "eslint": "^9.9.0", "eslint-formatter-codeframe": "^7.32.1", - "eslint-import-resolver-node": "^0.3.9", - "eslint-import-resolver-typescript": "^3.6.1", - "eslint-plugin-editorconfig": "^4.0.3", - "eslint-plugin-import": "^2.29.1", - "eslint-plugin-jsdoc": "^48.11.0", - "eslint-plugin-json": "^4.0.0", - "eslint-plugin-jsx-a11y": "^6.9.0", - "eslint-plugin-markdown": "^5.1.0", - "eslint-plugin-markdownlint": "^0.6.0", - "eslint-plugin-n": "^17.10.1", - "eslint-plugin-oxlint": "^0.5.0", - "eslint-plugin-react": "^7.35.0", - "eslint-plugin-react-hooks": "^4.6.2", - "eslint-plugin-storybook": "^0.8.0", - "eslint-plugin-yaml": "^1.0.3", "js-yaml": "^4.1.0", - "prettier": "^3.3.3", "rimraf": "^5.0.10", "typescript": "~5.5.4" }, "peerDependencies": { - "@cspell/eslint-plugin": ">=6.x.x", - "@typescript-eslint/eslint-plugin": ">=8.0.x", - "@typescript-eslint/parser": ">=8.0.x", + "@cspell/eslint-plugin": ">=8.13.1", + "@typescript-eslint/eslint-plugin": ">=8.x.x", + "@typescript-eslint/parser": ">=8.x.x", "eslint": ">=9.x.x", - "eslint-config-airbnb-typescript": ">=17.x.x", - "eslint-config-prettier": ">=8.x.x", - "eslint-formatter-codeframe": ">=7.x.x", - "eslint-import-resolver-node": ">=0.3.x", - "eslint-import-resolver-typescript": ">=3.x.x", - "eslint-plugin-editorconfig": ">=4.x.x", - "eslint-plugin-import": ">=2.27.x", - "eslint-plugin-jsdoc": ">=46.x.x", + "eslint-config-airbnb-typescript": ">=18.x.x", + "eslint-config-prettier": ">=9.1.x", + "eslint-import-resolver-node": ">=0.3.9", + "eslint-import-resolver-typescript": ">=3.6.1", + "eslint-plugin-editorconfig": ">=4.0.3", + "eslint-plugin-import": ">=2.29.1", + "eslint-plugin-jsdoc": ">=48.11.x", "eslint-plugin-json": ">=4.x.x", - "eslint-plugin-jsx-a11y": ">=6.x.x", - "eslint-plugin-markdown": ">=3.x.x", - "eslint-plugin-markdownlint": ">=0.5.x", - "eslint-plugin-n": ">=17.x.x", - "eslint-plugin-oxlint": ">=0.2.x", - "eslint-plugin-react": ">=7.2.x", - "eslint-plugin-react-hooks": ">=4.3.x", - "eslint-plugin-storybook": ">=0.6.x", + "eslint-plugin-jsx-a11y": ">=6.9.x", + "eslint-plugin-markdown": ">=5.1.x", + "eslint-plugin-markdownlint": ">=0.6.x", + "eslint-plugin-n": ">=17.10.1", + "eslint-plugin-oxlint": ">=0.5.x", + "eslint-plugin-react": ">=7.35.x", + "eslint-plugin-react-hooks": ">=4.6.2", + "eslint-plugin-storybook": ">=0.8.x", "eslint-plugin-yaml": ">=1.0.3" }, "peerDependenciesMeta": { diff --git a/packages/eslint-config-react/src/index.mts b/packages/eslint-config-react/src/index.mts index d281076..8bc7c75 100644 --- a/packages/eslint-config-react/src/index.mts +++ b/packages/eslint-config-react/src/index.mts @@ -1,7 +1,17 @@ import baseConfig from '@kurone-kito/eslint-config-base'; -import type { Linter } from 'eslint'; +import tsEslint from 'typescript-eslint'; +import { additionalReactConfig, reactConfig } from './react.mjs'; +import { storybookConfig } from './storybook.mjs'; +import { compat } from './utils.mjs'; -/** ESLint configuration for generic React projects. */ -const config: readonly Linter.Config[] = [...baseConfig]; - -export default config; +export default tsEslint.config( + ...([ + ...reactConfig, + ...compat.extends('airbnb'), + ...compat.extends('airbnb-typescript'), + ...baseConfig, + ...additionalReactConfig, + ...storybookConfig, + { languageOptions: { parserOptions: { ecmaFeatures: { jsx: true } } } }, + ] as tsEslint.ConfigWithExtends[]), +); diff --git a/packages/eslint-config-react/src/react.mts b/packages/eslint-config-react/src/react.mts new file mode 100644 index 0000000..675d494 --- /dev/null +++ b/packages/eslint-config-react/src/react.mts @@ -0,0 +1,48 @@ +import type { Linter } from 'eslint'; +import { compat } from './utils.mjs'; + +/** Additional configuration for ESLint to React */ +export const additionalReactConfig: readonly Linter.Config[] = [ + { + rules: { + /** + * Allows explicit notation of `true` in JSX notation with a warning. + * It's unconditionally permitted by default. + * + * Because `true` is optional, the intent is to improve readability + * by reducing the amount of code and keeping it simple. + */ + 'react/jsx-boolean-value': 'warn', + /** + * Allows explicit string value notation in JSX notation with a + * warning. The default is unconditional permission. + * + * String values can be described simply as constant attributes + * intended to reduce code and improve readability. + */ + 'react/jsx-curly-brace-presence': 'warn', + /** + * Starting with React 17, the `React` import in JSX/TSX is no longer + * required, and this rule is no longer necessary. + * + * The default is to force it in JSX/TSX. + * @see {@link https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html} + */ + 'react/react-in-jsx-scope': 'off', + /** + * Allows explicit notation of the absence of child elements in JSX + * notation with a warning. The default is unconditional permission. + * + * Self-contained tags are intended to reduce the amount of code, + * keep things more straightforward, and improve readability. + */ + 'react/self-closing-comp': 'warn', + }, + }, +]; + +/** Configuration for ESLint to React */ +export const reactConfig: readonly Linter.Config[] = [ + ...compat.extends('plugin:react-hooks/recommended'), + ...additionalReactConfig, +]; diff --git a/packages/eslint-config-react/src/storybook.mts b/packages/eslint-config-react/src/storybook.mts new file mode 100644 index 0000000..c37d243 --- /dev/null +++ b/packages/eslint-config-react/src/storybook.mts @@ -0,0 +1,33 @@ +import type { Linter } from 'eslint'; + +/** The configuration for ESLint to Storybook */ +export const storybookConfig: readonly Linter.Config[] = [ + { + files: ['**/*.stories.?([cm])[jt]s?(x)'], + rules: { + /** + * Unconditionally allow export to `default`. + * + * The default is unknown, but since Storybook component definitions + * are structurally dependent on export to `default`, this permission + * is explicitly stated to prevent influence by later configuration + * updates. + */ + 'import/no-anonymous-default-export': 'off', + /** + * Exporting code that depends `on devDependencies is` allowed only + * for specific packages on an exception basis, and it is prohibited + * by default. + * + * To organize dependencies, only packages that directly depend on + * the product code should be listed in the dependencies list, so + * Storybook component definitions not included in the product code + * are exceptionally allowed to rely on `devDependencies`. + */ + 'n/no-unpublished-import': [ + 'error', + { allow: ['@storybook/react', '@storybook/testing-library'] }, + ], + }, + }, +]; diff --git a/packages/typescript-config/package.json b/packages/typescript-config/package.json index 36725ed..18227f5 100644 --- a/packages/typescript-config/package.json +++ b/packages/typescript-config/package.json @@ -32,7 +32,7 @@ "prepack": "conc -m 1 \"yarn:clean\" \"yarn:build\"" }, "devDependencies": { - "@typescript-eslint/parser": "^8.0.0", + "@typescript-eslint/parser": "^8.1.0", "concurrently": "^8.2.2", "cpy-cli": "^5.0.0", "eslint": "^9.9.0", @@ -40,7 +40,7 @@ "typescript-eslint-language-service": "^5.0.5" }, "peerDependencies": { - "@typescript-eslint/parser": ">=6.x.x", + "@typescript-eslint/parser": ">=7.17.x", "typescript": ">=5.x.x", "typescript-eslint-language-service": ">=5.x.x" }, diff --git a/yarn.lock b/yarn.lock index 1edcac3..512f2a3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -313,6 +313,66 @@ __metadata: languageName: node linkType: hard +"@cspell/cspell-bundled-dicts@npm:8.13.3": + version: 8.13.3 + resolution: "@cspell/cspell-bundled-dicts@npm:8.13.3" + dependencies: + "@cspell/dict-ada": "npm:^4.0.2" + "@cspell/dict-aws": "npm:^4.0.3" + "@cspell/dict-bash": "npm:^4.1.3" + "@cspell/dict-companies": "npm:^3.1.4" + "@cspell/dict-cpp": "npm:^5.1.12" + "@cspell/dict-cryptocurrencies": "npm:^5.0.0" + "@cspell/dict-csharp": "npm:^4.0.2" + "@cspell/dict-css": "npm:^4.0.12" + "@cspell/dict-dart": "npm:^2.0.3" + "@cspell/dict-django": "npm:^4.1.0" + "@cspell/dict-docker": "npm:^1.1.7" + "@cspell/dict-dotnet": "npm:^5.0.2" + "@cspell/dict-elixir": "npm:^4.0.3" + "@cspell/dict-en-common-misspellings": "npm:^2.0.4" + "@cspell/dict-en-gb": "npm:1.1.33" + "@cspell/dict-en_us": "npm:^4.3.23" + "@cspell/dict-filetypes": "npm:^3.0.4" + "@cspell/dict-fonts": "npm:^4.0.0" + "@cspell/dict-fsharp": "npm:^1.0.1" + "@cspell/dict-fullstack": "npm:^3.2.0" + "@cspell/dict-gaming-terms": "npm:^1.0.5" + "@cspell/dict-git": "npm:^3.0.0" + "@cspell/dict-golang": "npm:^6.0.9" + "@cspell/dict-google": "npm:^1.0.1" + "@cspell/dict-haskell": "npm:^4.0.1" + "@cspell/dict-html": "npm:^4.0.5" + "@cspell/dict-html-symbol-entities": "npm:^4.0.0" + "@cspell/dict-java": "npm:^5.0.7" + "@cspell/dict-julia": "npm:^1.0.1" + "@cspell/dict-k8s": "npm:^1.0.6" + "@cspell/dict-latex": "npm:^4.0.0" + "@cspell/dict-lorem-ipsum": "npm:^4.0.0" + "@cspell/dict-lua": "npm:^4.0.3" + "@cspell/dict-makefile": "npm:^1.0.0" + "@cspell/dict-monkeyc": "npm:^1.0.6" + "@cspell/dict-node": "npm:^5.0.1" + "@cspell/dict-npm": "npm:^5.0.18" + "@cspell/dict-php": "npm:^4.0.8" + "@cspell/dict-powershell": "npm:^5.0.5" + "@cspell/dict-public-licenses": "npm:^2.0.7" + "@cspell/dict-python": "npm:^4.2.4" + "@cspell/dict-r": "npm:^2.0.1" + "@cspell/dict-ruby": "npm:^5.0.2" + "@cspell/dict-rust": "npm:^4.0.5" + "@cspell/dict-scala": "npm:^5.0.3" + "@cspell/dict-software-terms": "npm:^4.0.6" + "@cspell/dict-sql": "npm:^2.1.5" + "@cspell/dict-svelte": "npm:^1.0.2" + "@cspell/dict-swift": "npm:^2.0.1" + "@cspell/dict-terraform": "npm:^1.0.0" + "@cspell/dict-typescript": "npm:^3.1.6" + "@cspell/dict-vue": "npm:^3.0.0" + checksum: 10/a89aea057ef25086a0d219bd97143000f74144f94a67ad325d322e19fd43559a0f330b4b931989ec149140e2e0ee177a1c3d83cab9037f166a3973648f406df5 + languageName: node + linkType: hard + "@cspell/cspell-json-reporter@npm:8.13.1": version: 8.13.1 resolution: "@cspell/cspell-json-reporter@npm:8.13.1" @@ -329,6 +389,13 @@ __metadata: languageName: node linkType: hard +"@cspell/cspell-pipe@npm:8.13.3": + version: 8.13.3 + resolution: "@cspell/cspell-pipe@npm:8.13.3" + checksum: 10/2f0be6df610c860f707fd24f06c71f5bbc45f13b434af4f62d006edb93b9790b310c6a61b92a7e4c82b89e1755a47b442ed27df6d9a04325a7bec1caf8957c3d + languageName: node + linkType: hard + "@cspell/cspell-resolver@npm:8.13.1": version: 8.13.1 resolution: "@cspell/cspell-resolver@npm:8.13.1" @@ -338,6 +405,15 @@ __metadata: languageName: node linkType: hard +"@cspell/cspell-resolver@npm:8.13.3": + version: 8.13.3 + resolution: "@cspell/cspell-resolver@npm:8.13.3" + dependencies: + global-directory: "npm:^4.0.1" + checksum: 10/e91e39e6f94ee1ec7ee37d073bb0acab94c2bbb118be10b6fbf7bb3333e6784d162b3b7275acc1da1483184341e7bcdebfbda7eb1d88018feb200acf781d66b2 + languageName: node + linkType: hard + "@cspell/cspell-service-bus@npm:8.13.1": version: 8.13.1 resolution: "@cspell/cspell-service-bus@npm:8.13.1" @@ -345,13 +421,27 @@ __metadata: languageName: node linkType: hard -"@cspell/cspell-types@npm:8.13.1, @cspell/cspell-types@npm:^8.13.1": +"@cspell/cspell-service-bus@npm:8.13.3": + version: 8.13.3 + resolution: "@cspell/cspell-service-bus@npm:8.13.3" + checksum: 10/4a769e8e766b064a5c1f146f3e5e450404ab5774dde69f6bfe6b0dc240925635561a64283a0f6588ded298923e550c56a1da70528d869c0b45a9d22980712027 + languageName: node + linkType: hard + +"@cspell/cspell-types@npm:8.13.1": version: 8.13.1 resolution: "@cspell/cspell-types@npm:8.13.1" checksum: 10/245ac2358f99b9c02efac0eec7b2010055e0230736baa86dc612820edfa9bcc8034f72cbeb8bba2914d382e63a198ed679dbf1000472edb400536263f739c08c languageName: node linkType: hard +"@cspell/cspell-types@npm:8.13.3, @cspell/cspell-types@npm:^8.13.1": + version: 8.13.3 + resolution: "@cspell/cspell-types@npm:8.13.3" + checksum: 10/5529908fb3b0d0f87dd591fb107a8df58c1c55e81ccd976771b9d20a117c052698b89e7328c70ecae3123ea761ad6837b43e431b88c024b078cd4c672aee79b6 + languageName: node + linkType: hard + "@cspell/dict-ada@npm:^4.0.2": version: 4.0.2 resolution: "@cspell/dict-ada@npm:4.0.2" @@ -373,7 +463,7 @@ __metadata: languageName: node linkType: hard -"@cspell/dict-companies@npm:^3.1.3": +"@cspell/dict-companies@npm:^3.1.3, @cspell/dict-companies@npm:^3.1.4": version: 3.1.4 resolution: "@cspell/dict-companies@npm:3.1.4" checksum: 10/2668b80fc7e6aa9efa60f50bb39525caecd06b7f23685b60567f1ca0a1e47cebefcb5c2b877db24efda526a19c85c06af47f57368c399c948b20c5d5ed9c40e2 @@ -450,10 +540,10 @@ __metadata: languageName: node linkType: hard -"@cspell/dict-en-common-misspellings@npm:^2.0.3": - version: 2.0.3 - resolution: "@cspell/dict-en-common-misspellings@npm:2.0.3" - checksum: 10/8ea5f6843635089a82f135ca4302b8ed0c208254cda83b56fa72a72a30ee983452a1abaf003f5ccf76a8f1faf9596da91dfe4441f2bbd00145b305a2e501311e +"@cspell/dict-en-common-misspellings@npm:^2.0.3, @cspell/dict-en-common-misspellings@npm:^2.0.4": + version: 2.0.4 + resolution: "@cspell/dict-en-common-misspellings@npm:2.0.4" + checksum: 10/06319ddc791f4ac3d466e0810f013264cbffa97daa87675878ec70dc6ce1fb53f5c2f19c040894633bb6f584dcefaa64554054a42be67e2cd11e5250161c8183 languageName: node linkType: hard @@ -639,12 +729,12 @@ __metadata: languageName: node linkType: hard -"@cspell/dict-python@npm:^4.2.3": - version: 4.2.3 - resolution: "@cspell/dict-python@npm:4.2.3" +"@cspell/dict-python@npm:^4.2.3, @cspell/dict-python@npm:^4.2.4": + version: 4.2.4 + resolution: "@cspell/dict-python@npm:4.2.4" dependencies: "@cspell/dict-data-science": "npm:^2.0.1" - checksum: 10/ff66b1926265d19ecc7fac22751bbc2a7f4d0a4280a30b019f25e3ffd3e115fbc57efd3e730ac08cd7bab85e9eb478f6663f2f1dce7551c56d1e80fa99b7016d + checksum: 10/553e0e47549deee3c85b198fb85ec0b09a165e9db7d99d5861f1c64e26a7229cea00445791c2dab8bafec53d59071dcc2a2d0523939a4467a670545399ed7e43 languageName: node linkType: hard @@ -676,17 +766,17 @@ __metadata: languageName: node linkType: hard -"@cspell/dict-software-terms@npm:^4.0.3": - version: 4.0.3 - resolution: "@cspell/dict-software-terms@npm:4.0.3" - checksum: 10/31a4cb73b855b57b7896265ff9e571b46f2d553eddaa094c54e2dd8f3e1d5244dfd079df94f5db0e872e5abe950a7bb59b93f82fe207cc9d306e0ef7c5b301e0 +"@cspell/dict-software-terms@npm:^4.0.3, @cspell/dict-software-terms@npm:^4.0.6": + version: 4.0.6 + resolution: "@cspell/dict-software-terms@npm:4.0.6" + checksum: 10/4861644cc666cbdeaa8d5996b8ab0d6cdae1c27fb2bea06eaee081ffeeac54eded302a19a4ef6f9d1045398110434d62e96420d5133a8dfeba95de2ec39c398f languageName: node linkType: hard -"@cspell/dict-sql@npm:^2.1.3": - version: 2.1.3 - resolution: "@cspell/dict-sql@npm:2.1.3" - checksum: 10/a435812cc697d4c453f11efa49962992150702518e49808381ea34548b8a8ed81432a10cca36682007912b013c28e9ce3c6c183341c6cde58c8af0eef25cddc3 +"@cspell/dict-sql@npm:^2.1.3, @cspell/dict-sql@npm:^2.1.5": + version: 2.1.5 + resolution: "@cspell/dict-sql@npm:2.1.5" + checksum: 10/97928e1c42d9ec793401b37e97ab60955cfb7b623f9f2ad1578459e3c53bd5ae503dadc80f3192355de72bb15a89cb993be88d1ffc26a7f3b8c38a07e8b772a5 languageName: node linkType: hard @@ -734,17 +824,26 @@ __metadata: languageName: node linkType: hard -"@cspell/eslint-plugin@npm:^8.13.1": - version: 8.13.1 - resolution: "@cspell/eslint-plugin@npm:8.13.1" +"@cspell/dynamic-import@npm:8.13.3": + version: 8.13.3 + resolution: "@cspell/dynamic-import@npm:8.13.3" dependencies: - "@cspell/cspell-types": "npm:8.13.1" - "@cspell/url": "npm:8.13.1" - cspell-lib: "npm:8.13.1" + import-meta-resolve: "npm:^4.1.0" + checksum: 10/ab7103f1479ae36889166825f3efb15f4e1e408d52e425860794efa67eff88089c9b59e49241961dba7e153d8e1428888e64cfe05f4cc106d7411a608e8fb415 + languageName: node + linkType: hard + +"@cspell/eslint-plugin@npm:^8.13.3": + version: 8.13.3 + resolution: "@cspell/eslint-plugin@npm:8.13.3" + dependencies: + "@cspell/cspell-types": "npm:8.13.3" + "@cspell/url": "npm:8.13.3" + cspell-lib: "npm:8.13.3" synckit: "npm:^0.9.1" peerDependencies: eslint: ^7 || ^8 || ^9 - checksum: 10/3179ba42205be01b7c666c21b74fef6ae93004507efaab96ab45704d917a531beec57a4185b30460f70842e1c295e2c7c0af0814c0922055b01e7e4554035347 + checksum: 10/be8ca0d4aa0ebb0b9d5b0ab142c56e584fe4c3071f14cd19c59715a19e496eefc1b41481cd4643594391c97539b37c586ecf87e04cdafb1344217853476c1982 languageName: node linkType: hard @@ -755,6 +854,13 @@ __metadata: languageName: node linkType: hard +"@cspell/strong-weak-map@npm:8.13.3": + version: 8.13.3 + resolution: "@cspell/strong-weak-map@npm:8.13.3" + checksum: 10/668a1e7d4ff5be1d1d3f5da96a436e17223a0a9f37f0e0192abe990cdf488ca690571b183e9af680c9560bf27f14086d354a052248efb277db25a514d946215a + languageName: node + linkType: hard + "@cspell/url@npm:8.13.1": version: 8.13.1 resolution: "@cspell/url@npm:8.13.1" @@ -762,14 +868,21 @@ __metadata: languageName: node linkType: hard -"@es-joy/jsdoccomment@npm:~0.46.0": - version: 0.46.0 - resolution: "@es-joy/jsdoccomment@npm:0.46.0" +"@cspell/url@npm:8.13.3": + version: 8.13.3 + resolution: "@cspell/url@npm:8.13.3" + checksum: 10/59b8d6986977334a02ae8e07ebef49b21eb95679c291931d75ac27d46c2c7415edd0f8b4d8d96c954dcab6d4e2dfb7be58dc52da2d2b048bd67269a6ff1be1b3 + languageName: node + linkType: hard + +"@es-joy/jsdoccomment@npm:~0.48.0": + version: 0.48.0 + resolution: "@es-joy/jsdoccomment@npm:0.48.0" dependencies: comment-parser: "npm:1.4.1" esquery: "npm:^1.6.0" - jsdoc-type-pratt-parser: "npm:~4.0.0" - checksum: 10/1853865bebd502763dfd85ff247195806a40cff860278c5c20767f0b330c4fd51e71458ed4dac53891dcf5e3bb2fac13b5538eeb38938cf4549cf17984b0cc2e + jsdoc-type-pratt-parser: "npm:~4.1.0" + checksum: 10/28fc48521cc020a570d4cc0c1dde9e370a68bb5bebb7ca0049e2d7090f373ea4ccb685adb0123da0783c47672822b49bc849bc4a1a27d4758ab1bc18a9c8500a languageName: node linkType: hard @@ -941,20 +1054,24 @@ __metadata: version: 0.0.0-use.local resolution: "@kurone-kito/eslint-config-base@workspace:packages/eslint-config-base" dependencies: - "@cspell/eslint-plugin": "npm:^8.13.1" + "@cspell/eslint-plugin": "npm:^8.13.3" "@eslint/compat": "npm:^1.1.1" "@eslint/eslintrc": "npm:^3.1.0" "@eslint/js": "npm:^9.9.0" "@kurone-kito/typescript-config": "workspace:^" "@types/eslint": "npm:^9.6.0" + "@types/eslint-config-prettier": "npm:^6.11.3" + "@types/eslint-plugin-markdown": "npm:^2.0.2" "@types/eslint__eslintrc": "npm:^2.1.2" "@types/eslint__js": "npm:^8.42.3" "@types/node": "npm:^22.2.0" - "@typescript-eslint/eslint-plugin": "npm:^8.0.0" - "@typescript-eslint/parser": "npm:^8.0.0" + "@typescript-eslint/eslint-plugin": "npm:^8.1.0" + "@typescript-eslint/parser": "npm:^8.1.0" + "@typescript-eslint/utils": "npm:^8.1.0" concurrently: "npm:^8.2.2" cpy-cli: "npm:^5.0.0" eslint: "npm:^9.9.0" + eslint-config-airbnb-base: "npm:^15.0.0" eslint-config-airbnb-typescript: "npm:^18.0.0" eslint-config-prettier: "npm:^9.1.0" eslint-formatter-codeframe: "npm:^7.32.1" @@ -962,35 +1079,35 @@ __metadata: eslint-import-resolver-typescript: "npm:^3.6.1" eslint-plugin-editorconfig: "npm:^4.0.3" eslint-plugin-import: "npm:^2.29.1" - eslint-plugin-jsdoc: "npm:^48.11.0" - eslint-plugin-json: "npm:^4.0.0" + eslint-plugin-jsdoc: "npm:^50.2.2" + eslint-plugin-json: "npm:^4.0.1" eslint-plugin-markdown: "npm:^5.1.0" eslint-plugin-markdownlint: "npm:^0.6.0" - eslint-plugin-n: "npm:^17.10.1" - eslint-plugin-oxlint: "npm:^0.5.0" + eslint-plugin-n: "npm:^17.10.2" + eslint-plugin-oxlint: "npm:^0.7.2" eslint-plugin-yaml: "npm:^1.0.3" + globals: "npm:^15.9.0" js-yaml: "npm:^4.1.0" - prettier: "npm:^3.3.3" rimraf: "npm:^5.0.10" typescript: "npm:~5.5.4" + typescript-eslint: "npm:^8.1.0" peerDependencies: - "@cspell/eslint-plugin": ">=6.x.x" - "@typescript-eslint/eslint-plugin": ">=8.0.x" - "@typescript-eslint/parser": ">=8.0.x" + "@cspell/eslint-plugin": ">=8.13.1" + "@typescript-eslint/eslint-plugin": ">=8.x.x" + "@typescript-eslint/parser": ">=8.x.x" eslint: ">=9.x.x" - eslint-config-airbnb-typescript: ">=17.x.x" - eslint-config-prettier: ">=8.x.x" - eslint-formatter-codeframe: ">=7.x.x" - eslint-import-resolver-node: ">=0.3.x" - eslint-import-resolver-typescript: ">=3.x.x" - eslint-plugin-editorconfig: ">=4.x.x" - eslint-plugin-import: ">=2.27.x" - eslint-plugin-jsdoc: ">=46.x.x" + eslint-config-airbnb-typescript: ">=18.x.x" + eslint-config-prettier: ">=9.1.x" + eslint-import-resolver-node: ">=0.3.9" + eslint-import-resolver-typescript: ">=3.6.1" + eslint-plugin-editorconfig: ">=4.0.3" + eslint-plugin-import: ">=2.29.1" + eslint-plugin-jsdoc: ">=48.11.x" eslint-plugin-json: ">=4.x.x" - eslint-plugin-markdown: ">=3.x.x" - eslint-plugin-markdownlint: ">=0.5.x" - eslint-plugin-n: ">=17.x.x" - eslint-plugin-oxlint: ">=0.2.x" + eslint-plugin-markdown: ">=5.1.x" + eslint-plugin-markdownlint: ">=0.6.x" + eslint-plugin-n: ">=17.10.1" + eslint-plugin-oxlint: ">=0.5.x" eslint-plugin-yaml: ">=1.0.3" peerDependenciesMeta: "@cspell/eslint-plugin": @@ -1036,7 +1153,7 @@ __metadata: version: 0.0.0-use.local resolution: "@kurone-kito/eslint-config-react@workspace:packages/eslint-config-react" dependencies: - "@cspell/eslint-plugin": "npm:^8.13.1" + "@cspell/eslint-plugin": "npm:^8.13.3" "@eslint/eslintrc": "npm:^3.1.0" "@eslint/js": "npm:^9.9.0" "@kurone-kito/eslint-config-base": "workspace:^" @@ -1045,54 +1162,45 @@ __metadata: "@types/eslint__eslintrc": "npm:^2.1.2" "@types/eslint__js": "npm:^8.42.3" "@types/node": "npm:^22.2.0" - "@typescript-eslint/eslint-plugin": "npm:^8.0.0" - "@typescript-eslint/parser": "npm:^8.0.0" + "@typescript-eslint/eslint-plugin": "npm:^8.1.0" + "@typescript-eslint/parser": "npm:^8.1.0" + "@typescript-eslint/utils": "npm:^8.1.0" concurrently: "npm:^8.2.2" cpy-cli: "npm:^5.0.0" + eslint: "npm:^9.9.0" + eslint-config-airbnb: "npm:^19.0.4" eslint-config-airbnb-typescript: "npm:^18.0.0" - eslint-config-prettier: "npm:^9.1.0" eslint-formatter-codeframe: "npm:^7.32.1" - eslint-import-resolver-node: "npm:^0.3.9" - eslint-import-resolver-typescript: "npm:^3.6.1" - eslint-plugin-editorconfig: "npm:^4.0.3" eslint-plugin-import: "npm:^2.29.1" - eslint-plugin-jsdoc: "npm:^48.11.0" - eslint-plugin-json: "npm:^4.0.0" eslint-plugin-jsx-a11y: "npm:^6.9.0" - eslint-plugin-markdown: "npm:^5.1.0" - eslint-plugin-markdownlint: "npm:^0.6.0" - eslint-plugin-n: "npm:^17.10.1" - eslint-plugin-oxlint: "npm:^0.5.0" eslint-plugin-react: "npm:^7.35.0" eslint-plugin-react-hooks: "npm:^4.6.2" eslint-plugin-storybook: "npm:^0.8.0" - eslint-plugin-yaml: "npm:^1.0.3" js-yaml: "npm:^4.1.0" - prettier: "npm:^3.3.3" rimraf: "npm:^5.0.10" typescript: "npm:~5.5.4" + typescript-eslint: "npm:^8.1.0" peerDependencies: - "@cspell/eslint-plugin": ">=6.x.x" - "@typescript-eslint/eslint-plugin": ">=8.0.x" - "@typescript-eslint/parser": ">=8.0.x" + "@cspell/eslint-plugin": ">=8.13.1" + "@typescript-eslint/eslint-plugin": ">=8.x.x" + "@typescript-eslint/parser": ">=8.x.x" eslint: ">=9.x.x" - eslint-config-airbnb-typescript: ">=17.x.x" - eslint-config-prettier: ">=8.x.x" - eslint-formatter-codeframe: ">=7.x.x" - eslint-import-resolver-node: ">=0.3.x" - eslint-import-resolver-typescript: ">=3.x.x" - eslint-plugin-editorconfig: ">=4.x.x" - eslint-plugin-import: ">=2.27.x" - eslint-plugin-jsdoc: ">=46.x.x" + eslint-config-airbnb-typescript: ">=18.x.x" + eslint-config-prettier: ">=9.1.x" + eslint-import-resolver-node: ">=0.3.9" + eslint-import-resolver-typescript: ">=3.6.1" + eslint-plugin-editorconfig: ">=4.0.3" + eslint-plugin-import: ">=2.29.1" + eslint-plugin-jsdoc: ">=48.11.x" eslint-plugin-json: ">=4.x.x" - eslint-plugin-jsx-a11y: ">=6.x.x" - eslint-plugin-markdown: ">=3.x.x" - eslint-plugin-markdownlint: ">=0.5.x" - eslint-plugin-n: ">=17.x.x" - eslint-plugin-oxlint: ">=0.2.x" - eslint-plugin-react: ">=7.2.x" - eslint-plugin-react-hooks: ">=4.3.x" - eslint-plugin-storybook: ">=0.6.x" + eslint-plugin-jsx-a11y: ">=6.9.x" + eslint-plugin-markdown: ">=5.1.x" + eslint-plugin-markdownlint: ">=0.6.x" + eslint-plugin-n: ">=17.10.1" + eslint-plugin-oxlint: ">=0.5.x" + eslint-plugin-react: ">=7.35.x" + eslint-plugin-react-hooks: ">=4.6.2" + eslint-plugin-storybook: ">=0.8.x" eslint-plugin-yaml: ">=1.0.3" peerDependenciesMeta: "@cspell/eslint-plugin": @@ -1173,7 +1281,7 @@ __metadata: "@kurone-kito/prettier-config": "workspace:^" "@kurone-kito/typescript-config": "workspace:^" "@types/eslint": "npm:^9.6.0" - "@typescript-eslint/parser": "npm:^8.0.0" + "@typescript-eslint/parser": "npm:^8.1.0" "@yarnpkg/sdks": "npm:^3.2.0" concurrently: "npm:^8.2.2" cspell: "npm:^8.13.1" @@ -1216,14 +1324,14 @@ __metadata: version: 0.0.0-use.local resolution: "@kurone-kito/typescript-config@workspace:packages/typescript-config" dependencies: - "@typescript-eslint/parser": "npm:^8.0.0" + "@typescript-eslint/parser": "npm:^8.1.0" concurrently: "npm:^8.2.2" cpy-cli: "npm:^5.0.0" eslint: "npm:^9.9.0" typescript: "npm:~5.5.4" typescript-eslint-language-service: "npm:^5.0.5" peerDependencies: - "@typescript-eslint/parser": ">=6.x.x" + "@typescript-eslint/parser": ">=7.17.x" typescript: ">=5.x.x" typescript-eslint-language-service: ">=5.x.x" peerDependenciesMeta: @@ -1400,6 +1508,23 @@ __metadata: languageName: node linkType: hard +"@types/eslint-config-prettier@npm:^6.11.3": + version: 6.11.3 + resolution: "@types/eslint-config-prettier@npm:6.11.3" + checksum: 10/b69ad5d7452f614450fcaf78b4055cfb11afb632f1ef292a3229cb5ac9a7041106a85cf634c570fbd3bb9db59c8fee7ca0e32a059e6fcad2477e22d81d5c3ef3 + languageName: node + linkType: hard + +"@types/eslint-plugin-markdown@npm:^2.0.2": + version: 2.0.2 + resolution: "@types/eslint-plugin-markdown@npm:2.0.2" + dependencies: + "@types/eslint": "npm:*" + "@types/unist": "npm:*" + checksum: 10/7711de5489e9fc859552a11e2afdf680a4585c6e4cacb497f7c51e51dc5331daf3e8e3c967d483d23897fd4825e71a27e53e892e086d94e4e643825ff9f9170f + languageName: node + linkType: hard + "@types/eslint@npm:*, @types/eslint@npm:^9.6.0": version: 9.6.0 resolution: "@types/eslint@npm:9.6.0" @@ -1506,6 +1631,13 @@ __metadata: languageName: node linkType: hard +"@types/unist@npm:*": + version: 3.0.2 + resolution: "@types/unist@npm:3.0.2" + checksum: 10/3d04d0be69316e5f14599a0d993a208606c12818cf631fd399243d1dc7a9bd8a3917d6066baa6abc290814afbd744621484756803c80cba892c39cd4b4a85616 + languageName: node + linkType: hard + "@types/unist@npm:^2, @types/unist@npm:^2.0.2": version: 2.0.10 resolution: "@types/unist@npm:2.0.10" @@ -1513,15 +1645,15 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/eslint-plugin@npm:^8.0.0": - version: 8.0.0 - resolution: "@typescript-eslint/eslint-plugin@npm:8.0.0" +"@typescript-eslint/eslint-plugin@npm:8.1.0, @typescript-eslint/eslint-plugin@npm:^8.1.0": + version: 8.1.0 + resolution: "@typescript-eslint/eslint-plugin@npm:8.1.0" dependencies: "@eslint-community/regexpp": "npm:^4.10.0" - "@typescript-eslint/scope-manager": "npm:8.0.0" - "@typescript-eslint/type-utils": "npm:8.0.0" - "@typescript-eslint/utils": "npm:8.0.0" - "@typescript-eslint/visitor-keys": "npm:8.0.0" + "@typescript-eslint/scope-manager": "npm:8.1.0" + "@typescript-eslint/type-utils": "npm:8.1.0" + "@typescript-eslint/utils": "npm:8.1.0" + "@typescript-eslint/visitor-keys": "npm:8.1.0" graphemer: "npm:^1.4.0" ignore: "npm:^5.3.1" natural-compare: "npm:^1.4.0" @@ -1532,25 +1664,25 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: 10/80c52b37f8c3489a637cbb433ffce19e7d279bd20bd4ccd0db9e3647afd6d2e7643c8319feafa5907c62c460c48605ca87e12a9c7890a094f264f47e2579add4 + checksum: 10/bac7be38db0c06de5101b55cf5ab8e7c00031a0b5911680af359ccb1464741d5a94f58204831c1340c90a4b9ed537160a27eb1ee7d0a95751962c4e470c8116c languageName: node linkType: hard -"@typescript-eslint/parser@npm:^8.0.0": - version: 8.0.0 - resolution: "@typescript-eslint/parser@npm:8.0.0" +"@typescript-eslint/parser@npm:8.1.0, @typescript-eslint/parser@npm:^8.1.0": + version: 8.1.0 + resolution: "@typescript-eslint/parser@npm:8.1.0" dependencies: - "@typescript-eslint/scope-manager": "npm:8.0.0" - "@typescript-eslint/types": "npm:8.0.0" - "@typescript-eslint/typescript-estree": "npm:8.0.0" - "@typescript-eslint/visitor-keys": "npm:8.0.0" + "@typescript-eslint/scope-manager": "npm:8.1.0" + "@typescript-eslint/types": "npm:8.1.0" + "@typescript-eslint/typescript-estree": "npm:8.1.0" + "@typescript-eslint/visitor-keys": "npm:8.1.0" debug: "npm:^4.3.4" peerDependencies: eslint: ^8.57.0 || ^9.0.0 peerDependenciesMeta: typescript: optional: true - checksum: 10/044a7deb299bc988b7f33a99b9c1dc387133e7ce4b2f7751568e4fd07a2e541c1d628e332205ac3cbd797fcad95f89d097a38e6e7e42707d9022fbf0b8b26e6c + checksum: 10/e56c9d98edc38e6fd25e0dcb5afbb26589a56df3ae3b0a9619d52b50434fd52f39e885e503f2aac71e63e889a2c9b030844c549da67a7e4c2608828120242310 languageName: node linkType: hard @@ -1564,28 +1696,28 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/scope-manager@npm:8.0.0": - version: 8.0.0 - resolution: "@typescript-eslint/scope-manager@npm:8.0.0" +"@typescript-eslint/scope-manager@npm:8.1.0": + version: 8.1.0 + resolution: "@typescript-eslint/scope-manager@npm:8.1.0" dependencies: - "@typescript-eslint/types": "npm:8.0.0" - "@typescript-eslint/visitor-keys": "npm:8.0.0" - checksum: 10/444dbc156d9d6d2aa4f82e35ab171aed85d1818c5adf70f955f69d6d0591d9a0668f645d38bf5b759098849aa4114340ca128a673be5525a94fba9a048751d0c + "@typescript-eslint/types": "npm:8.1.0" + "@typescript-eslint/visitor-keys": "npm:8.1.0" + checksum: 10/ce45240807385718d0507eea85967da5bb2861f11944700844ddf08683196a2ac5a898a5518b6a16d551b064f80cf89a4564799314f36169ada36b23ce45eb94 languageName: node linkType: hard -"@typescript-eslint/type-utils@npm:8.0.0": - version: 8.0.0 - resolution: "@typescript-eslint/type-utils@npm:8.0.0" +"@typescript-eslint/type-utils@npm:8.1.0": + version: 8.1.0 + resolution: "@typescript-eslint/type-utils@npm:8.1.0" dependencies: - "@typescript-eslint/typescript-estree": "npm:8.0.0" - "@typescript-eslint/utils": "npm:8.0.0" + "@typescript-eslint/typescript-estree": "npm:8.1.0" + "@typescript-eslint/utils": "npm:8.1.0" debug: "npm:^4.3.4" ts-api-utils: "npm:^1.3.0" peerDependenciesMeta: typescript: optional: true - checksum: 10/89ca36511acdb8d45dfe524ac6e06dbee4dea04ac02af2dd7e42de1fedd33aff8e88a08a2407259fc4f10220f90363856d9cee419697dd1381ea7b3d0b19af69 + checksum: 10/7f6d7a6e7c13df0a6fc46121052913f7420d19ebf4722fc3483908b5344ef04329be279668e8940ca4de60854fd00e00c3beb69e730bc6ef8d11701f1145f0ca languageName: node linkType: hard @@ -1596,10 +1728,10 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/types@npm:8.0.0": - version: 8.0.0 - resolution: "@typescript-eslint/types@npm:8.0.0" - checksum: 10/e28e79d8b7acfa42c90781fa63e90e56807ae018a0a92fc71c8e441d2bb3a250527c9d44ff6450ff1d47ceed0c3df28de6599f97f6c4c65ac554088867fc3517 +"@typescript-eslint/types@npm:8.1.0": + version: 8.1.0 + resolution: "@typescript-eslint/types@npm:8.1.0" + checksum: 10/fca0aff60f3bd5361af4132f7ffd5162b50bef371ef4ca40cbeaa9f7e95ace2794a30bd2311a6d82af04bb618f958ce61eebedfe520b7348638aa4adc5430dc6 languageName: node linkType: hard @@ -1621,12 +1753,12 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/typescript-estree@npm:8.0.0": - version: 8.0.0 - resolution: "@typescript-eslint/typescript-estree@npm:8.0.0" +"@typescript-eslint/typescript-estree@npm:8.1.0": + version: 8.1.0 + resolution: "@typescript-eslint/typescript-estree@npm:8.1.0" dependencies: - "@typescript-eslint/types": "npm:8.0.0" - "@typescript-eslint/visitor-keys": "npm:8.0.0" + "@typescript-eslint/types": "npm:8.1.0" + "@typescript-eslint/visitor-keys": "npm:8.1.0" debug: "npm:^4.3.4" globby: "npm:^11.1.0" is-glob: "npm:^4.0.3" @@ -1636,21 +1768,21 @@ __metadata: peerDependenciesMeta: typescript: optional: true - checksum: 10/99a80fb43d1e9cbd49a3dfdd264e7e361ffd4e19970d2b04b86a551fc730cc4f19202c3323d0d6bbfd7ce4672bf205cb7b756ba2e20c95729b24e878b96e66f3 + checksum: 10/3e5dbeb942891aeb13cf9634abc59e0bcef5841103d59047bc7cd3a393adbaa9dddfe07f693555f9f82062ba9bb4ff66bed7032d6d390334bd016efb6262e3a1 languageName: node linkType: hard -"@typescript-eslint/utils@npm:8.0.0": - version: 8.0.0 - resolution: "@typescript-eslint/utils@npm:8.0.0" +"@typescript-eslint/utils@npm:8.1.0, @typescript-eslint/utils@npm:^8.1.0": + version: 8.1.0 + resolution: "@typescript-eslint/utils@npm:8.1.0" dependencies: "@eslint-community/eslint-utils": "npm:^4.4.0" - "@typescript-eslint/scope-manager": "npm:8.0.0" - "@typescript-eslint/types": "npm:8.0.0" - "@typescript-eslint/typescript-estree": "npm:8.0.0" + "@typescript-eslint/scope-manager": "npm:8.1.0" + "@typescript-eslint/types": "npm:8.1.0" + "@typescript-eslint/typescript-estree": "npm:8.1.0" peerDependencies: eslint: ^8.57.0 || ^9.0.0 - checksum: 10/f76e65763725d944d3c6f0e78ea566cdb08247fa7ee9e2ec15310527f3e2325c92cb67c80a63e4a6dd29a5a7d96db3839aebd0a2e98810dcc248f6762414c995 + checksum: 10/0154e25aab8f3f99e8b9c88fda4a60ad8ecdf580eac3e71b6f4e3c5af23ee682559c57b6482af2fbe05b9deb7bcda322667e7d85ab7f778089dcaa2ce8ea2926 languageName: node linkType: hard @@ -1682,13 +1814,13 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/visitor-keys@npm:8.0.0": - version: 8.0.0 - resolution: "@typescript-eslint/visitor-keys@npm:8.0.0" +"@typescript-eslint/visitor-keys@npm:8.1.0": + version: 8.1.0 + resolution: "@typescript-eslint/visitor-keys@npm:8.1.0" dependencies: - "@typescript-eslint/types": "npm:8.0.0" + "@typescript-eslint/types": "npm:8.1.0" eslint-visitor-keys: "npm:^3.4.3" - checksum: 10/328106878ed42f1543590317477275a3c95c0455ba8203355fede94b0970844ec430cc5e090d4e1f48d805ac40ab1bd339270514e256b0810cabd423c6b2d52a + checksum: 10/e4570a4f07896a007e9e739956448f3ed7a69debd59a5d16b05426fa41b879cac1dce4b8338e03ef452b279147fcb36c15b8abea0e829897b5b894e711a14bd2 languageName: node linkType: hard @@ -2420,16 +2552,16 @@ __metadata: languageName: node linkType: hard -"comment-json@npm:^4.2.4": - version: 4.2.4 - resolution: "comment-json@npm:4.2.4" +"comment-json@npm:^4.2.4, comment-json@npm:^4.2.5": + version: 4.2.5 + resolution: "comment-json@npm:4.2.5" dependencies: array-timsort: "npm:^1.0.3" core-util-is: "npm:^1.0.3" esprima: "npm:^4.0.1" has-own-prop: "npm:^2.0.0" repeat-string: "npm:^1.6.1" - checksum: 10/b39109b318cbad9c8d991aebdcb1835542338b4e1c03a3d00ec72eab2e13045589c071943cb238443b9e1595800e6f82318e08aeba516d38571d7c146c58a38e + checksum: 10/dc347621de15043a16846a1697a6248b427e913ddfb57f3427ca4eedf9c92131000d5e8efc8be9fe191a74dc36b615d73207fc3585bf29ca1b8d32e90d40c801 languageName: node linkType: hard @@ -2623,6 +2755,17 @@ __metadata: languageName: node linkType: hard +"cspell-config-lib@npm:8.13.3": + version: 8.13.3 + resolution: "cspell-config-lib@npm:8.13.3" + dependencies: + "@cspell/cspell-types": "npm:8.13.3" + comment-json: "npm:^4.2.5" + yaml: "npm:^2.5.0" + checksum: 10/2ebee8db92fb376cf0b039f305f5b1d298806399606699af0063ececfff29eeddd5a8f76a4bea43823f700881f1d660ca0e5e1b5163df59a67467749b29d8a52 + languageName: node + linkType: hard + "cspell-dictionary@npm:8.13.1": version: 8.13.1 resolution: "cspell-dictionary@npm:8.13.1" @@ -2635,6 +2778,18 @@ __metadata: languageName: node linkType: hard +"cspell-dictionary@npm:8.13.3": + version: 8.13.3 + resolution: "cspell-dictionary@npm:8.13.3" + dependencies: + "@cspell/cspell-pipe": "npm:8.13.3" + "@cspell/cspell-types": "npm:8.13.3" + cspell-trie-lib: "npm:8.13.3" + fast-equals: "npm:^5.0.1" + checksum: 10/c8fb2238f481f6ce54ed4bcf3c183463148ac8a19b5e0f00586f53754232d4671364f4565014bd44d76ce25ddaa7eab0d8c7dc42f6be7a4008a5bf45c7d724ec + languageName: node + linkType: hard + "cspell-gitignore@npm:8.13.1": version: 8.13.1 resolution: "cspell-gitignore@npm:8.13.1" @@ -2659,6 +2814,16 @@ __metadata: languageName: node linkType: hard +"cspell-glob@npm:8.13.3": + version: 8.13.3 + resolution: "cspell-glob@npm:8.13.3" + dependencies: + "@cspell/url": "npm:8.13.3" + micromatch: "npm:^4.0.7" + checksum: 10/1299b69ea8771f3de13d6d96bf1d9eb1231feafd2181c0120ce23683a3e669068d13630866cf27924d27cdf1b6ff33b88e3c514f09fa473ae53de96a89bc9617 + languageName: node + linkType: hard + "cspell-grammar@npm:8.13.1": version: 8.13.1 resolution: "cspell-grammar@npm:8.13.1" @@ -2671,6 +2836,18 @@ __metadata: languageName: node linkType: hard +"cspell-grammar@npm:8.13.3": + version: 8.13.3 + resolution: "cspell-grammar@npm:8.13.3" + dependencies: + "@cspell/cspell-pipe": "npm:8.13.3" + "@cspell/cspell-types": "npm:8.13.3" + bin: + cspell-grammar: bin.mjs + checksum: 10/f1e61344798a56827870d62df9494504ecb8f9f08fba52616fabdee32a7d93624fca4c44aa2f93eceae09a817df4ff5b1c3f180064a089782cdbd98a307c97a6 + languageName: node + linkType: hard + "cspell-io@npm:8.13.1": version: 8.13.1 resolution: "cspell-io@npm:8.13.1" @@ -2681,6 +2858,16 @@ __metadata: languageName: node linkType: hard +"cspell-io@npm:8.13.3": + version: 8.13.3 + resolution: "cspell-io@npm:8.13.3" + dependencies: + "@cspell/cspell-service-bus": "npm:8.13.3" + "@cspell/url": "npm:8.13.3" + checksum: 10/20a529e02fc36ec9943bfc90e49cc32214993ab66a62f5ef7b451d9f064f07ec9ea19df2654145cf9b39b2398d91a2a37b3ce0054a3862a4e98d50c9442be42a + languageName: node + linkType: hard + "cspell-lib@npm:8.13.1": version: 8.13.1 resolution: "cspell-lib@npm:8.13.1" @@ -2712,6 +2899,37 @@ __metadata: languageName: node linkType: hard +"cspell-lib@npm:8.13.3": + version: 8.13.3 + resolution: "cspell-lib@npm:8.13.3" + dependencies: + "@cspell/cspell-bundled-dicts": "npm:8.13.3" + "@cspell/cspell-pipe": "npm:8.13.3" + "@cspell/cspell-resolver": "npm:8.13.3" + "@cspell/cspell-types": "npm:8.13.3" + "@cspell/dynamic-import": "npm:8.13.3" + "@cspell/strong-weak-map": "npm:8.13.3" + "@cspell/url": "npm:8.13.3" + clear-module: "npm:^4.1.2" + comment-json: "npm:^4.2.5" + cspell-config-lib: "npm:8.13.3" + cspell-dictionary: "npm:8.13.3" + cspell-glob: "npm:8.13.3" + cspell-grammar: "npm:8.13.3" + cspell-io: "npm:8.13.3" + cspell-trie-lib: "npm:8.13.3" + env-paths: "npm:^3.0.0" + fast-equals: "npm:^5.0.1" + gensequence: "npm:^7.0.0" + import-fresh: "npm:^3.3.0" + resolve-from: "npm:^5.0.0" + vscode-languageserver-textdocument: "npm:^1.0.12" + vscode-uri: "npm:^3.0.8" + xdg-basedir: "npm:^5.1.0" + checksum: 10/c9aaab3c902fc195a1bb3459568d706c66a950209669e2cc93cd1026c0818bbe1f23c0e84fe7708fd4ad568adc42455960610b846e29b1ce4e2d13cf4e9c94ac + languageName: node + linkType: hard + "cspell-trie-lib@npm:8.13.1": version: 8.13.1 resolution: "cspell-trie-lib@npm:8.13.1" @@ -2723,6 +2941,17 @@ __metadata: languageName: node linkType: hard +"cspell-trie-lib@npm:8.13.3": + version: 8.13.3 + resolution: "cspell-trie-lib@npm:8.13.3" + dependencies: + "@cspell/cspell-pipe": "npm:8.13.3" + "@cspell/cspell-types": "npm:8.13.3" + gensequence: "npm:^7.0.0" + checksum: 10/830e771a22fa4c8d22d480fbd404059ff1476fbc7791196d0d881ff47bff33047eaf379289808b81e15bd88c7ca907797a4c7f98fd955e5c3abbca691e4be01b + languageName: node + linkType: hard + "cspell@npm:^8.13.1": version: 8.13.1 resolution: "cspell@npm:8.13.1" @@ -2825,7 +3054,7 @@ __metadata: languageName: node linkType: hard -"debug@npm:^4.0.0, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.4, debug@npm:^4.3.5, debug@npm:~4.3.6": +"debug@npm:^4.0.0, debug@npm:^4.3.1, debug@npm:^4.3.2, debug@npm:^4.3.4, debug@npm:^4.3.6, debug@npm:~4.3.6": version: 4.3.6 resolution: "debug@npm:4.3.6" dependencies: @@ -3336,6 +3565,23 @@ __metadata: languageName: node linkType: hard +"eslint-config-airbnb@npm:^19.0.4": + version: 19.0.4 + resolution: "eslint-config-airbnb@npm:19.0.4" + dependencies: + eslint-config-airbnb-base: "npm:^15.0.0" + object.assign: "npm:^4.1.2" + object.entries: "npm:^1.1.5" + peerDependencies: + eslint: ^7.32.0 || ^8.2.0 + eslint-plugin-import: ^2.25.3 + eslint-plugin-jsx-a11y: ^6.5.1 + eslint-plugin-react: ^7.28.0 + eslint-plugin-react-hooks: ^4.3.0 + checksum: 10/f2086523cfd20c42fd620c757281bd028aa8ce9dadc7293c5c23ea60947a2d3ca04404ede77b40f5a65250fe3c04502acafc4f2f6946819fe6c257d76d9644e5 + languageName: node + linkType: hard + "eslint-config-prettier@npm:^9.1.0": version: 9.1.0 resolution: "eslint-config-prettier@npm:9.1.0" @@ -3449,14 +3695,14 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-jsdoc@npm:^48.11.0": - version: 48.11.0 - resolution: "eslint-plugin-jsdoc@npm:48.11.0" +"eslint-plugin-jsdoc@npm:^50.2.2": + version: 50.2.2 + resolution: "eslint-plugin-jsdoc@npm:50.2.2" dependencies: - "@es-joy/jsdoccomment": "npm:~0.46.0" + "@es-joy/jsdoccomment": "npm:~0.48.0" are-docs-informative: "npm:^0.0.2" comment-parser: "npm:1.4.1" - debug: "npm:^4.3.5" + debug: "npm:^4.3.6" escape-string-regexp: "npm:^4.0.0" espree: "npm:^10.1.0" esquery: "npm:^1.6.0" @@ -3466,17 +3712,17 @@ __metadata: synckit: "npm:^0.9.1" peerDependencies: eslint: ^7.0.0 || ^8.0.0 || ^9.0.0 - checksum: 10/3bc2533656e9ccfdadbcd71a6f7c1ec125b1965c6e399a43c40408b51b4f8c26e44031f077c947b15d68b9cd317e7e8be1e2b222a46fb3c24a25377a2643796b + checksum: 10/8e84a8d4ce17b6e25040e8831fa8285e7773cd7fd910dce5fdc9cfb72f8358e1bc88e6c73ce6be2306d367dc83e391b147d3fa153cf90e899762f9c7f463b68b languageName: node linkType: hard -"eslint-plugin-json@npm:^4.0.0": - version: 4.0.0 - resolution: "eslint-plugin-json@npm:4.0.0" +"eslint-plugin-json@npm:^4.0.1": + version: 4.0.1 + resolution: "eslint-plugin-json@npm:4.0.1" dependencies: lodash: "npm:^4.17.21" vscode-json-languageservice: "npm:^4.1.6" - checksum: 10/963cbba4754e58c6c436236c516c26d61867f8b8e371e7db24ddfa238d0b4edcb1c234b86c1740df8ac96aeeb127b1f35771d17de9cd0a4629ce01767070999d + checksum: 10/d891eb5326cca9af5d4a2ebdef5e04761d9a2fca56841d533f755dd475539818d9f43cc7f1e19952276fca8493ea58b4e143ee68f75b2971e2ea8e5e244e0929 languageName: node linkType: hard @@ -3528,9 +3774,9 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-n@npm:^17.10.1": - version: 17.10.1 - resolution: "eslint-plugin-n@npm:17.10.1" +"eslint-plugin-n@npm:^17.10.2": + version: 17.10.2 + resolution: "eslint-plugin-n@npm:17.10.2" dependencies: "@eslint-community/eslint-utils": "npm:^4.4.0" enhanced-resolve: "npm:^5.17.0" @@ -3542,16 +3788,16 @@ __metadata: semver: "npm:^7.5.3" peerDependencies: eslint: ">=8.23.0" - checksum: 10/d1f58da4d0cf2b22426abda227c8ceb793fca7b510ef4c728cd33b9b943a74f323160feb1bb22380951a7b232856a09570d3323d87bba792b95ee39c5d2f0b86 + checksum: 10/c360e745b63d0dffddcd040cd6907bb50d259b5d92e9f4b71b98d9dcbc592d818885b6938956657bdad5bd076a7658c66daac164ed9e7d5abacb25ffc5de971b languageName: node linkType: hard -"eslint-plugin-oxlint@npm:^0.5.0": - version: 0.5.0 - resolution: "eslint-plugin-oxlint@npm:0.5.0" +"eslint-plugin-oxlint@npm:^0.7.2": + version: 0.7.2 + resolution: "eslint-plugin-oxlint@npm:0.7.2" dependencies: scule: "npm:^1.3.0" - checksum: 10/a9087ea95c0d192dd8d3f00784d5942614939ca5c931591b99f024a145a216b2cbdd2f914c7f8d4bbb885bd14dc1ec418aabbe76e11ef8c9220dc6d19691f980 + checksum: 10/4265ec4c3b719075ff1d1bbb97074c7cc5881677d2b894f517ffc4b0070cf9f7a7aca68883d32e289a0e17b2ca5caae0a2f2f7c4fb854aa26936f8a062ba9c7d languageName: node linkType: hard @@ -4242,7 +4488,7 @@ __metadata: languageName: node linkType: hard -"globals@npm:^15.8.0": +"globals@npm:^15.8.0, globals@npm:^15.9.0": version: 15.9.0 resolution: "globals@npm:15.9.0" checksum: 10/19bca70131c5d3e0d4171deed0f8ae16adda19f18d39b67421056f1eaa160b4433c3ffc8eb69b8b19adebbbdad4834d8a0494c5fe1ae295f0f769a5c0331d794 @@ -4939,10 +5185,10 @@ __metadata: languageName: node linkType: hard -"jsdoc-type-pratt-parser@npm:~4.0.0": - version: 4.0.0 - resolution: "jsdoc-type-pratt-parser@npm:4.0.0" - checksum: 10/a225ab874e56612730dd6c0466ce9f09e8a0e7d85896e9e5f0fa53cfb2e897128a7ec702fd99ed3854b3fbf5a89ad6dce72ca4f4f6149da69f130c2874f06b75 +"jsdoc-type-pratt-parser@npm:~4.1.0": + version: 4.1.0 + resolution: "jsdoc-type-pratt-parser@npm:4.1.0" + checksum: 10/30d88f95f6cbb4a1aa6d4b0d0ae46eb1096e606235ecaf9bab7a3ed5da860516b5d1cd967182765002f292c627526db918f3e56d34637bcf810e6ef84d403f3f languageName: node linkType: hard @@ -6938,6 +7184,20 @@ __metadata: languageName: node linkType: hard +"typescript-eslint@npm:^8.1.0": + version: 8.1.0 + resolution: "typescript-eslint@npm:8.1.0" + dependencies: + "@typescript-eslint/eslint-plugin": "npm:8.1.0" + "@typescript-eslint/parser": "npm:8.1.0" + "@typescript-eslint/utils": "npm:8.1.0" + peerDependenciesMeta: + typescript: + optional: true + checksum: 10/9afa7a6102930e30a0b209651731f4622b00fec9745d53bd65f3569993af7cbbf89bbf79eda98e5c482f1a5952a0130ce15cd2a9a4b63031d326e8281f21595e + languageName: node + linkType: hard + "typescript@npm:~5.5.4": version: 5.5.4 resolution: "typescript@npm:5.5.4" From 4e4aa02dcebdf741da464af6f86cd78a86de062d Mon Sep 17 00:00:00 2001 From: kurone-kito Date: Fri, 16 Aug 2024 23:40:01 +0900 Subject: [PATCH 09/10] chore(root): updated the dependencies --- package.json | 10 +- packages/eslint-config-base/package.json | 2 +- packages/eslint-config-react/package.json | 2 +- yarn.lock | 448 ++++++---------------- 4 files changed, 126 insertions(+), 336 deletions(-) diff --git a/package.json b/package.json index addee13..37d763c 100644 --- a/package.json +++ b/package.json @@ -50,9 +50,9 @@ }, "prettier": "@kurone-kito/prettier-config", "devDependencies": { - "@commitlint/cli": "^19.3.0", + "@commitlint/cli": "^19.4.0", "@commitlint/config-conventional": "^19.2.2", - "@cspell/cspell-types": "^8.13.1", + "@cspell/cspell-types": "^8.13.3", "@kurone-kito/commitlint-config": "workspace:^", "@kurone-kito/cspell-config": "workspace:^", "@kurone-kito/eslint-config-base": "workspace:^", @@ -65,13 +65,13 @@ "@typescript-eslint/parser": "^8.1.0", "@yarnpkg/sdks": "^3.2.0", "concurrently": "^8.2.2", - "cspell": "^8.13.1", + "cspell": "^8.13.3", "eslint": "^9.9.0", "eslint-formatter-codeframe": "^7.32.1", "husky": "^9.1.4", - "lint-staged": "^15.2.8", + "lint-staged": "^15.2.9", "markdownlint-cli2": "^0.13.0", - "oxlint": "^0.6.1", + "oxlint": "^0.7.2", "prettier": "^3.3.3", "rimraf": "^5.0.10", "typescript": "~5.5.4", diff --git a/packages/eslint-config-base/package.json b/packages/eslint-config-base/package.json index c44d1ae..939f351 100644 --- a/packages/eslint-config-base/package.json +++ b/packages/eslint-config-base/package.json @@ -70,7 +70,7 @@ "@types/eslint-plugin-markdown": "^2.0.2", "@types/eslint__eslintrc": "^2.1.2", "@types/eslint__js": "^8.42.3", - "@types/node": "^22.2.0", + "@types/node": "^22.4.0", "@typescript-eslint/utils": "^8.1.0", "concurrently": "^8.2.2", "cpy-cli": "^5.0.0", diff --git a/packages/eslint-config-react/package.json b/packages/eslint-config-react/package.json index 3a3b296..e26537a 100644 --- a/packages/eslint-config-react/package.json +++ b/packages/eslint-config-react/package.json @@ -60,7 +60,7 @@ "@types/eslint": "^9.6.0", "@types/eslint__eslintrc": "^2.1.2", "@types/eslint__js": "^8.42.3", - "@types/node": "^22.2.0", + "@types/node": "^22.4.0", "@typescript-eslint/utils": "^8.1.0", "concurrently": "^8.2.2", "cpy-cli": "^5.0.0", diff --git a/yarn.lock b/yarn.lock index 512f2a3..bcf19e2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -61,20 +61,20 @@ __metadata: languageName: node linkType: hard -"@commitlint/cli@npm:^19.3.0": - version: 19.3.0 - resolution: "@commitlint/cli@npm:19.3.0" +"@commitlint/cli@npm:^19.4.0": + version: 19.4.0 + resolution: "@commitlint/cli@npm:19.4.0" dependencies: "@commitlint/format": "npm:^19.3.0" "@commitlint/lint": "npm:^19.2.2" - "@commitlint/load": "npm:^19.2.0" - "@commitlint/read": "npm:^19.2.1" + "@commitlint/load": "npm:^19.4.0" + "@commitlint/read": "npm:^19.4.0" "@commitlint/types": "npm:^19.0.3" execa: "npm:^8.0.1" yargs: "npm:^17.0.0" bin: commitlint: cli.js - checksum: 10/b1565c0529b8a27ebb3313230f5ddf2f72c5dd819073b2ec141ea1547dfc4de3400a7208ae4f93b071cf8a6a2736aaeb1348c722f6e4627dc964dd0976a37810 + checksum: 10/be6e7cdc11b20d29f840eaff4d8231a8180f1355100e05a1b5652a4fc19d63c254b11e47bb29c44de073998cd8d13f62b4b1f0ea404f39a54064b0d56e3a1baf languageName: node linkType: hard @@ -151,9 +151,9 @@ __metadata: languageName: node linkType: hard -"@commitlint/load@npm:^19.2.0": - version: 19.2.0 - resolution: "@commitlint/load@npm:19.2.0" +"@commitlint/load@npm:^19.4.0": + version: 19.4.0 + resolution: "@commitlint/load@npm:19.4.0" dependencies: "@commitlint/config-validator": "npm:^19.0.3" "@commitlint/execute-rule": "npm:^19.0.0" @@ -165,7 +165,7 @@ __metadata: lodash.isplainobject: "npm:^4.0.6" lodash.merge: "npm:^4.6.2" lodash.uniq: "npm:^4.5.0" - checksum: 10/5cd35a0a60064c70c06ab6bd8b1ae02cf6ecc1d0520b76c68cdc7c12094338f04c19e2df5d7ae30d681e858871c4f1963ae39e4969ed61139959cf4b300030fc + checksum: 10/ebf3c8f4567cef9b4099d740f145eea6dc8335059ebfbda18d9c65701b810c46634aeeea721a6c7ebbef6cf8d11ccf1402891fee89ca90652f723987ee5c410c languageName: node linkType: hard @@ -187,16 +187,16 @@ __metadata: languageName: node linkType: hard -"@commitlint/read@npm:^19.2.1": - version: 19.2.1 - resolution: "@commitlint/read@npm:19.2.1" +"@commitlint/read@npm:^19.4.0": + version: 19.4.0 + resolution: "@commitlint/read@npm:19.4.0" dependencies: "@commitlint/top-level": "npm:^19.0.0" "@commitlint/types": "npm:^19.0.3" execa: "npm:^8.0.1" git-raw-commits: "npm:^4.0.0" minimist: "npm:^1.2.8" - checksum: 10/840ebd183b2fe36dea03701552d825a9a1770d300b9416ab2a731fdeed66cf8c9dd8be133d92ac017cb9bf29e2ef5aee91a641f2b643bb5b33005f7b392ec953 + checksum: 10/732ab482c3acc7cf00d28db02d45701f38c381712a46e2d5f5f7faabc14b87d849c64184df80b7d197083a71fbd7ec05cc5ae6a1814c1590543f9489e46f9d28 languageName: node linkType: hard @@ -253,66 +253,6 @@ __metadata: languageName: node linkType: hard -"@cspell/cspell-bundled-dicts@npm:8.13.1": - version: 8.13.1 - resolution: "@cspell/cspell-bundled-dicts@npm:8.13.1" - dependencies: - "@cspell/dict-ada": "npm:^4.0.2" - "@cspell/dict-aws": "npm:^4.0.3" - "@cspell/dict-bash": "npm:^4.1.3" - "@cspell/dict-companies": "npm:^3.1.3" - "@cspell/dict-cpp": "npm:^5.1.12" - "@cspell/dict-cryptocurrencies": "npm:^5.0.0" - "@cspell/dict-csharp": "npm:^4.0.2" - "@cspell/dict-css": "npm:^4.0.12" - "@cspell/dict-dart": "npm:^2.0.3" - "@cspell/dict-django": "npm:^4.1.0" - "@cspell/dict-docker": "npm:^1.1.7" - "@cspell/dict-dotnet": "npm:^5.0.2" - "@cspell/dict-elixir": "npm:^4.0.3" - "@cspell/dict-en-common-misspellings": "npm:^2.0.3" - "@cspell/dict-en-gb": "npm:1.1.33" - "@cspell/dict-en_us": "npm:^4.3.23" - "@cspell/dict-filetypes": "npm:^3.0.4" - "@cspell/dict-fonts": "npm:^4.0.0" - "@cspell/dict-fsharp": "npm:^1.0.1" - "@cspell/dict-fullstack": "npm:^3.2.0" - "@cspell/dict-gaming-terms": "npm:^1.0.5" - "@cspell/dict-git": "npm:^3.0.0" - "@cspell/dict-golang": "npm:^6.0.9" - "@cspell/dict-google": "npm:^1.0.1" - "@cspell/dict-haskell": "npm:^4.0.1" - "@cspell/dict-html": "npm:^4.0.5" - "@cspell/dict-html-symbol-entities": "npm:^4.0.0" - "@cspell/dict-java": "npm:^5.0.7" - "@cspell/dict-julia": "npm:^1.0.1" - "@cspell/dict-k8s": "npm:^1.0.6" - "@cspell/dict-latex": "npm:^4.0.0" - "@cspell/dict-lorem-ipsum": "npm:^4.0.0" - "@cspell/dict-lua": "npm:^4.0.3" - "@cspell/dict-makefile": "npm:^1.0.0" - "@cspell/dict-monkeyc": "npm:^1.0.6" - "@cspell/dict-node": "npm:^5.0.1" - "@cspell/dict-npm": "npm:^5.0.18" - "@cspell/dict-php": "npm:^4.0.8" - "@cspell/dict-powershell": "npm:^5.0.5" - "@cspell/dict-public-licenses": "npm:^2.0.7" - "@cspell/dict-python": "npm:^4.2.3" - "@cspell/dict-r": "npm:^2.0.1" - "@cspell/dict-ruby": "npm:^5.0.2" - "@cspell/dict-rust": "npm:^4.0.5" - "@cspell/dict-scala": "npm:^5.0.3" - "@cspell/dict-software-terms": "npm:^4.0.3" - "@cspell/dict-sql": "npm:^2.1.3" - "@cspell/dict-svelte": "npm:^1.0.2" - "@cspell/dict-swift": "npm:^2.0.1" - "@cspell/dict-terraform": "npm:^1.0.0" - "@cspell/dict-typescript": "npm:^3.1.6" - "@cspell/dict-vue": "npm:^3.0.0" - checksum: 10/54ce064be8260013b1998be3c117062dd0e8362692b22b0684fed2b643b8ea2f43c788c7a183bd5650e209a52daed8de9b0c6622c77f22f947c18b676d654c07 - languageName: node - linkType: hard - "@cspell/cspell-bundled-dicts@npm:8.13.3": version: 8.13.3 resolution: "@cspell/cspell-bundled-dicts@npm:8.13.3" @@ -373,19 +313,12 @@ __metadata: languageName: node linkType: hard -"@cspell/cspell-json-reporter@npm:8.13.1": - version: 8.13.1 - resolution: "@cspell/cspell-json-reporter@npm:8.13.1" +"@cspell/cspell-json-reporter@npm:8.13.3": + version: 8.13.3 + resolution: "@cspell/cspell-json-reporter@npm:8.13.3" dependencies: - "@cspell/cspell-types": "npm:8.13.1" - checksum: 10/02a7f49fa3f5ec4b8392a295439279a0dc9c1250e165f4429942fd78c157ccdf9e0d0a33b81902392e370e36869281f2f146a62209d8a938d3f2737e11033e23 - languageName: node - linkType: hard - -"@cspell/cspell-pipe@npm:8.13.1": - version: 8.13.1 - resolution: "@cspell/cspell-pipe@npm:8.13.1" - checksum: 10/d6944821431bbc41126647d8a0c32a76df5e40a3a29bc9ad66a7290765471c676095e217340fb3abbac00767e4af5152797b698701c1a3101a38a62b97e44b6d + "@cspell/cspell-types": "npm:8.13.3" + checksum: 10/c8812031903b6bbb4c21a81c78040c8d3023919963151bd47f20bfa964db94b3645a8a90bb352675d553e168b5c5fa152a68bc7c502b2f5cdb8b253fa151690d languageName: node linkType: hard @@ -396,15 +329,6 @@ __metadata: languageName: node linkType: hard -"@cspell/cspell-resolver@npm:8.13.1": - version: 8.13.1 - resolution: "@cspell/cspell-resolver@npm:8.13.1" - dependencies: - global-directory: "npm:^4.0.1" - checksum: 10/96057b8c36fd474a9bad3101a23636daf9e88000de0e4baf132acaafdb44478f7d1a2a343b4684149cfdce3793be7f8e838340d0b6aa11336b2586fe56ed522d - languageName: node - linkType: hard - "@cspell/cspell-resolver@npm:8.13.3": version: 8.13.3 resolution: "@cspell/cspell-resolver@npm:8.13.3" @@ -414,13 +338,6 @@ __metadata: languageName: node linkType: hard -"@cspell/cspell-service-bus@npm:8.13.1": - version: 8.13.1 - resolution: "@cspell/cspell-service-bus@npm:8.13.1" - checksum: 10/4e97cfe9b8abede0e476f6b2737ad7ddb1f234ac97f4a59b94b1ff4dcc85eca4a200dc068d4855cc93c798e11141ce0ced3f8980070c07bd17967687e0fc7f6a - languageName: node - linkType: hard - "@cspell/cspell-service-bus@npm:8.13.3": version: 8.13.3 resolution: "@cspell/cspell-service-bus@npm:8.13.3" @@ -428,14 +345,7 @@ __metadata: languageName: node linkType: hard -"@cspell/cspell-types@npm:8.13.1": - version: 8.13.1 - resolution: "@cspell/cspell-types@npm:8.13.1" - checksum: 10/245ac2358f99b9c02efac0eec7b2010055e0230736baa86dc612820edfa9bcc8034f72cbeb8bba2914d382e63a198ed679dbf1000472edb400536263f739c08c - languageName: node - linkType: hard - -"@cspell/cspell-types@npm:8.13.3, @cspell/cspell-types@npm:^8.13.1": +"@cspell/cspell-types@npm:8.13.3, @cspell/cspell-types@npm:^8.13.3": version: 8.13.3 resolution: "@cspell/cspell-types@npm:8.13.3" checksum: 10/5529908fb3b0d0f87dd591fb107a8df58c1c55e81ccd976771b9d20a117c052698b89e7328c70ecae3123ea761ad6837b43e431b88c024b078cd4c672aee79b6 @@ -463,7 +373,7 @@ __metadata: languageName: node linkType: hard -"@cspell/dict-companies@npm:^3.1.3, @cspell/dict-companies@npm:^3.1.4": +"@cspell/dict-companies@npm:^3.1.4": version: 3.1.4 resolution: "@cspell/dict-companies@npm:3.1.4" checksum: 10/2668b80fc7e6aa9efa60f50bb39525caecd06b7f23685b60567f1ca0a1e47cebefcb5c2b877db24efda526a19c85c06af47f57368c399c948b20c5d5ed9c40e2 @@ -492,9 +402,9 @@ __metadata: linkType: hard "@cspell/dict-css@npm:^4.0.12": - version: 4.0.12 - resolution: "@cspell/dict-css@npm:4.0.12" - checksum: 10/da812243c92ef07082334d512561606f178e003fa50324332c322655fab0982ed1bea055d75a348b37cea71fbe652224dcfff14dc445d26530cfa3c491b2b324 + version: 4.0.13 + resolution: "@cspell/dict-css@npm:4.0.13" + checksum: 10/1141d60200d665a3c124201f40eaf883309e6e846bc5fedb78dbd90ef1156f8894278ecf9a5b71752e69727c6ba231bbf9c528c28f405a0463e69b5e9b55931e languageName: node linkType: hard @@ -540,7 +450,7 @@ __metadata: languageName: node linkType: hard -"@cspell/dict-en-common-misspellings@npm:^2.0.3, @cspell/dict-en-common-misspellings@npm:^2.0.4": +"@cspell/dict-en-common-misspellings@npm:^2.0.4": version: 2.0.4 resolution: "@cspell/dict-en-common-misspellings@npm:2.0.4" checksum: 10/06319ddc791f4ac3d466e0810f013264cbffa97daa87675878ec70dc6ce1fb53f5c2f19c040894633bb6f584dcefaa64554054a42be67e2cd11e5250161c8183 @@ -729,7 +639,7 @@ __metadata: languageName: node linkType: hard -"@cspell/dict-python@npm:^4.2.3, @cspell/dict-python@npm:^4.2.4": +"@cspell/dict-python@npm:^4.2.4": version: 4.2.4 resolution: "@cspell/dict-python@npm:4.2.4" dependencies: @@ -766,14 +676,14 @@ __metadata: languageName: node linkType: hard -"@cspell/dict-software-terms@npm:^4.0.3, @cspell/dict-software-terms@npm:^4.0.6": +"@cspell/dict-software-terms@npm:^4.0.6": version: 4.0.6 resolution: "@cspell/dict-software-terms@npm:4.0.6" checksum: 10/4861644cc666cbdeaa8d5996b8ab0d6cdae1c27fb2bea06eaee081ffeeac54eded302a19a4ef6f9d1045398110434d62e96420d5133a8dfeba95de2ec39c398f languageName: node linkType: hard -"@cspell/dict-sql@npm:^2.1.3, @cspell/dict-sql@npm:^2.1.5": +"@cspell/dict-sql@npm:^2.1.5": version: 2.1.5 resolution: "@cspell/dict-sql@npm:2.1.5" checksum: 10/97928e1c42d9ec793401b37e97ab60955cfb7b623f9f2ad1578459e3c53bd5ae503dadc80f3192355de72bb15a89cb993be88d1ffc26a7f3b8c38a07e8b772a5 @@ -815,15 +725,6 @@ __metadata: languageName: node linkType: hard -"@cspell/dynamic-import@npm:8.13.1": - version: 8.13.1 - resolution: "@cspell/dynamic-import@npm:8.13.1" - dependencies: - import-meta-resolve: "npm:^4.1.0" - checksum: 10/1399553de9843f98d74c7346ed52be3bd55efc32cba31d4ed01a061d8ede75ba9ee90d911bd8a9880d6f404423c0001f8172e8ecea8b624b07bae538ea0fbfd4 - languageName: node - linkType: hard - "@cspell/dynamic-import@npm:8.13.3": version: 8.13.3 resolution: "@cspell/dynamic-import@npm:8.13.3" @@ -847,13 +748,6 @@ __metadata: languageName: node linkType: hard -"@cspell/strong-weak-map@npm:8.13.1": - version: 8.13.1 - resolution: "@cspell/strong-weak-map@npm:8.13.1" - checksum: 10/e0a43e21703ce9ec851029c2dbcb97b97a3ca0c600f852ae616daf12806896b9ce97a5b258c37470c7bf1af30ec181d196586dea676d85d5cb856d3d2297e6f4 - languageName: node - linkType: hard - "@cspell/strong-weak-map@npm:8.13.3": version: 8.13.3 resolution: "@cspell/strong-weak-map@npm:8.13.3" @@ -861,13 +755,6 @@ __metadata: languageName: node linkType: hard -"@cspell/url@npm:8.13.1": - version: 8.13.1 - resolution: "@cspell/url@npm:8.13.1" - checksum: 10/47a24ea9839f6085a3757e9d8e1f6778355d593d4bf811b84c5dde0749a2baeb6c413fb0f71c6eeca23168f4b30d36b2000fe6dd7bd12186946599cceefb7b64 - languageName: node - linkType: hard - "@cspell/url@npm:8.13.3": version: 8.13.3 resolution: "@cspell/url@npm:8.13.3" @@ -1064,7 +951,7 @@ __metadata: "@types/eslint-plugin-markdown": "npm:^2.0.2" "@types/eslint__eslintrc": "npm:^2.1.2" "@types/eslint__js": "npm:^8.42.3" - "@types/node": "npm:^22.2.0" + "@types/node": "npm:^22.4.0" "@typescript-eslint/eslint-plugin": "npm:^8.1.0" "@typescript-eslint/parser": "npm:^8.1.0" "@typescript-eslint/utils": "npm:^8.1.0" @@ -1161,7 +1048,7 @@ __metadata: "@types/eslint": "npm:^9.6.0" "@types/eslint__eslintrc": "npm:^2.1.2" "@types/eslint__js": "npm:^8.42.3" - "@types/node": "npm:^22.2.0" + "@types/node": "npm:^22.4.0" "@typescript-eslint/eslint-plugin": "npm:^8.1.0" "@typescript-eslint/parser": "npm:^8.1.0" "@typescript-eslint/utils": "npm:^8.1.0" @@ -1269,9 +1156,9 @@ __metadata: version: 0.0.0-use.local resolution: "@kurone-kito/lints-config@workspace:." dependencies: - "@commitlint/cli": "npm:^19.3.0" + "@commitlint/cli": "npm:^19.4.0" "@commitlint/config-conventional": "npm:^19.2.2" - "@cspell/cspell-types": "npm:^8.13.1" + "@cspell/cspell-types": "npm:^8.13.3" "@kurone-kito/commitlint-config": "workspace:^" "@kurone-kito/cspell-config": "workspace:^" "@kurone-kito/eslint-config-base": "workspace:^" @@ -1284,13 +1171,13 @@ __metadata: "@typescript-eslint/parser": "npm:^8.1.0" "@yarnpkg/sdks": "npm:^3.2.0" concurrently: "npm:^8.2.2" - cspell: "npm:^8.13.1" + cspell: "npm:^8.13.3" eslint: "npm:^9.9.0" eslint-formatter-codeframe: "npm:^7.32.1" husky: "npm:^9.1.4" - lint-staged: "npm:^15.2.8" + lint-staged: "npm:^15.2.9" markdownlint-cli2: "npm:^0.13.0" - oxlint: "npm:^0.6.1" + oxlint: "npm:^0.7.2" prettier: "npm:^3.3.3" rimraf: "npm:^5.0.10" typescript: "npm:~5.5.4" @@ -1378,58 +1265,58 @@ __metadata: languageName: node linkType: hard -"@oxlint/darwin-arm64@npm:0.6.1": - version: 0.6.1 - resolution: "@oxlint/darwin-arm64@npm:0.6.1" +"@oxlint/darwin-arm64@npm:0.7.2": + version: 0.7.2 + resolution: "@oxlint/darwin-arm64@npm:0.7.2" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@oxlint/darwin-x64@npm:0.6.1": - version: 0.6.1 - resolution: "@oxlint/darwin-x64@npm:0.6.1" +"@oxlint/darwin-x64@npm:0.7.2": + version: 0.7.2 + resolution: "@oxlint/darwin-x64@npm:0.7.2" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@oxlint/linux-arm64-gnu@npm:0.6.1": - version: 0.6.1 - resolution: "@oxlint/linux-arm64-gnu@npm:0.6.1" +"@oxlint/linux-arm64-gnu@npm:0.7.2": + version: 0.7.2 + resolution: "@oxlint/linux-arm64-gnu@npm:0.7.2" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@oxlint/linux-arm64-musl@npm:0.6.1": - version: 0.6.1 - resolution: "@oxlint/linux-arm64-musl@npm:0.6.1" +"@oxlint/linux-arm64-musl@npm:0.7.2": + version: 0.7.2 + resolution: "@oxlint/linux-arm64-musl@npm:0.7.2" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@oxlint/linux-x64-gnu@npm:0.6.1": - version: 0.6.1 - resolution: "@oxlint/linux-x64-gnu@npm:0.6.1" +"@oxlint/linux-x64-gnu@npm:0.7.2": + version: 0.7.2 + resolution: "@oxlint/linux-x64-gnu@npm:0.7.2" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@oxlint/linux-x64-musl@npm:0.6.1": - version: 0.6.1 - resolution: "@oxlint/linux-x64-musl@npm:0.6.1" +"@oxlint/linux-x64-musl@npm:0.7.2": + version: 0.7.2 + resolution: "@oxlint/linux-x64-musl@npm:0.7.2" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard -"@oxlint/win32-arm64@npm:0.6.1": - version: 0.6.1 - resolution: "@oxlint/win32-arm64@npm:0.6.1" +"@oxlint/win32-arm64@npm:0.7.2": + version: 0.7.2 + resolution: "@oxlint/win32-arm64@npm:0.7.2" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@oxlint/win32-x64@npm:0.6.1": - version: 0.6.1 - resolution: "@oxlint/win32-x64@npm:0.6.1" +"@oxlint/win32-x64@npm:0.7.2": + version: 0.7.2 + resolution: "@oxlint/win32-x64@npm:0.7.2" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -1599,12 +1486,12 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:*, @types/node@npm:^22.2.0": - version: 22.2.0 - resolution: "@types/node@npm:22.2.0" +"@types/node@npm:*, @types/node@npm:^22.4.0": + version: 22.4.0 + resolution: "@types/node@npm:22.4.0" dependencies: - undici-types: "npm:~6.13.0" - checksum: 10/2957c5c81f1a07a1210f28382adae65c11070c301e395fa819448516f1a2a710054b29e0ec7d8e28624afbcd90dae810403a497109545dea835b554fc76edf6c + undici-types: "npm:~6.19.2" + checksum: 10/0b6ccc86856b8473f4d536491edc2ba21386d194219ee84024ef2b2ab054296f0b37a4f52719af797227132853cff065977992e353754a195cd86aea2e128cc7 languageName: node linkType: hard @@ -1632,16 +1519,16 @@ __metadata: linkType: hard "@types/unist@npm:*": - version: 3.0.2 - resolution: "@types/unist@npm:3.0.2" - checksum: 10/3d04d0be69316e5f14599a0d993a208606c12818cf631fd399243d1dc7a9bd8a3917d6066baa6abc290814afbd744621484756803c80cba892c39cd4b4a85616 + version: 3.0.3 + resolution: "@types/unist@npm:3.0.3" + checksum: 10/96e6453da9e075aaef1dc22482463898198acdc1eeb99b465e65e34303e2ec1e3b1ed4469a9118275ec284dc98019f63c3f5d49422f0e4ac707e5ab90fb3b71a languageName: node linkType: hard "@types/unist@npm:^2, @types/unist@npm:^2.0.2": - version: 2.0.10 - resolution: "@types/unist@npm:2.0.10" - checksum: 10/e2924e18dedf45f68a5c6ccd6015cd62f1643b1b43baac1854efa21ae9e70505db94290434a23da1137d9e31eb58e54ca175982005698ac37300a1c889f6c4aa + version: 2.0.11 + resolution: "@types/unist@npm:2.0.11" + checksum: 10/6d436e832bc35c6dde9f056ac515ebf2b3384a1d7f63679d12358766f9b313368077402e9c1126a14d827f10370a5485e628bf61aa91117cf4fc882423191a4e languageName: node linkType: hard @@ -2552,7 +2439,7 @@ __metadata: languageName: node linkType: hard -"comment-json@npm:^4.2.4, comment-json@npm:^4.2.5": +"comment-json@npm:^4.2.5": version: 4.2.5 resolution: "comment-json@npm:4.2.5" dependencies: @@ -2744,17 +2631,6 @@ __metadata: languageName: node linkType: hard -"cspell-config-lib@npm:8.13.1": - version: 8.13.1 - resolution: "cspell-config-lib@npm:8.13.1" - dependencies: - "@cspell/cspell-types": "npm:8.13.1" - comment-json: "npm:^4.2.4" - yaml: "npm:^2.5.0" - checksum: 10/5c3c91d49dcedb98ee6f4a7122265211157c643d8cadcc318e4a43cb9e74a73d500b6fe7ab13ee5129383392d157b5c61b845d313a9325a13b847fdf89ca286b - languageName: node - linkType: hard - "cspell-config-lib@npm:8.13.3": version: 8.13.3 resolution: "cspell-config-lib@npm:8.13.3" @@ -2766,18 +2642,6 @@ __metadata: languageName: node linkType: hard -"cspell-dictionary@npm:8.13.1": - version: 8.13.1 - resolution: "cspell-dictionary@npm:8.13.1" - dependencies: - "@cspell/cspell-pipe": "npm:8.13.1" - "@cspell/cspell-types": "npm:8.13.1" - cspell-trie-lib: "npm:8.13.1" - fast-equals: "npm:^5.0.1" - checksum: 10/adc584dbed4d7d006997755f0876fb05e078b99f9c6fce08efc9fd0535c905c7b60006cf8dd278490e609c7a2807cdf6f52b28dc40da3855929915849dffb4f0 - languageName: node - linkType: hard - "cspell-dictionary@npm:8.13.3": version: 8.13.3 resolution: "cspell-dictionary@npm:8.13.3" @@ -2790,27 +2654,17 @@ __metadata: languageName: node linkType: hard -"cspell-gitignore@npm:8.13.1": - version: 8.13.1 - resolution: "cspell-gitignore@npm:8.13.1" +"cspell-gitignore@npm:8.13.3": + version: 8.13.3 + resolution: "cspell-gitignore@npm:8.13.3" dependencies: - "@cspell/url": "npm:8.13.1" - cspell-glob: "npm:8.13.1" - cspell-io: "npm:8.13.1" + "@cspell/url": "npm:8.13.3" + cspell-glob: "npm:8.13.3" + cspell-io: "npm:8.13.3" find-up-simple: "npm:^1.0.0" bin: cspell-gitignore: bin.mjs - checksum: 10/d26d20b9a555ffbee0a0e35afa47131a070c34ded6a75f8c3601a8add7489e46a6b6a8cdd7b023396af7b3ab2f708bae8bff957a974e062c9acf1f403a743d0e - languageName: node - linkType: hard - -"cspell-glob@npm:8.13.1": - version: 8.13.1 - resolution: "cspell-glob@npm:8.13.1" - dependencies: - "@cspell/url": "npm:8.13.1" - micromatch: "npm:^4.0.7" - checksum: 10/4ef44a98e4816aad8c48a4c61938e3b643dc0c861f768c4479f5ef94a25defaeb7df4d135020f42e6dfccaec8967380dbb890f10c1c3c8d91eacb5182ce3fe94 + checksum: 10/357c74b2132e4679d9ab4191817dd3249ece650d6cb22d597d7f074d52c5b47a49bd18625f3cd1b3f68539ee339de868c06a600d60ddbe12180bc44347013882 languageName: node linkType: hard @@ -2824,18 +2678,6 @@ __metadata: languageName: node linkType: hard -"cspell-grammar@npm:8.13.1": - version: 8.13.1 - resolution: "cspell-grammar@npm:8.13.1" - dependencies: - "@cspell/cspell-pipe": "npm:8.13.1" - "@cspell/cspell-types": "npm:8.13.1" - bin: - cspell-grammar: bin.mjs - checksum: 10/fa388a926a38794ca2ebdf157b50d17b13c4f6997cf8e416530a7288f380d5e097e893a31b4465445d477306b91f806c101fb08edd47892e2ab8639b76f2cb85 - languageName: node - linkType: hard - "cspell-grammar@npm:8.13.3": version: 8.13.3 resolution: "cspell-grammar@npm:8.13.3" @@ -2848,16 +2690,6 @@ __metadata: languageName: node linkType: hard -"cspell-io@npm:8.13.1": - version: 8.13.1 - resolution: "cspell-io@npm:8.13.1" - dependencies: - "@cspell/cspell-service-bus": "npm:8.13.1" - "@cspell/url": "npm:8.13.1" - checksum: 10/48925b62ce8bd240cfba2042877312787ab548c42337df985a2fc04f45f8bc65df0526e996c0b99bca8158259a17ca4e6852ab90ae3ad2cc0e7a5a0db6df27b6 - languageName: node - linkType: hard - "cspell-io@npm:8.13.3": version: 8.13.3 resolution: "cspell-io@npm:8.13.3" @@ -2868,37 +2700,6 @@ __metadata: languageName: node linkType: hard -"cspell-lib@npm:8.13.1": - version: 8.13.1 - resolution: "cspell-lib@npm:8.13.1" - dependencies: - "@cspell/cspell-bundled-dicts": "npm:8.13.1" - "@cspell/cspell-pipe": "npm:8.13.1" - "@cspell/cspell-resolver": "npm:8.13.1" - "@cspell/cspell-types": "npm:8.13.1" - "@cspell/dynamic-import": "npm:8.13.1" - "@cspell/strong-weak-map": "npm:8.13.1" - "@cspell/url": "npm:8.13.1" - clear-module: "npm:^4.1.2" - comment-json: "npm:^4.2.4" - cspell-config-lib: "npm:8.13.1" - cspell-dictionary: "npm:8.13.1" - cspell-glob: "npm:8.13.1" - cspell-grammar: "npm:8.13.1" - cspell-io: "npm:8.13.1" - cspell-trie-lib: "npm:8.13.1" - env-paths: "npm:^3.0.0" - fast-equals: "npm:^5.0.1" - gensequence: "npm:^7.0.0" - import-fresh: "npm:^3.3.0" - resolve-from: "npm:^5.0.0" - vscode-languageserver-textdocument: "npm:^1.0.12" - vscode-uri: "npm:^3.0.8" - xdg-basedir: "npm:^5.1.0" - checksum: 10/f9af0db0c6e144896f40ba98920a1b44b891e1f9c6983fd04d1638bc6d17c69d35f74b4d1c043e90f9a14e7043ec28238e39b2537f13c2aab9505820562c1870 - languageName: node - linkType: hard - "cspell-lib@npm:8.13.3": version: 8.13.3 resolution: "cspell-lib@npm:8.13.3" @@ -2930,17 +2731,6 @@ __metadata: languageName: node linkType: hard -"cspell-trie-lib@npm:8.13.1": - version: 8.13.1 - resolution: "cspell-trie-lib@npm:8.13.1" - dependencies: - "@cspell/cspell-pipe": "npm:8.13.1" - "@cspell/cspell-types": "npm:8.13.1" - gensequence: "npm:^7.0.0" - checksum: 10/0ebaa5110d1e379c4028bc6574d20487d0f8ef854753f12f28661773f9944b108b6e6796be89ae5374c831772697633b3542bcd7f917019c3e0bed139396ef80 - languageName: node - linkType: hard - "cspell-trie-lib@npm:8.13.3": version: 8.13.3 resolution: "cspell-trie-lib@npm:8.13.3" @@ -2952,23 +2742,23 @@ __metadata: languageName: node linkType: hard -"cspell@npm:^8.13.1": - version: 8.13.1 - resolution: "cspell@npm:8.13.1" +"cspell@npm:^8.13.3": + version: 8.13.3 + resolution: "cspell@npm:8.13.3" dependencies: - "@cspell/cspell-json-reporter": "npm:8.13.1" - "@cspell/cspell-pipe": "npm:8.13.1" - "@cspell/cspell-types": "npm:8.13.1" - "@cspell/dynamic-import": "npm:8.13.1" - "@cspell/url": "npm:8.13.1" + "@cspell/cspell-json-reporter": "npm:8.13.3" + "@cspell/cspell-pipe": "npm:8.13.3" + "@cspell/cspell-types": "npm:8.13.3" + "@cspell/dynamic-import": "npm:8.13.3" + "@cspell/url": "npm:8.13.3" chalk: "npm:^5.3.0" chalk-template: "npm:^1.1.0" commander: "npm:^12.1.0" - cspell-dictionary: "npm:8.13.1" - cspell-gitignore: "npm:8.13.1" - cspell-glob: "npm:8.13.1" - cspell-io: "npm:8.13.1" - cspell-lib: "npm:8.13.1" + cspell-dictionary: "npm:8.13.3" + cspell-gitignore: "npm:8.13.3" + cspell-glob: "npm:8.13.3" + cspell-io: "npm:8.13.3" + cspell-lib: "npm:8.13.3" fast-glob: "npm:^3.3.2" fast-json-stable-stringify: "npm:^2.1.0" file-entry-cache: "npm:^9.0.0" @@ -2978,7 +2768,7 @@ __metadata: bin: cspell: bin.mjs cspell-esm: bin.mjs - checksum: 10/849693974a5fe5b7eb9dc548bd489746a96cc6a826a9eb2faf3ddae244d0d7c957789fa0f44cc496af2f3c91e02b151163f7b737fbce82c25de03332104fb38b + checksum: 10/cca4a09acc3fe8f04d1fd67379c09d485f7d615d19162f35eebaea3670a7271810418975287b03fe08ae8518326279b43a563692ba5df9bac21a666b40b08ad5 languageName: node linkType: hard @@ -4274,12 +4064,12 @@ __metadata: linkType: hard "foreground-child@npm:^3.1.0": - version: 3.2.1 - resolution: "foreground-child@npm:3.2.1" + version: 3.3.0 + resolution: "foreground-child@npm:3.3.0" dependencies: cross-spawn: "npm:^7.0.0" signal-exit: "npm:^4.0.1" - checksum: 10/77b33b3c438a499201727ca84de39a66350ccd54a8805df712773e963cefb5c4632dbc4386109e97a0df8fb1585aee95fa35acb07587e3e04cfacabfc0ae15dc + checksum: 10/e3a60480f3a09b12273ce2c5fcb9514d98dd0e528f58656a1b04680225f918d60a2f81f6a368f2f3b937fcee9cfc0cbf16f1ad9a0bc6a3a6e103a84c9a90087e languageName: node linkType: hard @@ -4711,9 +4501,9 @@ __metadata: linkType: hard "ignore@npm:^5.2.0, ignore@npm:^5.2.4, ignore@npm:^5.3.1": - version: 5.3.1 - resolution: "ignore@npm:5.3.1" - checksum: 10/0a884c2fbc8c316f0b9f92beaf84464253b73230a4d4d286697be45fca081199191ca33e1c2e82d9e5f851f5e9a48a78e25a35c951e7eb41e59f150db3530065 + version: 5.3.2 + resolution: "ignore@npm:5.3.2" + checksum: 10/cceb6a457000f8f6a50e1196429750d782afce5680dd878aa4221bd79972d68b3a55b4b1458fc682be978f4d3c6a249046aa0880637367216444ab7b014cfc98 languageName: node linkType: hard @@ -5360,9 +5150,9 @@ __metadata: languageName: node linkType: hard -"lint-staged@npm:^15.2.8": - version: 15.2.8 - resolution: "lint-staged@npm:15.2.8" +"lint-staged@npm:^15.2.9": + version: 15.2.9 + resolution: "lint-staged@npm:15.2.9" dependencies: chalk: "npm:~5.3.0" commander: "npm:~12.1.0" @@ -5376,7 +5166,7 @@ __metadata: yaml: "npm:~2.5.0" bin: lint-staged: bin/lint-staged.js - checksum: 10/cabeb0540775cafa71d8d55be74b6854f65f083efa43886a5b47bfad36d23bc302c70c67dc952303ffa646e5563cfb92005a5d5ea3944c71f7ee3ff5b7bdcd71 + checksum: 10/2f7342ca3fc7e2a8a0cc3db79ca8d2ad0269b98b13220f3a6745a514aacf1f83487a23a550569081ea962f9a576af7df8d687a8330a9c3c2c27348d5a4d5440e languageName: node linkType: hard @@ -5942,18 +5732,18 @@ __metadata: languageName: node linkType: hard -"oxlint@npm:^0.6.1": - version: 0.6.1 - resolution: "oxlint@npm:0.6.1" - dependencies: - "@oxlint/darwin-arm64": "npm:0.6.1" - "@oxlint/darwin-x64": "npm:0.6.1" - "@oxlint/linux-arm64-gnu": "npm:0.6.1" - "@oxlint/linux-arm64-musl": "npm:0.6.1" - "@oxlint/linux-x64-gnu": "npm:0.6.1" - "@oxlint/linux-x64-musl": "npm:0.6.1" - "@oxlint/win32-arm64": "npm:0.6.1" - "@oxlint/win32-x64": "npm:0.6.1" +"oxlint@npm:^0.7.2": + version: 0.7.2 + resolution: "oxlint@npm:0.7.2" + dependencies: + "@oxlint/darwin-arm64": "npm:0.7.2" + "@oxlint/darwin-x64": "npm:0.7.2" + "@oxlint/linux-arm64-gnu": "npm:0.7.2" + "@oxlint/linux-arm64-musl": "npm:0.7.2" + "@oxlint/linux-x64-gnu": "npm:0.7.2" + "@oxlint/linux-x64-musl": "npm:0.7.2" + "@oxlint/win32-arm64": "npm:0.7.2" + "@oxlint/win32-x64": "npm:0.7.2" dependenciesMeta: "@oxlint/darwin-arm64": optional: true @@ -5973,7 +5763,7 @@ __metadata: optional: true bin: oxlint: bin/oxlint - checksum: 10/c9adc1acc379adaab53d65489d8777a366b53a29641ff17ff478ea91bc3e209be5d7705447b2fbe4d773f08b427685e98ff6353bd877f0242c097bd3061f9193 + checksum: 10/a5bb87f60c48f6e49b2665249d61b0b5a870f7a9df4dbdf44a680da3d0eb0547baf2ee559101616bc4bc23098435913de36a237cf8ffc6849687716ec2a922a0 languageName: node linkType: hard @@ -7237,10 +7027,10 @@ __metadata: languageName: node linkType: hard -"undici-types@npm:~6.13.0": - version: 6.13.0 - resolution: "undici-types@npm:6.13.0" - checksum: 10/da52e37cbc6da3a75da86fa08dd795ca8924430deb91005eb884b840e46e19013ccd4c1c289f70018e8cf0c338add24a500e7c3acfcd49b1ffb27ff9f91e38b9 +"undici-types@npm:~6.19.2": + version: 6.19.6 + resolution: "undici-types@npm:6.19.6" + checksum: 10/0ea9bc25762a86597d095b3772f6cec0bcabb796c339f7dfa2bd601c745a480289eb2939848dc285a56d4f94f50c475868160d8d6d3f54e823f1faf7ea9e9468 languageName: node linkType: hard From aed323564b2294523d8ffa6ea5fde5a4233c2c2a Mon Sep 17 00:00:00 2001 From: kurone-kito Date: Fri, 16 Aug 2024 23:54:00 +0900 Subject: [PATCH 10/10] 0.15.0 --- package.json | 2 +- packages/commitlint-config/package.json | 2 +- packages/cspell-config/package.json | 2 +- packages/eslint-config-base/package.json | 2 +- packages/eslint-config-react/package.json | 2 +- packages/lint-staged-config/package.json | 2 +- packages/markdownlint-config/package.json | 2 +- packages/prettier-config/package.json | 2 +- packages/typescript-config/package.json | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 37d763c..6522d4d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kurone-kito/lints-config", - "version": "0.14.0", + "version": "0.15.0", "private": true, "description": "My configuration for the ESLint / Prettier / TypeScript", "keywords": [ diff --git a/packages/commitlint-config/package.json b/packages/commitlint-config/package.json index b422999..37f0f49 100644 --- a/packages/commitlint-config/package.json +++ b/packages/commitlint-config/package.json @@ -1,6 +1,6 @@ { "name": "@kurone-kito/commitlint-config", - "version": "0.14.0", + "version": "0.15.0", "description": "My commitlint configuration for general projects", "keywords": [ "commitlint", diff --git a/packages/cspell-config/package.json b/packages/cspell-config/package.json index ef1915e..5084292 100644 --- a/packages/cspell-config/package.json +++ b/packages/cspell-config/package.json @@ -1,6 +1,6 @@ { "name": "@kurone-kito/cspell-config", - "version": "0.14.0", + "version": "0.15.0", "description": "My CSpell configuration for general projects", "keywords": [ "config", diff --git a/packages/eslint-config-base/package.json b/packages/eslint-config-base/package.json index 939f351..59a2254 100644 --- a/packages/eslint-config-base/package.json +++ b/packages/eslint-config-base/package.json @@ -1,6 +1,6 @@ { "name": "@kurone-kito/eslint-config-base", - "version": "0.14.0", + "version": "0.15.0", "description": "My ESLint configuration for general Node.js projects", "keywords": [ "config", diff --git a/packages/eslint-config-react/package.json b/packages/eslint-config-react/package.json index e26537a..659854b 100644 --- a/packages/eslint-config-react/package.json +++ b/packages/eslint-config-react/package.json @@ -1,6 +1,6 @@ { "name": "@kurone-kito/eslint-config-react", - "version": "0.14.0", + "version": "0.15.0", "description": "My ESLint configuration for React projects", "keywords": [ "config", diff --git a/packages/lint-staged-config/package.json b/packages/lint-staged-config/package.json index b0c61fc..50fd2dd 100644 --- a/packages/lint-staged-config/package.json +++ b/packages/lint-staged-config/package.json @@ -1,6 +1,6 @@ { "name": "@kurone-kito/lint-staged-config", - "version": "0.14.0", + "version": "0.15.0", "description": "My lint-staged configuration for general projects", "keywords": [ "config", diff --git a/packages/markdownlint-config/package.json b/packages/markdownlint-config/package.json index 7c3cbdf..2ea6fd7 100644 --- a/packages/markdownlint-config/package.json +++ b/packages/markdownlint-config/package.json @@ -1,6 +1,6 @@ { "name": "@kurone-kito/markdownlint-config", - "version": "0.14.0", + "version": "0.15.0", "description": "My Markdownlint configuration for general projects", "keywords": [ "config", diff --git a/packages/prettier-config/package.json b/packages/prettier-config/package.json index c621d9e..f2b1713 100644 --- a/packages/prettier-config/package.json +++ b/packages/prettier-config/package.json @@ -1,6 +1,6 @@ { "name": "@kurone-kito/prettier-config", - "version": "0.14.0", + "version": "0.15.0", "description": "My Prettier configuration for general projects", "keywords": [ "config", diff --git a/packages/typescript-config/package.json b/packages/typescript-config/package.json index 18227f5..3aa2b79 100644 --- a/packages/typescript-config/package.json +++ b/packages/typescript-config/package.json @@ -1,6 +1,6 @@ { "name": "@kurone-kito/typescript-config", - "version": "0.14.0", + "version": "0.15.0", "description": "My TypeScript configuration for general projects", "keywords": [ "config",