Skip to content

Commit 4666974

Browse files
committed
feat: migrate to ESLint version 9
1 parent bdb0a45 commit 4666974

File tree

8 files changed

+1241
-748
lines changed

8 files changed

+1241
-748
lines changed

.eslintignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

.eslintrc

Lines changed: 0 additions & 9 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@
88
"typescript.tsdk": "node_modules/typescript/lib",
99
"typescript.enablePromptUseWorkspaceTsdk": true,
1010
"editor.codeActionsOnSave": {
11-
"source.addMissingImports": true,
12-
"source.fixAll.eslint": true,
13-
// Disable this because it will conflict with ESLint based import organizing.
14-
"source.organizeImports": false
11+
"source.addMissingImports": "explicit",
12+
"source.fixAll.eslint": "explicit",
13+
"source.organizeImports": "never"
1514
}
1615
}

eslint.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import configPrisma from 'eslint-config-prisma'
2+
import tsEslint from 'typescript-eslint'
3+
4+
export default tsEslint.config(...configPrisma, {
5+
ignores: [`build`, 'eslint.config.js'],
6+
})

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"bootstrap": "tsx scripts/bootstrap.ts",
3131
"build:toc": "markdown-toc README.md -i --maxdepth 4 && dprint fmt README.md",
3232
"format": "dprint fmt",
33-
"lint": "eslint . --ext .ts,.tsx --fix",
33+
"lint": "eslint . --fix",
3434
"dev": "pnpm clean && tsc --build --watch tsconfig.cjs.json tsconfig.esm.json",
3535
"build": "pnpm clean && pnpm build:cjs && pnpm build:esm",
3636
"build:cjs": "tsc --project tsconfig.cjs.json && echo '{\"type\":\"commonjs\"}' > build/cjs/package.json",
@@ -40,32 +40,32 @@
4040
"prepack": "pnpm build",
4141
"check": "pnpm check:format && pnpm check:lint && pnpm check:types",
4242
"check:format": "dprint check",
43-
"check:lint": "eslint . --ext .ts,.tsx --max-warnings 0",
43+
"check:lint": "eslint . --max-warnings 0",
4444
"check:types": "tsc --noEmit"
4545
},
4646
"devDependencies": {
47-
"@tsconfig/node18": "2.0.1",
48-
"@tsconfig/recommended": "1.0.2",
49-
"@tsconfig/strictest": "2.0.1",
50-
"@types/inquirer": "9.0.3",
51-
"@types/node": "20.3.1",
52-
"@typescript-eslint/eslint-plugin": "5.60.1",
53-
"@typescript-eslint/parser": "5.60.1",
47+
"@tsconfig/node18": "18.2.4",
48+
"@tsconfig/recommended": "1.0.6",
49+
"@tsconfig/strictest": "2.0.5",
50+
"@types/inquirer": "9.0.7",
51+
"@types/node": "20.12.7",
52+
"@typescript-eslint/eslint-plugin": "7.6.0",
53+
"@typescript-eslint/parser": "7.6.0",
5454
"dripip": "0.10.0",
55-
"eslint": "8.43.0",
56-
"eslint-config-prisma": "0.1.0",
57-
"eslint-plugin-deprecation": "1.4.1",
55+
"eslint": "9.0.0",
56+
"eslint-config-prisma": "0.5.2",
57+
"eslint-plugin-deprecation": "2.0.0",
5858
"eslint-plugin-only-warn": "1.1.0",
5959
"eslint-plugin-prefer-arrow": "1.2.3",
6060
"eslint-plugin-tsdoc": "0.2.17",
61-
"execa": "7.1.1",
62-
"fast-glob": "3.2.12",
61+
"execa": "8.0.1",
62+
"fast-glob": "3.3.2",
6363
"floggy": "0.3.5",
6464
"fs-jetpack": "5.1.0",
65-
"inquirer": "9.2.7",
65+
"inquirer": "9.2.17",
6666
"markdown-toc": "1.2.0",
67-
"tsx": "3.12.7",
68-
"typescript": "5.1.3",
69-
"vitest": "0.32.2"
67+
"tsx": "4.7.2",
68+
"typescript": "5.4.5",
69+
"vitest": "1.4.0"
7070
}
7171
}

0 commit comments

Comments
 (0)