|
1 | 1 | {
|
2 | 2 | "editor.tabSize": 2,
|
3 |
| - "editor.formatOnSave": true, |
| 3 | + // Enable the ESlint flat config support |
| 4 | + "eslint.experimental.useFlatConfig": true, |
| 5 | + |
| 6 | + // Disable the default formatter, use eslint instead |
| 7 | + "prettier.enable": false, |
| 8 | + "editor.formatOnSave": false, |
| 9 | + |
| 10 | + // Auto fix |
4 | 11 | "editor.codeActionsOnSave": {
|
5 |
| - "source.fixAll.eslint": true |
6 |
| - } |
| 12 | + "source.fixAll.eslint": "explicit", |
| 13 | + "source.organizeImports": "never" |
| 14 | + }, |
| 15 | + |
| 16 | + // Silent the stylistic rules in you IDE, but still auto fix them |
| 17 | + "eslint.rules.customizations": [ |
| 18 | + { "rule": "style/*", "severity": "off" }, |
| 19 | + { "rule": "format/*", "severity": "off" }, |
| 20 | + { "rule": "*-indent", "severity": "off" }, |
| 21 | + { "rule": "*-spacing", "severity": "off" }, |
| 22 | + { "rule": "*-spaces", "severity": "off" }, |
| 23 | + { "rule": "*-order", "severity": "off" }, |
| 24 | + { "rule": "*-dangle", "severity": "off" }, |
| 25 | + { "rule": "*-newline", "severity": "off" }, |
| 26 | + { "rule": "*quotes", "severity": "off" }, |
| 27 | + { "rule": "*semi", "severity": "off" } |
| 28 | + ], |
| 29 | + |
| 30 | + // Enable eslint for all supported languages |
| 31 | + "eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact", "vue", "html", "markdown", "json", "jsonc", "yaml", "toml"] |
7 | 32 | }
|
0 commit comments