|
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 | "vcs": { |
4 | 4 | "enabled": false, |
5 | 5 | "clientKind": "git", |
6 | 6 | "useIgnoreFile": false |
7 | 7 | }, |
8 | 8 | "files": { |
9 | 9 | "ignoreUnknown": false, |
10 | | - "ignore": ["build", "docs/.next", "example/android", "example/ios"] |
| 10 | + "includes": ["src/**/*", "example/**/*.{ts,tsx}", "!**/*.json"] |
11 | 11 | }, |
12 | 12 | "formatter": { |
13 | 13 | "enabled": true, |
|
20 | 20 | "attributePosition": "auto", |
21 | 21 | "bracketSpacing": true |
22 | 22 | }, |
23 | | - "organizeImports": { |
24 | | - "enabled": true |
| 23 | + "assist": { |
| 24 | + "enabled": true, |
| 25 | + "actions": { |
| 26 | + "source": { |
| 27 | + "organizeImports": "on", |
| 28 | + "recommended": true |
| 29 | + } |
| 30 | + } |
25 | 31 | }, |
26 | 32 | "linter": { |
27 | 33 | "enabled": true, |
28 | | - "ignore": ["docs", "example", "*.json"], |
29 | 34 | "rules": { |
30 | 35 | "recommended": true, |
31 | 36 | "style": { |
32 | 37 | "useDefaultParameterLast": "off", |
33 | 38 | "noUselessElse": "off", |
34 | | - "noNonNullAssertion": "off" |
| 39 | + "noNonNullAssertion": "off", |
| 40 | + "noParameterAssign": "error", |
| 41 | + "useAsConstAssertion": "error", |
| 42 | + "useEnumInitializers": "error", |
| 43 | + "useSelfClosingElements": "error", |
| 44 | + "useSingleVarDeclarator": "error", |
| 45 | + "noUnusedTemplateLiteral": "error", |
| 46 | + "useNumberNamespace": "error", |
| 47 | + "noInferrableTypes": "error" |
35 | 48 | }, |
36 | 49 | "suspicious": { |
37 | 50 | "noExplicitAny": "off" |
| 51 | + }, |
| 52 | + "correctness": { |
| 53 | + "noUnusedImports": "error" |
38 | 54 | } |
39 | 55 | } |
40 | 56 | }, |
|
0 commit comments