Skip to content

Commit 30f3978

Browse files
committed
chore: update eslint 10
1 parent d938416 commit 30f3978

3 files changed

Lines changed: 41 additions & 29 deletions

File tree

eslint.config.js

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,29 @@
11
import eslint from '@eslint/js'
2-
import globals from 'globals'
2+
import { defineConfig, globalIgnores } from 'eslint/config'
33
import tseslint from 'typescript-eslint'
44
import eslintConfigPrettier from 'eslint-config-prettier'
55

6-
export default tseslint.config(
7-
{
8-
ignores: [
9-
'**/.*',
10-
'**/node_modules/*',
11-
'dist/*',
6+
export default defineConfig(
7+
globalIgnores([
8+
'**/.*',
9+
'**/node_modules/*',
10+
'dist/*',
1211

13-
// Ignore files for PNPM, NPM and YARN
14-
'**/pnpm-lock.yaml',
15-
'**/package-lock.json',
16-
'**/yarn.lock',
12+
// Ignore files for PNPM, NPM and YARN
13+
'**/pnpm-lock.yaml',
14+
'**/package-lock.json',
15+
'**/yarn.lock',
1716

18-
// Ignore config type check
19-
'**/*.config.js',
20-
'**/*.config.ts',
21-
],
22-
},
17+
// Ignore config type check
18+
'**/*.config.js',
19+
'**/*.config.ts',
20+
]),
2321
eslint.configs.recommended,
24-
...tseslint.configs.recommendedTypeChecked,
25-
...tseslint.configs.strictTypeChecked,
26-
...tseslint.configs.stylisticTypeChecked,
22+
tseslint.configs.strictTypeChecked,
23+
tseslint.configs.stylisticTypeChecked,
2724
eslintConfigPrettier,
2825
{
29-
plugins: {
30-
'@typescript-eslint': tseslint.plugin,
31-
},
3226
languageOptions: {
33-
parser: tseslint.parser,
3427
parserOptions: {
3528
project: true,
3629
tsconfigRootDir: import.meta.dirname,

package-lock.json

Lines changed: 23 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,14 @@
3232
"@types/node": "^25.9.0"
3333
},
3434
"devDependencies": {
35+
"@eslint/js": "^10.0.1",
3536
"@tsconfig/recommended": "^1.0.7",
36-
"@typescript-eslint/eslint-plugin": "^8.59.2",
37-
"@typescript-eslint/parser": "^8.62.1",
3837
"@vitest/coverage-v8": "^4.1.6",
3938
"esbuild": "^0.28.1",
4039
"eslint": "^10.6.0",
4140
"eslint-config-prettier": "^10.1.8",
4241
"fetch-mock": "^12.6.0",
43-
"typescript": "^6.0.3",
42+
"typescript": "~6.0.3",
4443
"typescript-eslint": "^8.62.1",
4544
"vitest": "^4.1.6"
4645
},

0 commit comments

Comments
 (0)