|
3 | 3 | "citty", |
4 | 4 | "defu", |
5 | 5 | "nuxi", |
| 6 | + "oxfmt", |
| 7 | + "oxlint", |
6 | 8 | "postbuild", |
7 | 9 | "schemasset", |
8 | | - "tsdown" |
| 10 | + "tsgo", |
| 11 | + "viteplus" |
9 | 12 | ], |
10 | | - // Disable the default formatter, use eslint instead |
11 | | - "prettier.enable": false, |
12 | | - "editor.formatOnSave": false, |
13 | | - |
14 | | - // Auto fix |
| 13 | + "editor.defaultFormatter": "oxc.oxc-vscode", |
| 14 | + "oxc.fmt.configPath": "./vite.config.ts", |
| 15 | + "editor.formatOnSave": true, |
| 16 | + "editor.formatOnSaveMode": "file", |
15 | 17 | "editor.codeActionsOnSave": { |
16 | | - "source.fixAll.eslint": "explicit", |
| 18 | + "source.fixAll.oxc": "explicit", |
17 | 19 | "source.organizeImports": "never" |
18 | | - }, |
19 | | - |
20 | | - // Silent the stylistic rules in you IDE, but still auto fix them |
21 | | - "eslint.rules.customizations": [ |
22 | | - { "rule": "style/*", "severity": "off", "fixable": true }, |
23 | | - { "rule": "format/*", "severity": "off", "fixable": true }, |
24 | | - { "rule": "*-indent", "severity": "off", "fixable": true }, |
25 | | - { "rule": "*-spacing", "severity": "off", "fixable": true }, |
26 | | - { "rule": "*-spaces", "severity": "off", "fixable": true }, |
27 | | - { "rule": "*-order", "severity": "off", "fixable": true }, |
28 | | - { "rule": "*-dangle", "severity": "off", "fixable": true }, |
29 | | - { "rule": "*-newline", "severity": "off", "fixable": true }, |
30 | | - { "rule": "*quotes", "severity": "off", "fixable": true }, |
31 | | - { "rule": "*semi", "severity": "off", "fixable": true } |
32 | | - ], |
33 | | - |
34 | | - // Enable eslint for all supported languages |
35 | | - "eslint.validate": [ |
36 | | - "javascript", |
37 | | - "javascriptreact", |
38 | | - "typescript", |
39 | | - "typescriptreact", |
40 | | - "vue", |
41 | | - "html", |
42 | | - "markdown", |
43 | | - "json", |
44 | | - "json5", |
45 | | - "jsonc", |
46 | | - "yaml", |
47 | | - "toml", |
48 | | - "xml", |
49 | | - "gql", |
50 | | - "graphql", |
51 | | - "astro", |
52 | | - "svelte", |
53 | | - "css", |
54 | | - "less", |
55 | | - "scss", |
56 | | - "pcss", |
57 | | - "postcss" |
58 | | - ] |
| 20 | + } |
59 | 21 | } |
0 commit comments