Skip to content

Commit 4e7ed91

Browse files
committed
refactor: upgrade eslint config
1 parent bf86c48 commit 4e7ed91

File tree

8 files changed

+219
-231
lines changed

8 files changed

+219
-231
lines changed

.eslintignore

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

.prettierignore

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

.prettierrc

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

.vscode/settings.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
22
"editor.formatOnSave": true,
3-
"eslint.experimental.useFlatConfig": true,
4-
"eslint.options": {
5-
"overrideConfigFile": "./eslint.config.mjs"
6-
}
3+
"eslint.experimental.useFlatConfig": true
74
}

eslint.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
const { sxzz } = require('@sxzz/eslint-config')
2+
module.exports = sxzz()

eslint.config.mjs

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

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"access": "public"
6767
},
6868
"scripts": {
69-
"lint": "ESLINT_USE_FLAT_CONFIG=true eslint -c eslint.config.mjs --cache .",
69+
"lint": "eslint --cache .",
7070
"lint:fix": "pnpm run lint --fix",
7171
"build": "tsup && tsx scripts/postbuild.mts",
7272
"dev": "tsup --watch",
@@ -81,12 +81,13 @@
8181
},
8282
"devDependencies": {
8383
"@babel/types": "^7.22.5",
84-
"@sxzz/eslint-config": "^3.0.0",
84+
"@sxzz/eslint-config": "^3.1.0",
85+
"@sxzz/prettier-config": "^1.0.2",
8586
"@types/node": "^20.3.1",
8687
"@vue-macros/test-utils": "^1.0.5",
8788
"bumpp": "^9.1.1",
8889
"eslint": "^8.43.0",
89-
"eslint-define-config": "^1.20.0",
90+
"eslint-define-config": "^1.21.0",
9091
"fast-glob": "^3.2.12",
9192
"prettier": "^2.8.8",
9293
"tsup": "^7.0.0",
@@ -98,5 +99,6 @@
9899
},
99100
"engines": {
100101
"node": ">=16.14.0"
101-
}
102+
},
103+
"prettier": "@sxzz/prettier-config"
102104
}

0 commit comments

Comments
 (0)