|
1 | 1 | { |
2 | | - "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", |
| 2 | + "$schema": "https://biomejs.dev/schemas/2.0.0/schema.json", |
3 | 3 | "files": { |
4 | | - "ignore": [ |
5 | | - "**/*.snap.cjs", |
6 | | - "**/fixtures/**" |
7 | | - ] |
8 | | - }, |
9 | | - "organizeImports": { |
10 | | - "enabled": false |
| 4 | + "includes": ["**", "!**/*.snap.cjs", "!**/fixtures/**"] |
11 | 5 | }, |
| 6 | + "assist": { "actions": { "source": { "organizeImports": "off" } } }, |
12 | 7 | // Rules for the linter |
13 | 8 | "linter": { |
14 | 9 | "rules": { |
|
18 | 13 | "noYodaExpression": "error", |
19 | 14 | "useImportType": "error", |
20 | 15 | "useNodeAssertStrict": "error", |
21 | | - "useNodejsImportProtocol": "error" |
| 16 | + "useNodejsImportProtocol": "error", |
| 17 | + "useAsConstAssertion": "error", |
| 18 | + "useDefaultParameterLast": "error", |
| 19 | + "useEnumInitializers": "error", |
| 20 | + "useSelfClosingElements": "error", |
| 21 | + "useSingleVarDeclarator": "error", |
| 22 | + "noUnusedTemplateLiteral": "error", |
| 23 | + "useNumberNamespace": "error", |
| 24 | + "noInferrableTypes": "error", |
| 25 | + "noUselessElse": "error", |
| 26 | + "useArrayLiterals": "off", |
| 27 | + "noEnum": "error" |
22 | 28 | }, |
23 | 29 | "suspicious": { |
24 | 30 | "noAssignInExpressions": "off", |
|
29 | 35 | }, |
30 | 36 | "correctness": { |
31 | 37 | "noUnusedVariables": "error", |
32 | | - "useArrayLiterals": "off", |
33 | 38 | "noUnknownFunction": "error" |
34 | 39 | }, |
35 | | - "nursery": { |
36 | | - "noEnum": "error" |
37 | | - }, |
| 40 | + "nursery": {}, |
38 | 41 | "performance": { |
39 | 42 | "recommended": true |
40 | 43 | } |
|
44 | 47 | "javascript": { |
45 | 48 | "formatter": { |
46 | 49 | "arrowParentheses": "always", |
47 | | - "semicolons": "always", |
| 50 | + "semicolons": "always", |
48 | 51 | "quoteStyle": "single", |
49 | 52 | "trailingCommas": "all" |
50 | 53 | }, |
51 | | - "linter": { |
| 54 | + "linter": { |
52 | 55 | "enabled": true |
53 | 56 | } |
54 | 57 | }, |
|
0 commit comments