From a2d5f7cc9a6d1000746435b1a0129bb093997a01 Mon Sep 17 00:00:00 2001 From: zanminkian Date: Tue, 19 Nov 2024 10:35:05 +0000 Subject: [PATCH] chore: require eslint >= 8.57.1 --- .changeset/red-carrots-carry.md | 6 ++++++ packages/deprecated-eslint-config/package.json | 3 +++ packages/eslint-config/package.json | 3 +++ packages/eslint-config/src/config/gitignore.ts | 3 +-- packages/eslint-config/src/eslint.config.spec.ts | 1 + 5 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 .changeset/red-carrots-carry.md diff --git a/.changeset/red-carrots-carry.md b/.changeset/red-carrots-carry.md new file mode 100644 index 00000000..b8bf8fb9 --- /dev/null +++ b/.changeset/red-carrots-carry.md @@ -0,0 +1,6 @@ +--- +"@git-validator/eslint-config": minor +"@fenge/eslint-config": minor +--- + +chore: require eslint >= 8.57.1 diff --git a/packages/deprecated-eslint-config/package.json b/packages/deprecated-eslint-config/package.json index 92d06879..71c4dd9c 100644 --- a/packages/deprecated-eslint-config/package.json +++ b/packages/deprecated-eslint-config/package.json @@ -25,5 +25,8 @@ }, "dependencies": { "@fenge/eslint-config": "workspace:*" + }, + "peerDependencies": { + "eslint": ">=8.57.1" } } diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index a6a6d28b..b4e0f745 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -55,5 +55,8 @@ "eslint": "8.57.1", "eslint-config-prettier": "9.1.0", "prettier": "3.3.3" + }, + "peerDependencies": { + "eslint": ">=8.57.1" } } diff --git a/packages/eslint-config/src/config/gitignore.ts b/packages/eslint-config/src/config/gitignore.ts index 7874723a..b2a42b31 100644 --- a/packages/eslint-config/src/config/gitignore.ts +++ b/packages/eslint-config/src/config/gitignore.ts @@ -16,8 +16,7 @@ export function gitignore() { // https://eslint.org/docs/latest/use/configure/configuration-files#specifying-files-and-ignores return [ { - // TODO waiting for eslint 9 - // name: 'fenge/ignore', + name: "fenge/gitignore", ignores: stdout.split("\n").filter(Boolean), }, ] as const; diff --git a/packages/eslint-config/src/eslint.config.spec.ts b/packages/eslint-config/src/eslint.config.spec.ts index 9532a073..d852727b 100644 --- a/packages/eslint-config/src/eslint.config.spec.ts +++ b/packages/eslint-config/src/eslint.config.spec.ts @@ -21,6 +21,7 @@ await describe("eslint.config", async () => { }); await it("should not contain deprecated rules", async () => { + // https://eslint.org/blog/2023/10/deprecating-formatting-rules/#the-deprecated-rules const deprecatedRules = [ "array-bracket-newline", "array-bracket-spacing",