Skip to content

Commit b2fb1b3

Browse files
committedAug 29, 2024··
feat!: require ESLint v9.5+
1 parent 91cc1bf commit b2fb1b3

File tree

5 files changed

+22
-10
lines changed

5 files changed

+22
-10
lines changed
 

Diff for: ‎README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@
1414
- Single quotes, no semi
1515
- Using [ESLint Stylistic](https://github.com/eslint-stylistic/eslint-stylistic)
1616
- Respects `.gitignore` by default
17-
- Supports ESLint v9 or v8.50.0+
17+
- Requires ESLint v9.5.0+
1818

1919
> [!IMPORTANT]
2020
> Since v1.0.0, this config is rewritten to the new [ESLint Flat config](https://eslint.org/docs/latest/use/configure/configuration-files-new), check the [release note](https://github.com/antfu/eslint-config/releases/tag/v1.0.0) for more details.
21+
>
22+
> Since v3.0.0, ESLint v9.5.0+ is now required.
2123
2224
## Usage
2325

Diff for: ‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"@prettier/plugin-xml": "^3.4.1",
4444
"@unocss/eslint-plugin": ">=0.50.0",
4545
"astro-eslint-parser": "^1.0.2",
46-
"eslint": ">=8.40.0",
46+
"eslint": "^9.5.0",
4747
"eslint-plugin-astro": "^1.2.0",
4848
"eslint-plugin-format": ">=0.1.0",
4949
"eslint-plugin-react-hooks": "^4.6.0",
@@ -103,7 +103,7 @@
103103
"@typescript-eslint/eslint-plugin": "^8.3.0",
104104
"@typescript-eslint/parser": "^8.3.0",
105105
"@vitest/eslint-plugin": "^1.1.0",
106-
"eslint-config-flat-gitignore": "^0.2.0",
106+
"eslint-config-flat-gitignore": "^0.3.0",
107107
"eslint-flat-config-utils": "^0.3.1",
108108
"eslint-merge-processors": "^0.1.0",
109109
"eslint-plugin-antfu": "^2.3.6",

Diff for: ‎pnpm-lock.yaml

+8-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: ‎src/configs/ignores.ts

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export async function ignores(userIgnores: string[] = []): Promise<TypedFlatConf
88
...GLOB_EXCLUDE,
99
...userIgnores,
1010
],
11+
name: 'antfu/ignores',
1112
},
1213
]
1314
}

Diff for: ‎src/factory.ts

+8-2
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,16 @@ export function antfu(
116116

117117
if (enableGitignore) {
118118
if (typeof enableGitignore !== 'boolean') {
119-
configs.push(interopDefault(import('eslint-config-flat-gitignore')).then(r => [r(enableGitignore)]))
119+
configs.push(interopDefault(import('eslint-config-flat-gitignore')).then(r => [r({
120+
name: 'antfu/gitignore',
121+
...enableGitignore,
122+
})]))
120123
}
121124
else {
122-
configs.push(interopDefault(import('eslint-config-flat-gitignore')).then(r => [r({ strict: false })]))
125+
configs.push(interopDefault(import('eslint-config-flat-gitignore')).then(r => [r({
126+
name: 'antfu/gitignore',
127+
strict: false,
128+
})]))
123129
}
124130
}
125131

0 commit comments

Comments
 (0)
Please sign in to comment.