|
3 | 3 | "Astro",
|
4 | 4 | "bumpp",
|
5 | 5 | "coderwyd",
|
6 |
| - "taze" |
| 6 | + "taze", |
| 7 | + "tsup" |
7 | 8 | ],
|
| 9 | + // Enable the ESlint flat config support |
| 10 | + "eslint.experimental.useFlatConfig": true, |
| 11 | + |
| 12 | + // Disable the default formatter, use eslint instead |
8 | 13 | "prettier.enable": false,
|
9 | 14 | "editor.formatOnSave": false,
|
| 15 | + |
| 16 | + // Auto fix |
10 | 17 | "editor.codeActionsOnSave": {
|
11 | 18 | "source.fixAll.eslint": true,
|
12 | 19 | "source.organizeImports": false
|
13 | 20 | },
|
14 |
| - "eslint.experimental.useFlatConfig": true, |
15 |
| - "eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact", "vue", "html", "markdown", "json", "jsonc", "yaml"] |
| 21 | + |
| 22 | + // Silent the stylistic rules in you IDE, but still auto fix them |
| 23 | + "eslint.rules.customizations": [ |
| 24 | + { "rule": "style/*", "severity": "off" }, |
| 25 | + { "rule": "*-indent", "severity": "off" }, |
| 26 | + { "rule": "*-spacing", "severity": "off" }, |
| 27 | + { "rule": "*-spaces", "severity": "off" }, |
| 28 | + { "rule": "*-order", "severity": "off" }, |
| 29 | + { "rule": "*-dangle", "severity": "off" }, |
| 30 | + { "rule": "*-newline", "severity": "off" }, |
| 31 | + { "rule": "*quotes", "severity": "off" }, |
| 32 | + { "rule": "*semi", "severity": "off" } |
| 33 | + ], |
| 34 | + |
| 35 | + // Enable eslint for all supported languages |
| 36 | + "eslint.validate": [ |
| 37 | + "javascript", |
| 38 | + "javascriptreact", |
| 39 | + "typescript", |
| 40 | + "typescriptreact", |
| 41 | + "vue", |
| 42 | + "html", |
| 43 | + "markdown", |
| 44 | + "json", |
| 45 | + "jsonc", |
| 46 | + "yaml" |
| 47 | + ] |
16 | 48 | }
|
0 commit comments