Skip to content

Commit 93e3e6e

Browse files
committed
chore: update vscode settings
1 parent 8bb9779 commit 93e3e6e

File tree

1 file changed

+79
-34
lines changed

1 file changed

+79
-34
lines changed

.vscode/settings.json

+79-34
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,85 @@
11
{
2-
"typescript.tsdk": "node_modules/typescript/lib",
2+
// Disable the default formatter, use eslint instead
33
"prettier.enable": false,
4-
"editor.defaultFormatter": "biomejs.biome",
5-
"editor.formatOnSave": true,
4+
"editor.formatOnSave": false,
5+
// Auto fix
66
"editor.codeActionsOnSave": {
7-
"quickfix.biome": "explicit",
8-
"source.organizeImports.biome": "explicit"
9-
},
10-
// JSON
11-
"[jsonc]": {
12-
"editor.defaultFormatter": "biomejs.biome"
13-
},
14-
15-
// Markdown
16-
"[markdown]": {
17-
"editor.defaultFormatter": "DavidAnson.vscode-markdownlint",
18-
"editor.formatOnSave": true
19-
},
20-
21-
"search.exclude": {
22-
"**/node_modules": true,
23-
"**/cdk.out": true,
24-
"**/dist": true,
25-
"CHANGELOG.md": true
7+
"source.fixAll.eslint": "explicit",
8+
"source.organizeImports": "never"
269
},
10+
// Silent the stylistic rules in you IDE, but still auto fix them
11+
"eslint.rules.customizations": [
12+
{
13+
"rule": "style/*",
14+
"severity": "off",
15+
"fixable": true
16+
},
17+
{
18+
"rule": "format/*",
19+
"severity": "off",
20+
"fixable": true
21+
},
22+
{
23+
"rule": "*-indent",
24+
"severity": "off",
25+
"fixable": true
26+
},
27+
{
28+
"rule": "*-spacing",
29+
"severity": "off",
30+
"fixable": true
31+
},
32+
{
33+
"rule": "*-spaces",
34+
"severity": "off",
35+
"fixable": true
36+
},
37+
{
38+
"rule": "*-order",
39+
"severity": "off",
40+
"fixable": true
41+
},
42+
{
43+
"rule": "*-dangle",
44+
"severity": "off",
45+
"fixable": true
46+
},
47+
{
48+
"rule": "*-newline",
49+
"severity": "off",
50+
"fixable": true
51+
},
52+
{
53+
"rule": "*quotes",
54+
"severity": "off",
55+
"fixable": true
56+
},
57+
{
58+
"rule": "*semi",
59+
"severity": "off",
60+
"fixable": true
61+
}
62+
],
2763

28-
"cSpell.ignorePaths": ["node_modules"],
29-
"cSpell.dictionaries": ["custom-dictionary"],
30-
"cSpell.diagnosticLevel": "Hint",
31-
"cSpell.customDictionaries": {
32-
"bun-plugin-env": {
33-
"name": "custom-dictionary",
34-
"path": "./.vscode/dictionary.txt",
35-
"scope": "user",
36-
"addWords": true
37-
},
38-
"custom": true // enable the `custom` dictionary
39-
}
64+
// Enable eslint for all supported languages
65+
"eslint.validate": [
66+
"javascript",
67+
"typescript",
68+
"vue",
69+
"html",
70+
"markdown",
71+
"json",
72+
"jsonc",
73+
"yaml",
74+
"toml",
75+
"xml"
76+
],
77+
"cSpell.words": [
78+
"bumpp",
79+
"bunx",
80+
"slidev",
81+
"stacksjs",
82+
"typecheck",
83+
"unocss"
84+
]
4085
}

0 commit comments

Comments
 (0)