|
1 | 1 | {
|
2 | 2 | "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
|
| 3 | + "vcs": { |
| 4 | + "enabled": true, |
| 5 | + "clientKind": "git", |
| 6 | + "useIgnoreFile": true |
| 7 | + }, |
| 8 | + "files": { |
| 9 | + "ignoreUnknown": false, |
| 10 | + "ignore": [] |
| 11 | + }, |
3 | 12 | "formatter": {
|
4 | 13 | "enabled": true,
|
5 | 14 | "useEditorconfig": true,
|
|
9 | 18 | "lineEnding": "lf",
|
10 | 19 | "lineWidth": 120,
|
11 | 20 | "attributePosition": "auto",
|
12 |
| - "bracketSpacing": true, |
13 |
| - "ignore": [ |
14 |
| - "../element-web", |
15 |
| - "./build/", |
16 |
| - "./docker/", |
17 |
| - "./dist/**", |
18 |
| - "./.hak/**", |
19 |
| - "./dockerbuild/", |
20 |
| - "./lib/", |
21 |
| - "./node_modules/", |
22 |
| - "./packages.elememt.io/", |
23 |
| - "./webapp", |
24 |
| - "./src/i18n/strings", |
25 |
| - "./CHANGELOG.md", |
26 |
| - "./package-lock.json", |
27 |
| - "./yarn.lock", |
28 |
| - "./playwright/html-report", |
29 |
| - "./playwright/test-results", |
30 |
| - "**/.idea", |
31 |
| - "**/.vscode", |
32 |
| - "**/.vscode/", |
33 |
| - "**/.tmp", |
34 |
| - "**/.env", |
35 |
| - "./coverage", |
36 |
| - "./.npmrc", |
37 |
| - "./*.log" |
38 |
| - ] |
| 21 | + "bracketSpacing": true |
39 | 22 | },
|
40 |
| - "organizeImports": { "enabled": false }, |
| 23 | + "organizeImports": { "enabled": true }, |
41 | 24 | "linter": {
|
42 |
| - "enabled": false, |
| 25 | + "enabled": true, |
43 | 26 | "rules": {
|
44 | 27 | "recommended": false,
|
45 | 28 | "complexity": {
|
46 | 29 | "noExtraBooleanCast": "error",
|
47 | 30 | "noMultipleSpacesInRegularExpressionLiterals": "error",
|
48 |
| - "noUselessCatch": "off", |
| 31 | + "noUselessCatch": "error", |
49 | 32 | "noWith": "error"
|
50 | 33 | },
|
51 | 34 | "correctness": {
|
|
77 | 60 | "style": {
|
78 | 61 | "noArguments": "error",
|
79 | 62 | "noVar": "error",
|
80 |
| - "useBlockStatements": "error", |
| 63 | + "useBlockStatements": "off", |
81 | 64 | "useConsistentBuiltinInstantiation": "error",
|
82 | 65 | "useConst": "error",
|
83 | 66 | "useNodejsImportProtocol": "error",
|
84 | 67 | "useSingleVarDeclarator": "error",
|
85 |
| - "useThrowOnlyError": "error" |
| 68 | + "useThrowOnlyError": "error", |
| 69 | + "useImportType": "error", |
| 70 | + "useExportType": "error" |
86 | 71 | },
|
87 | 72 | "suspicious": {
|
88 | 73 | "noAssignInExpressions": "error",
|
89 |
| - "noAsyncPromiseExecutor": "off", |
| 74 | + "noAsyncPromiseExecutor": "error", |
90 | 75 | "noCatchAssign": "error",
|
91 | 76 | "noClassAssign": "error",
|
92 | 77 | "noCompareNegZero": "error",
|
|
103 | 88 | "noGlobalAssign": "error",
|
104 | 89 | "noImportAssign": "error",
|
105 | 90 | "noMisleadingCharacterClass": "error",
|
106 |
| - "noPrototypeBuiltins": "off", |
| 91 | + "noPrototypeBuiltins": "error", |
107 | 92 | "noRedeclare": "error",
|
108 | 93 | "noShadowRestrictedNames": "error",
|
109 | 94 | "noSparseArray": "error",
|
|
129 | 114 | },
|
130 | 115 | "overrides": [
|
131 | 116 | {
|
132 |
| - "include": ["src/**/*.ts"], |
133 |
| - "linter": { |
134 |
| - "rules": { |
135 |
| - "style": { "noNonNullAssertion": "off" }, |
136 |
| - "suspicious": { "noExplicitAny": "off" } |
137 |
| - } |
138 |
| - } |
139 |
| - }, |
140 |
| - { |
141 |
| - "include": ["hak/**/*.ts"], |
142 |
| - "linter": { |
143 |
| - "rules": { |
144 |
| - "style": { "noNonNullAssertion": "off" }, |
145 |
| - "suspicious": { "noExplicitAny": "off" } |
146 |
| - } |
147 |
| - } |
148 |
| - }, |
149 |
| - { |
150 |
| - "include": ["scripts/**/*.ts"], |
| 117 | + "include": ["src/**/*.ts", "hak/**/*.ts", "scripts/**/*.ts", "playwright/**/*.ts"], |
151 | 118 | "linter": {
|
152 | 119 | "rules": {
|
153 | 120 | "style": { "noNonNullAssertion": "off" },
|
|
159 | 126 | "include": ["playwright/**/*.ts"],
|
160 | 127 | "linter": {
|
161 | 128 | "rules": {
|
162 |
| - "style": { "noNonNullAssertion": "off" }, |
163 |
| - "suspicious": { "noExplicitAny": "off" } |
164 |
| - } |
165 |
| - } |
166 |
| - }, |
167 |
| - { |
168 |
| - "include": ["src/**/*.ts"], |
169 |
| - "linter": { |
170 |
| - "rules": { |
171 |
| - "style": { "noNonNullAssertion": "off" }, |
172 |
| - "suspicious": { "noExplicitAny": "off" } |
173 |
| - } |
174 |
| - } |
175 |
| - }, |
176 |
| - { |
177 |
| - "include": ["hak/**/*.ts"], |
178 |
| - "linter": { |
179 |
| - "rules": { |
180 |
| - "style": { "noNonNullAssertion": "off" }, |
181 |
| - "suspicious": { "noExplicitAny": "off" } |
182 |
| - } |
183 |
| - } |
184 |
| - }, |
185 |
| - { |
186 |
| - "include": ["scripts/**/*.ts"], |
187 |
| - "linter": { |
188 |
| - "rules": { |
189 |
| - "style": { "noNonNullAssertion": "off" }, |
190 |
| - "suspicious": { "noExplicitAny": "off" } |
191 |
| - } |
192 |
| - } |
193 |
| - }, |
194 |
| - { |
195 |
| - "include": ["playwright/**/*.ts"], |
196 |
| - "linter": { |
197 |
| - "rules": { |
198 |
| - "style": { "noNonNullAssertion": "off" }, |
199 |
| - "suspicious": { "noExplicitAny": "off" } |
| 129 | + "correctness": { |
| 130 | + "noEmptyPattern": "off" |
| 131 | + } |
200 | 132 | }
|
201 | 133 | }
|
202 | 134 | }
|
|
0 commit comments