|
1 | 1 | { |
2 | | - // At some point, we'll watch to flick this on and uncomment lines 5 & 6 below. |
3 | | - "eslint.enable": true, |
4 | | - // Disable the default formatter, use eslint instead |
| 2 | + // We use Biome for linting and formatting. |
| 3 | + "eslint.enable": false, |
5 | 4 | "prettier.enable": false, |
6 | | - "editor.formatOnSave": false, |
| 5 | + "editor.formatOnSave": true, |
7 | 6 |
|
8 | 7 | // Auto fix |
9 | 8 | "editor.codeActionsOnSave": { |
10 | | - "source.fixAll.eslint": "explicit", |
| 9 | + // Auto fix all Biome issues on save. |
| 10 | + "source.fixAll.biome": "always", |
| 11 | + "source.organizeImports.biome": "always", |
| 12 | + // Disable built-in organize imports to avoid conflicts with Biome. |
11 | 13 | "source.organizeImports": "never" |
12 | 14 | }, |
13 | 15 |
|
14 | | - // Silent the stylistic rules in you IDE, but still auto fix them |
15 | | - "eslint.rules.customizations": [ |
16 | | - { "rule": "style/*", "severity": "off", "fixable": true }, |
17 | | - { "rule": "format/*", "severity": "off", "fixable": true }, |
18 | | - { "rule": "*-indent", "severity": "off", "fixable": true }, |
19 | | - { "rule": "*-spacing", "severity": "off", "fixable": true }, |
20 | | - { "rule": "*-spaces", "severity": "off", "fixable": true }, |
21 | | - { "rule": "*-order", "severity": "off", "fixable": true }, |
22 | | - { "rule": "*-dangle", "severity": "off", "fixable": true }, |
23 | | - { "rule": "*-newline", "severity": "off", "fixable": true }, |
24 | | - { "rule": "*quotes", "severity": "off", "fixable": true }, |
25 | | - { "rule": "*semi", "severity": "off", "fixable": true } |
26 | | - ], |
27 | | - |
28 | | - // Enable eslint for all supported languages |
29 | | - "eslint.validate": [ |
30 | | - "javascript", |
31 | | - "javascriptreact", |
32 | | - "typescript", |
33 | | - "typescriptreact", |
34 | | - "vue", |
35 | | - "html", |
36 | | - "markdown", |
37 | | - "json", |
38 | | - "jsonc", |
39 | | - "yaml", |
40 | | - "toml", |
41 | | - "xml", |
42 | | - "gql", |
43 | | - "graphql", |
44 | | - "astro", |
45 | | - "svelte", |
46 | | - "css", |
47 | | - "less", |
48 | | - "scss", |
49 | | - "pcss", |
50 | | - "postcss", |
51 | | - "svg" |
52 | | - ], |
53 | | - "editor.defaultFormatter": "dbaeumer.vscode-eslint", |
| 16 | + "biome.requireConfiguration": true, |
| 17 | + "editor.defaultFormatter": "biomejs.biome", |
54 | 18 | "typescript.tsdk": "node_modules/typescript/lib" |
55 | 19 | } |
0 commit comments