|
1 | 1 | { |
2 | | - "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", |
3 | | - "organizeImports": { |
4 | | - "enabled": true |
| 2 | + "$schema": "https://biomejs.dev/schemas/2.0.0/schema.json", |
| 3 | + "assist": { |
| 4 | + "actions": { |
| 5 | + "source": { |
| 6 | + "organizeImports": { |
| 7 | + "level": "on", |
| 8 | + "options": { |
| 9 | + "groups": [ |
| 10 | + ["astro:*", "*astro-*", "astro*/*"], |
| 11 | + ":PACKAGE:", |
| 12 | + ":ALIAS:" |
| 13 | + ] |
| 14 | + } |
| 15 | + } |
| 16 | + } |
| 17 | + } |
5 | 18 | }, |
6 | 19 | "linter": { |
7 | 20 | "enabled": true, |
8 | 21 | "rules": { |
9 | 22 | "recommended": true, |
10 | 23 | "correctness": { |
11 | 24 | "useJsxKeyInIterable": "off", |
12 | | - "noChildrenProp": "off" |
| 25 | + "noChildrenProp": "off", |
| 26 | + "noUnusedImports": "warn" |
| 27 | + }, |
| 28 | + "style": { |
| 29 | + "noParameterAssign": "error", |
| 30 | + "useAsConstAssertion": "error", |
| 31 | + "useDefaultParameterLast": "error", |
| 32 | + "useEnumInitializers": "error", |
| 33 | + "useSelfClosingElements": "error", |
| 34 | + "useSingleVarDeclarator": "error", |
| 35 | + "noUnusedTemplateLiteral": "error", |
| 36 | + "useNumberNamespace": "error", |
| 37 | + "noInferrableTypes": "error", |
| 38 | + "noUselessElse": "error" |
13 | 39 | } |
14 | 40 | } |
15 | 41 | }, |
|
30 | 56 | }, |
31 | 57 | "overrides": [ |
32 | 58 | { |
33 | | - "include": ["*.astro"], |
| 59 | + "includes": ["**/*.astro"], |
34 | 60 | "javascript": { |
35 | 61 | "formatter": { |
36 | 62 | "quoteStyle": "double" |
37 | 63 | } |
| 64 | + }, |
| 65 | + "linter": { |
| 66 | + "rules": { |
| 67 | + "style": { |
| 68 | + "useConst": "off", |
| 69 | + |
| 70 | + "useImportType": "off" |
| 71 | + }, |
| 72 | + "correctness": { |
| 73 | + "noUnusedVariables": "off", |
| 74 | + "noUnusedImports": "off" |
| 75 | + } |
| 76 | + } |
38 | 77 | } |
39 | 78 | } |
40 | 79 | ], |
|
0 commit comments