1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
| {
| // Disable the default formatter, use eslint instead
| "prettier.enable": false,
| "editor.formatOnSave": false,
|
| // Auto fix
| "editor.codeActionsOnSave": {
| "source.fixAll.eslint": "explicit",
| "source.organizeImports": "never"
| },
|
| // Silent the stylistic rules in you IDE, but still auto fix them
| "eslint.rules.customizations": [
| { "rule": "style/*", "severity": "off", "fixable": true },
| { "rule": "format/*", "severity": "off", "fixable": true },
| { "rule": "*-indent", "severity": "off", "fixable": true },
| { "rule": "*-spacing", "severity": "off", "fixable": true },
| { "rule": "*-spaces", "severity": "off", "fixable": true },
| { "rule": "*-order", "severity": "off", "fixable": true },
| { "rule": "*-dangle", "severity": "off", "fixable": true },
| { "rule": "*-newline", "severity": "off", "fixable": true },
| { "rule": "*quotes", "severity": "off", "fixable": true },
| { "rule": "*semi", "severity": "off", "fixable": true }
| ],
|
| // Enable eslint for all supported languages
| "eslint.validate": [
| "javascript",
| "javascriptreact",
| "typescript",
| "typescriptreact",
| "vue",
| "html",
| "markdown",
| "json",
| "jsonc",
| "yaml",
| "toml",
| "xml",
| "gql",
| "graphql",
| "astro",
| "svelte",
| "css",
| "less",
| "scss",
| "pcss",
| "postcss"
| ],
|
| // Enable file nesting
| "explorer.fileNesting.enabled": true,
| "explorer.fileNesting.patterns": {
| "vite.config.*": "pages.config.*, manifest.config.*, uno.config.*, volar.config.*, *.env, .env.*, alova.config.*"
| }
| }
|
|