|
1 | 1 | { |
2 | | - // Enable the ESlint flat config support |
3 | | - "eslint.experimental.useFlatConfig": true, |
4 | 2 | // Disable the default formatter, use eslint instead |
5 | 3 | "prettier.enable": false, |
6 | 4 | "editor.formatOnSave": false, |
| 5 | + |
7 | 6 | // Auto fix |
8 | 7 | "editor.codeActionsOnSave": { |
9 | 8 | "source.fixAll.eslint": "explicit", |
10 | 9 | "source.organizeImports": "never" |
11 | 10 | }, |
| 11 | + |
12 | 12 | // Silent the stylistic rules in you IDE, but still auto fix them |
13 | 13 | "eslint.rules.customizations": [ |
14 | | - { |
15 | | - "rule": "style/*", |
16 | | - "severity": "off" |
17 | | - }, |
18 | | - { |
19 | | - "rule": "format/*", |
20 | | - "severity": "off" |
21 | | - }, |
22 | | - { |
23 | | - "rule": "*-indent", |
24 | | - "severity": "off" |
25 | | - }, |
26 | | - { |
27 | | - "rule": "*-spacing", |
28 | | - "severity": "off" |
29 | | - }, |
30 | | - { |
31 | | - "rule": "*-spaces", |
32 | | - "severity": "off" |
33 | | - }, |
34 | | - { |
35 | | - "rule": "*-order", |
36 | | - "severity": "off" |
37 | | - }, |
38 | | - { |
39 | | - "rule": "*-dangle", |
40 | | - "severity": "off" |
41 | | - }, |
42 | | - { |
43 | | - "rule": "*-newline", |
44 | | - "severity": "off" |
45 | | - }, |
46 | | - { |
47 | | - "rule": "*quotes", |
48 | | - "severity": "off" |
49 | | - }, |
50 | | - { |
51 | | - "rule": "*semi", |
52 | | - "severity": "off" |
53 | | - } |
| 14 | + { "rule": "style/*", "severity": "off", "fixable": true }, |
| 15 | + { "rule": "format/*", "severity": "off", "fixable": true }, |
| 16 | + { "rule": "*-indent", "severity": "off", "fixable": true }, |
| 17 | + { "rule": "*-spacing", "severity": "off", "fixable": true }, |
| 18 | + { "rule": "*-spaces", "severity": "off", "fixable": true }, |
| 19 | + { "rule": "*-order", "severity": "off", "fixable": true }, |
| 20 | + { "rule": "*-dangle", "severity": "off", "fixable": true }, |
| 21 | + { "rule": "*-newline", "severity": "off", "fixable": true }, |
| 22 | + { "rule": "*quotes", "severity": "off", "fixable": true }, |
| 23 | + { "rule": "*semi", "severity": "off", "fixable": true } |
54 | 24 | ], |
| 25 | + |
55 | 26 | // Enable eslint for all supported languages |
56 | 27 | "eslint.validate": [ |
57 | 28 | "javascript", |
|
65 | 36 | "jsonc", |
66 | 37 | "yaml", |
67 | 38 | "toml", |
68 | | - "astro" |
| 39 | + "xml", |
| 40 | + "gql", |
| 41 | + "graphql", |
| 42 | + "astro", |
| 43 | + "svelte", |
| 44 | + "css", |
| 45 | + "less", |
| 46 | + "scss", |
| 47 | + "pcss", |
| 48 | + "postcss" |
69 | 49 | ] |
70 | 50 | } |
0 commit comments