|
1 | 1 | { |
2 | | - "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", |
| 2 | + "$schema": "https://biomejs.dev/schemas/2.0.6/schema.json", |
3 | 3 | "vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false }, |
4 | | - "files": { "ignoreUnknown": false, "ignore": ["dist", "coverage", "test/compliance"] }, |
| 4 | + "files": { "ignoreUnknown": false, "includes": ["**", "!**/dist", "!**/coverage", "!**/test/compliance"] }, |
5 | 5 | "formatter": { |
6 | 6 | "enabled": true, |
7 | 7 | "useEditorconfig": true, |
|
12 | 12 | "lineWidth": 120, |
13 | 13 | "attributePosition": "auto", |
14 | 14 | "bracketSpacing": true, |
15 | | - "ignore": ["**/tests/fixtures/**/*", "**/dist", "**/coverage", "**/.vscode"] |
| 15 | + "includes": ["**", "!**/tests/fixtures/**/*", "!**/dist", "!**/coverage", "!**/.vscode"] |
16 | 16 | }, |
17 | | - "organizeImports": { "enabled": true }, |
| 17 | + "assist": { "actions": { "source": { "organizeImports": "on" } } }, |
18 | 18 | "linter": { |
19 | 19 | "enabled": true, |
20 | 20 | "rules": { |
21 | 21 | "recommended": false, |
22 | 22 | "complexity": { "noBannedTypes": "error" }, |
23 | | - "correctness": { "noUnusedVariables": "warn", "useArrayLiterals": "off" }, |
| 23 | + "correctness": { "noUnusedVariables": "warn" }, |
24 | 24 | "style": { |
25 | 25 | "noInferrableTypes": "error", |
26 | 26 | "noNamespace": "error", |
27 | 27 | "noNonNullAssertion": "warn", |
28 | 28 | "useAsConstAssertion": "error", |
29 | | - "useBlockStatements": "error" |
| 29 | + "useBlockStatements": "error", |
| 30 | + "useArrayLiterals": "off" |
30 | 31 | }, |
31 | 32 | "suspicious": { |
32 | 33 | "noEmptyBlockStatements": "off", |
|
36 | 37 | "useNamespaceKeyword": "error" |
37 | 38 | } |
38 | 39 | }, |
39 | | - "ignore": [ |
40 | | - "**/node_modules", |
41 | | - "**/dist", |
42 | | - "**/jest.config.js", |
43 | | - "**/fixtures", |
44 | | - "**/shared-fixtures", |
45 | | - "**/coverage", |
46 | | - "**/__snapshots__", |
47 | | - "src/**/*.js" |
| 40 | + "includes": [ |
| 41 | + "**", |
| 42 | + "!**/node_modules", |
| 43 | + "!**/dist", |
| 44 | + "!**/jest.config.js", |
| 45 | + "!**/fixtures", |
| 46 | + "!**/shared-fixtures", |
| 47 | + "!**/coverage", |
| 48 | + "!**/__snapshots__", |
| 49 | + "!**/src/**/*.js" |
48 | 50 | ] |
49 | 51 | }, |
50 | 52 | "javascript": { |
|
62 | 64 | }, |
63 | 65 | "overrides": [ |
64 | 66 | { |
65 | | - "include": ["*.ts", "*.tsx"], |
| 67 | + "includes": ["**/*.ts", "**/*.tsx"], |
66 | 68 | "linter": { |
67 | 69 | "rules": { |
68 | 70 | "correctness": { |
69 | 71 | "noConstAssign": "off", |
70 | 72 | "noGlobalObjectCalls": "off", |
71 | 73 | "noInvalidConstructorSuper": "off", |
72 | | - "noNewSymbol": "off", |
73 | 74 | "noSetterReturn": "off", |
74 | 75 | "noUndeclaredVariables": "off", |
75 | 76 | "noUnreachable": "off", |
76 | | - "noUnreachableSuper": "off" |
| 77 | + "noUnreachableSuper": "off", |
| 78 | + "noInvalidBuiltinInstantiation": "off", |
| 79 | + "useValidTypeof": "off" |
77 | 80 | }, |
78 | 81 | "style": { |
79 | | - "noArguments": "error", |
80 | | - "noVar": "error", |
81 | 82 | "useConst": "error" |
82 | 83 | }, |
83 | 84 | "suspicious": { |
|
89 | 90 | "noRedeclare": "off", |
90 | 91 | "noUnsafeNegation": "off", |
91 | 92 | "useGetterReturn": "off", |
92 | | - "useValidTypeof": "off" |
| 93 | + "noVar": "error" |
| 94 | + }, |
| 95 | + "complexity": { |
| 96 | + "noArguments": "error" |
93 | 97 | } |
94 | 98 | } |
95 | 99 | } |
|
0 commit comments