|
1 | 1 | { |
2 | | - "$schema": "https://biomejs.dev/schemas/1.5.0/schema.json", |
| 2 | + "$schema": "https://biomejs.dev/schemas/1.7.1/schema.json", |
3 | 3 | "organizeImports": { |
4 | 4 | "enabled": true |
5 | 5 | }, |
|
42 | 42 | "rules": { |
43 | 43 | "complexity": { |
44 | 44 | "noForEach": "warn", |
| 45 | + "noUselessLoneBlockStatements": "error", |
| 46 | + "noUselessTernary": "error", |
45 | 47 | "noBannedTypes": "warn" |
46 | 48 | }, |
47 | 49 | "correctness": { |
48 | 50 | "noUndeclaredVariables": "error", |
| 51 | + "noInvalidUseBeforeDeclaration": "error", |
| 52 | + "noUnusedImports": "error", |
| 53 | + "noUnusedPrivateClassMembers": "error", |
49 | 54 | "noUnusedVariables": "error" |
50 | 55 | }, |
51 | 56 | "style": { |
|
55 | 60 | "useShorthandArrayType": "error", |
56 | 61 | "useShorthandAssign": "error", |
57 | 62 | "useSingleCaseStatement": "error", |
| 63 | + "useNodejsImportProtocol": "error", |
| 64 | + "useExportType": "error", |
| 65 | + "useImportType": "error", |
58 | 66 | "useNamingConvention": { |
59 | 67 | "level": "error", |
60 | 68 | "options": { |
|
67 | 75 | "noConsoleLog": "error", |
68 | 76 | "noMisrefactoredShorthandAssign": "warn", |
69 | 77 | "noImplicitAnyLet": "error", |
70 | | - "noExplicitAny": "off" |
71 | | - }, |
72 | | - "nursery": { |
73 | | - "noEmptyBlockStatements": "off", |
74 | | - "useExportType": "error", |
75 | | - "useImportType": "error", |
76 | | - "useNodejsImportProtocol": "error", |
77 | | - "noInvalidUseBeforeDeclaration": "error", |
78 | | - "noGlobalEval": "error", |
79 | | - "noGlobalAssign": "error", |
| 78 | + "noExplicitAny": "off", |
80 | 79 | "noThenProperty": "error", |
81 | | - "noUselessTernary": "error", |
82 | | - "noUnusedImports": "error", |
83 | | - "noUnusedPrivateClassMembers": "error", |
84 | | - "noUselessLoneBlockStatements": "error", |
85 | | - "useAwait": "error", |
86 | | - "useGroupedTypeImport": "error" |
| 80 | + "noGlobalAssign": "error", |
| 81 | + "noEmptyBlockStatements": "off", |
| 82 | + "useAwait": "error" |
| 83 | + }, |
| 84 | + "security": { |
| 85 | + "noGlobalEval": "error" |
87 | 86 | } |
88 | 87 | } |
89 | 88 | } |
|
0 commit comments