|
1 | 1 | { |
| 2 | + // Disable the default formatter, use eslint instead |
2 | 3 | "prettier.enable": false, |
3 | 4 | "editor.formatOnSave": false, |
| 5 | + |
| 6 | + // Auto fix |
4 | 7 | "editor.codeActionsOnSave": { |
5 | 8 | "source.fixAll.eslint": "explicit", |
6 | 9 | "source.organizeImports": "never" |
7 | 10 | }, |
8 | | - // Enable the ESlint flat config support |
9 | | - "eslint.experimental.useFlatConfig": true, |
10 | | - // The following is optional. |
11 | | - // It's better to put under project setting `.vscode/settings.json` |
12 | | - // to avoid conflicts with working with different eslint configs |
13 | | - // that does not support all formats. |
| 11 | + |
| 12 | + // Silent the stylistic rules in you IDE, but still auto fix them |
| 13 | + "eslint.rules.customizations": [ |
| 14 | + { "rule": "style/*", "severity": "off" }, |
| 15 | + { "rule": "format/*", "severity": "off" }, |
| 16 | + { "rule": "*-indent", "severity": "off" }, |
| 17 | + { "rule": "*-spacing", "severity": "off" }, |
| 18 | + { "rule": "*-spaces", "severity": "off" }, |
| 19 | + { "rule": "*-order", "severity": "off" }, |
| 20 | + { "rule": "*-dangle", "severity": "off" }, |
| 21 | + { "rule": "*-newline", "severity": "off" }, |
| 22 | + { "rule": "*quotes", "severity": "off" }, |
| 23 | + { "rule": "*semi", "severity": "off" } |
| 24 | + ], |
| 25 | + |
| 26 | + // Enable eslint for all supported languages |
14 | 27 | "eslint.validate": [ |
15 | 28 | "javascript", |
16 | 29 | "javascriptreact", |
|
21 | 34 | "markdown", |
22 | 35 | "json", |
23 | 36 | "jsonc", |
24 | | - "yaml" |
| 37 | + "yaml", |
| 38 | + "toml", |
| 39 | + "xml", |
| 40 | + "gql", |
| 41 | + "graphql", |
| 42 | + "astro", |
| 43 | + "css", |
| 44 | + "less", |
| 45 | + "scss", |
| 46 | + "pcss", |
| 47 | + "postcss" |
25 | 48 | ], |
26 | 49 | "typescript.tsdk": "node_modules/typescript/lib" |
27 | 50 | } |
0 commit comments