|
1 | 1 | {
|
2 | 2 | "$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
|
3 |
| - "organizeImports": { |
4 |
| - "enabled": true |
| 3 | + "assist": { |
| 4 | + "actions": { |
| 5 | + "source": { |
| 6 | + "organizeImports": "on" |
| 7 | + } |
| 8 | + } |
5 | 9 | },
|
6 | 10 | "formatter": {
|
7 | 11 | "enabled": true,
|
|
10 | 14 | "formatWithErrors": true,
|
11 | 15 | "lineWidth": 140,
|
12 | 16 | "indentStyle": "space",
|
13 |
| - "ignore": [ |
14 |
| - ".cache", |
15 |
| - "dist/**", |
16 |
| - "**/*.json", |
17 |
| - "node_modules/**" |
| 17 | + "includes": [ |
| 18 | + "**", |
| 19 | + "!**/.cache", |
| 20 | + "!**/dist/**", |
| 21 | + "!**/*.json", |
| 22 | + "!**/node_modules/**" |
18 | 23 | ]
|
19 | 24 | },
|
20 | 25 | "javascript": {
|
|
39 | 44 | },
|
40 | 45 | "linter": {
|
41 | 46 | "enabled": true,
|
42 |
| - "ignore": [ |
43 |
| - ".cache", |
44 |
| - "dist/**", |
45 |
| - "**/*.json", |
46 |
| - "node_modules/**" |
| 47 | + "includes": [ |
| 48 | + "**", |
| 49 | + "!**/.cache", |
| 50 | + "!**/dist/**", |
| 51 | + "!**/*.json", |
| 52 | + "!**/node_modules/**" |
47 | 53 | ],
|
48 | 54 | "rules": {
|
49 | 55 | "correctness": {
|
|
65 | 71 | "style": {
|
66 | 72 | "noNonNullAssertion": "off",
|
67 | 73 | "noParameterAssign": "off",
|
68 |
| - "useExponentiationOperator": "off" |
| 74 | + "useExponentiationOperator": "off", |
| 75 | + "useLiteralEnumMembers": "error", |
| 76 | + "noCommaOperator": "error", |
| 77 | + "useNodejsImportProtocol": "error", |
| 78 | + "useAsConstAssertion": "error", |
| 79 | + "useNumericLiterals": "error", |
| 80 | + "useEnumInitializers": "error", |
| 81 | + "useSelfClosingElements": "error", |
| 82 | + "useConst": "error", |
| 83 | + "useSingleVarDeclarator": "error", |
| 84 | + "noUnusedTemplateLiteral": "error", |
| 85 | + "useNumberNamespace": "error", |
| 86 | + "noInferrableTypes": "error", |
| 87 | + "useTemplate": "error", |
| 88 | + "useDefaultParameterLast": "error", |
| 89 | + "noArguments": "error", |
| 90 | + "useImportType": "error", |
| 91 | + "useExportType": "error", |
| 92 | + "noUselessElse": "error", |
| 93 | + "useShorthandFunctionType": "error" |
69 | 94 | }
|
70 | 95 | }
|
71 | 96 | },
|
|
0 commit comments