|
1 | 1 | { |
2 | | - "$schema": "https://biomejs.dev/schemas/1.5.3/schema.json", |
3 | | - "organizeImports": { |
4 | | - "enabled": false |
5 | | - }, |
| 2 | + "$schema": "https://biomejs.dev/schemas/2.3.11/schema.json", |
| 3 | + "assist": { "actions": { "source": { "organizeImports": "off" } } }, |
6 | 4 | "files": { |
7 | | - "include": ["./*.cjs", "./*.js", "./*.mjs", "src/**/*.js", "src/**/*.ts", "src/**/*.tsx", "src/**/*.jsx"], |
8 | | - "ignore": [".git/**", ".husky/**", ".idea/**", ".vscode/**", "build/**", "dist/**", "node_modules/**", "scripts/**"] |
| 5 | + "includes": [ |
| 6 | + "**/*.js", |
| 7 | + "**/*.mjs", |
| 8 | + "**/src/**/*.js", |
| 9 | + "**/src/**/*.ts", |
| 10 | + "**/src/**/*.tsx", |
| 11 | + "**/src/**/*.jsx", |
| 12 | + "!**/.git/**", |
| 13 | + "!**/.husky/**", |
| 14 | + "!**/.idea/**", |
| 15 | + "!**/.vscode/**", |
| 16 | + "!**/build/**", |
| 17 | + "!**/dist/**", |
| 18 | + "!**/node_modules/**", |
| 19 | + "!**/scripts/**" |
| 20 | + ] |
9 | 21 | }, |
10 | 22 | "formatter": { |
11 | 23 | "enabled": true, |
|
29 | 41 | "noConstAssign": "error", |
30 | 42 | "noSwitchDeclarations": "warn", |
31 | 43 | "useExhaustiveDependencies": "off", |
32 | | - "useHookAtTopLevel": "warn" |
| 44 | + "useHookAtTopLevel": "warn", |
| 45 | + "noInvalidUseBeforeDeclaration": "error" |
33 | 46 | }, |
34 | 47 | "style": { |
35 | 48 | "useSelfClosingElements": "off", |
36 | 49 | "noParameterAssign": "off", |
37 | 50 | "useFragmentSyntax": "off", |
38 | | - "useSingleVarDeclarator": "off" |
39 | | - }, |
40 | | - "nursery": { |
41 | | - "useNodejsImportProtocol": "warn", |
42 | | - "noGlobalEval": "error", |
43 | | - "noInvalidUseBeforeDeclaration": "error" |
| 51 | + "useSingleVarDeclarator": "off", |
| 52 | + "useNodejsImportProtocol": "warn" |
44 | 53 | }, |
| 54 | + "nursery": {}, |
45 | 55 | "suspicious": { |
46 | 56 | "noAssignInExpressions": "off", |
47 | 57 | "noAsyncPromiseExecutor": "off", |
|
50 | 60 | "noImplicitAnyLet": "off" |
51 | 61 | }, |
52 | 62 | "security": { |
53 | | - "recommended": true |
| 63 | + "recommended": true, |
| 64 | + "noGlobalEval": "error" |
54 | 65 | }, |
55 | 66 | "performance": {}, |
56 | 67 | "a11y": { |
|
70 | 81 | "quoteProperties": "asNeeded", |
71 | 82 | "quoteStyle": "single", |
72 | 83 | "semicolons": "always", |
73 | | - "trailingComma": "all" |
| 84 | + "trailingCommas": "all" |
74 | 85 | } |
75 | 86 | }, |
76 | 87 | "json": { |
|
0 commit comments