Skip to content

Commit cdb0093

Browse files
committed
feat: use flat eslint config
1 parent 319c066 commit cdb0093

File tree

5 files changed

+47
-6
lines changed

5 files changed

+47
-6
lines changed

.eslintrc

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

.vscode/settings.json

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22
"typescript.tsdk": "node_modules/typescript/lib",
33
"prettier.enable": false,
44
"editor.formatOnSave": false,
5+
// Enable the ESlint flat config support
6+
"eslint.experimental.useFlatConfig": true,
57
"editor.codeActionsOnSave": {
6-
"source.fixAll.eslint": true,
7-
"source.organizeImports": false
8+
"source.fixAll.eslint": "explicit",
9+
"source.organizeImports": "never"
810
},
11+
// Silent the stylistic rules in you IDE, but still auto fix them
912
"eslint.validate": [
1013
"javascript",
1114
"javascriptreact",
@@ -18,6 +21,44 @@
1821
"jsonc",
1922
"yaml"
2023
],
24+
"eslint.rules.customizations": [
25+
{
26+
"rule": "style/*",
27+
"severity": "off"
28+
},
29+
{
30+
"rule": "*-indent",
31+
"severity": "off"
32+
},
33+
{
34+
"rule": "*-spacing",
35+
"severity": "off"
36+
},
37+
{
38+
"rule": "*-spaces",
39+
"severity": "off"
40+
},
41+
{
42+
"rule": "*-order",
43+
"severity": "off"
44+
},
45+
{
46+
"rule": "*-dangle",
47+
"severity": "off"
48+
},
49+
{
50+
"rule": "*-newline",
51+
"severity": "off"
52+
},
53+
{
54+
"rule": "*quotes",
55+
"severity": "off"
56+
},
57+
{
58+
"rule": "*semi",
59+
"severity": "off"
60+
}
61+
],
2162
"cSpell.words": [
2263
"antfu",
2364
"booleanish",

bun.lockb

-49.7 KB
Binary file not shown.

eslint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import antfu from '@antfu/eslint-config'
2+
3+
export default antfu()

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"typecheck": "tsc --noEmit"
4646
},
4747
"devDependencies": {
48-
"@ow3/eslint-config": "^0.47.3",
48+
"@antfu/eslint-config": "^2.1.0",
4949
"@types/node": "^20.9.4",
5050
"bun-types": "^1.0.14",
5151
"bumpp": "^9.2.0",

0 commit comments

Comments
 (0)