|
1 | 1 | { |
2 | | - "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", |
3 | | - "files": { |
4 | | - "include": ["src/**"], |
5 | | - "ignore": ["out", "test-workspaces", "node_modules", "test-results", ".vscode-test", "tmp", "typings"] |
6 | | - }, |
| 2 | + "$schema": "https://biomejs.dev/schemas/2.3.0/schema.json", |
| 3 | + "files": { |
| 4 | + "includes": [ |
| 5 | + "src/**", |
| 6 | + "scripts/**", |
| 7 | + "!out", |
| 8 | + "!test-workspaces", |
| 9 | + "!node_modules", |
| 10 | + "!test-results", |
| 11 | + "!.vscode-test", |
| 12 | + "!tmp", |
| 13 | + "!typings", |
| 14 | + "!src/typings" |
| 15 | + ] |
| 16 | + }, |
| 17 | + "formatter": { |
| 18 | + "enabled": true, |
| 19 | + "formatWithErrors": true, |
| 20 | + "attributePosition": "auto", |
| 21 | + "indentStyle": "space", |
| 22 | + "indentWidth": 2, |
| 23 | + "lineWidth": 120, |
| 24 | + "lineEnding": "lf" |
| 25 | + }, |
| 26 | + "linter": { |
| 27 | + "enabled": true, |
| 28 | + "rules": { |
| 29 | + "style": { |
| 30 | + "noNonNullAssertion": "off", // we use these assertions |
| 31 | + "noParameterAssign": "off", // useful for default values |
| 32 | + "useBlockStatements": { |
| 33 | + "level": "error", |
| 34 | + "fix": "safe", |
| 35 | + "options": {} |
| 36 | + }, |
| 37 | + "useEnumInitializers": "off" |
| 38 | + }, |
| 39 | + "suspicious": { |
| 40 | + "noExplicitAny": "off" // used in areas where we work with dynamic JSON data |
| 41 | + }, |
| 42 | + "correctness": { |
| 43 | + "noUnusedImports": { |
| 44 | + "level": "error", |
| 45 | + "fix": "safe", |
| 46 | + "options": {} |
| 47 | + }, |
| 48 | + "noSwitchDeclarations": "off" |
| 49 | + } |
| 50 | + } |
| 51 | + }, |
| 52 | + "javascript": { |
| 53 | + "formatter": { |
| 54 | + "arrowParentheses": "asNeeded", |
| 55 | + "bracketSameLine": true, |
| 56 | + "bracketSpacing": true, |
| 57 | + "quoteProperties": "asNeeded", |
| 58 | + "semicolons": "always", |
| 59 | + "trailingCommas": "none", |
| 60 | + "quoteStyle": "single" |
| 61 | + } |
| 62 | + }, |
| 63 | + "json": { |
7 | 64 | "formatter": { |
8 | | - "enabled": true, |
9 | | - "formatWithErrors": true, |
10 | | - "ignore": [], |
11 | | - "attributePosition": "auto", |
12 | | - "indentStyle": "space", |
13 | | - "indentWidth": 4, |
14 | | - "lineWidth": 120, |
15 | | - "lineEnding": "lf" |
16 | | - }, |
17 | | - "linter": { |
18 | | - "enabled": true, |
19 | | - "rules": { |
20 | | - "style": { |
21 | | - "noNonNullAssertion": "off", // we use these assertions |
22 | | - "noParameterAssign": "off", // useful for default values |
23 | | - "useBlockStatements": { |
24 | | - "level": "error", |
25 | | - "fix": "safe" |
26 | | - }, |
27 | | - "useEnumInitializers": "off" |
28 | | - }, |
29 | | - "suspicious": { |
30 | | - "noExplicitAny": "off" // used in areas where we work with dynamic JSON data |
31 | | - }, |
32 | | - "correctness": { |
33 | | - "noUnusedImports": { |
34 | | - "level": "error", |
35 | | - "fix": "safe" |
36 | | - }, |
37 | | - "noSwitchDeclarations": "off" |
38 | | - } |
39 | | - } |
40 | | - }, |
41 | | - "organizeImports": { |
42 | | - "enabled": true |
43 | | - }, |
44 | | - "javascript": { |
45 | | - "formatter": { |
46 | | - "arrowParentheses": "asNeeded", |
47 | | - "bracketSameLine": true, |
48 | | - "bracketSpacing": true, |
49 | | - "quoteProperties": "asNeeded", |
50 | | - "semicolons": "always", |
51 | | - "trailingCommas": "none", |
52 | | - "quoteStyle": "single" |
53 | | - } |
54 | | - }, |
55 | | - "json": { |
56 | | - "formatter": { |
57 | | - "trailingCommas": "none" |
58 | | - } |
| 65 | + "trailingCommas": "none" |
59 | 66 | } |
| 67 | + } |
60 | 68 | } |
0 commit comments