|
1 | 1 | { |
2 | 2 | "$schema": "./node_modules/@biomejs/biome/configuration_schema.json", |
3 | | - "organizeImports": { |
4 | | - "enabled": true |
5 | | - }, |
| 3 | + "assist": { "actions": { "source": { "organizeImports": "on" } } }, |
6 | 4 | "json": { |
7 | 5 | "formatter": { |
8 | 6 | "enabled": true, |
|
27 | 25 | } |
28 | 26 | }, |
29 | 27 | "files": { |
30 | | - "include": [ |
31 | | - "./test/**/*.ts", |
32 | | - "./src/**/*.ts", |
33 | | - "./scripts/**/*.ts", |
34 | | - "./biome.json", |
35 | | - "./package.json" |
36 | | - ], |
37 | | - "ignore": ["./dist", "./coverage", "./node_modules", "./packages"] |
| 28 | + "includes": [ |
| 29 | + "test/**/*.ts", |
| 30 | + "src/**/*.ts", |
| 31 | + "scripts/**/*.ts", |
| 32 | + "biome.json", |
| 33 | + "package.json", |
| 34 | + "!dist", |
| 35 | + "!coverage", |
| 36 | + "!node_modules", |
| 37 | + "!packages" |
| 38 | + ] |
38 | 39 | }, |
39 | 40 | "formatter": { |
40 | 41 | "enabled": true, |
|
56 | 57 | "useTemplate": "error", |
57 | 58 | "useShorthandAssign": "error", |
58 | 59 | "useShorthandFunctionType": "error", |
59 | | - "noVar": "off", |
60 | 60 | "noUselessElse": "error", |
61 | 61 | "noUnusedTemplateLiteral": "off", |
62 | 62 | "useConst": "error", |
|
71 | 71 | "noGlobalObjectCalls": "error", |
72 | 72 | "noInnerDeclarations": "error", |
73 | 73 | "noInvalidConstructorSuper": "error", |
74 | | - "noInvalidNewBuiltin": "error", |
75 | 74 | "noSelfAssign": "error", |
76 | 75 | "noSetterReturn": "error", |
77 | 76 | "noUnreachable": "error", |
|
81 | 80 | "noUnusedImports": "error", |
82 | 81 | "noUnusedPrivateClassMembers": "error", |
83 | 82 | "noUnreachableSuper": "error", |
84 | | - "noUndeclaredVariables": "error" |
| 83 | + "noUndeclaredVariables": "error", |
| 84 | + "noInvalidBuiltinInstantiation": "error", |
| 85 | + "useValidTypeof": "error" |
85 | 86 | }, |
86 | 87 | "suspicious": { |
87 | 88 | "noGlobalIsNan": "off", |
88 | 89 | "noAssignInExpressions": "error", |
89 | 90 | "noCatchAssign": "error", |
90 | 91 | "noClassAssign": "error", |
91 | | - "noConsoleLog": "error", |
92 | 92 | "noDuplicateCase": "error", |
93 | 93 | "noDuplicateClassMembers": "error", |
94 | 94 | "noEmptyBlockStatements": "off", |
95 | | - "useValidTypeof": "error", |
96 | 95 | "useIsArray": "error", |
97 | 96 | "useGetterReturn": "error", |
98 | 97 | "useAwait": "error", |
|
106 | 105 | "noExplicitAny": "off", |
107 | 106 | "noFocusedTests": "error", |
108 | 107 | "noGlobalAssign": "error", |
109 | | - "noFunctionAssign": "error" |
| 108 | + "noFunctionAssign": "error", |
| 109 | + "noVar": "off", |
| 110 | + "noConsole": { "level": "error", "options": { "allow": ["log"] } } |
110 | 111 | }, |
111 | 112 | "complexity": { |
112 | 113 | "noForEach": "error", |
|
122 | 123 | "noBannedTypes": "off" |
123 | 124 | } |
124 | 125 | } |
125 | | - } |
| 126 | + }, |
| 127 | + "overrides": [ |
| 128 | + { |
| 129 | + "includes": ["test/**/*.ts"], |
| 130 | + "linter": { |
| 131 | + "rules": { |
| 132 | + "suspicious": { |
| 133 | + "useAwait": "off" |
| 134 | + } |
| 135 | + } |
| 136 | + } |
| 137 | + } |
| 138 | + ] |
126 | 139 | } |
0 commit comments