|
1 | 1 | {
|
2 |
| - "$schema": "https://biomejs.dev/schemas/1.8.3/schema.json", |
| 2 | + "$schema": "https://biomejs.dev/schemas/2.2.2/schema.json", |
3 | 3 | "vcs": {
|
4 | 4 | "clientKind": "git",
|
5 | 5 | "enabled": true,
|
6 | 6 | "useIgnoreFile": true,
|
7 | 7 | "defaultBranch": "main"
|
8 | 8 | },
|
9 | 9 | "files": {
|
10 |
| - "ignore": [ |
11 |
| - "**/node_modules/**", |
12 |
| - "crates/**", |
13 |
| - "*.vue", |
14 |
| - "tsconfig.base.json", |
15 |
| - "tsconfig.json", |
16 |
| - "cspell.json", |
17 |
| - "*.d.ts", |
18 |
| - "packages/core/cjs/**", |
19 |
| - "packages/runtime/**", |
20 |
| - "packages/runtime-plugin-import-meta/**", |
21 |
| - "packages/create-farm/templates/**", |
22 |
| - "packages/create-farm-plugin/templates/**", |
23 |
| - "rust-plugins/**", |
24 |
| - "js-plugins/vue/**", |
25 |
| - "e2e/**", |
26 |
| - "js-plugins/solid/**", |
27 |
| - "examples/**", |
28 |
| - "**/*.{js,mjs,cjs}" |
| 10 | + "includes": [ |
| 11 | + "**", |
| 12 | + "!**/node_modules/**", |
| 13 | + "!**/crates/**", |
| 14 | + "!**/*.vue", |
| 15 | + "!**/tsconfig.base.json", |
| 16 | + "!**/tsconfig.json", |
| 17 | + "!**/cspell.json", |
| 18 | + "!**/*.d.ts", |
| 19 | + "!**/packages/core/cjs/**", |
| 20 | + "!**/packages/runtime/**", |
| 21 | + "!**/packages/runtime-plugin-import-meta/**", |
| 22 | + "!**/packages/create-farm/templates/**", |
| 23 | + "!**/packages/create-farm-plugin/templates/**", |
| 24 | + "!**/rust-plugins/**", |
| 25 | + "!**/js-plugins/vue/**", |
| 26 | + "!**/e2e/**", |
| 27 | + "!**/js-plugins/solid/**", |
| 28 | + "!**/examples/**", |
| 29 | + "!**/*.{js,mjs,cjs}" |
29 | 30 | ],
|
30 | 31 | "ignoreUnknown": true
|
31 | 32 | },
|
|
37 | 38 | "lineEnding": "lf",
|
38 | 39 | "lineWidth": 80,
|
39 | 40 | "attributePosition": "auto",
|
40 |
| - "include": ["**/*.ts"], |
41 |
| - "ignore": ["node_modules", "dist"] |
42 |
| - }, |
43 |
| - "organizeImports": { |
44 |
| - "enabled": true, |
45 |
| - "include": ["./**/*.js", "./**/*.ts", "./**/*.mjs"] |
| 41 | + "includes": ["**/*.ts", "!**/node_modules", "!**/dist"] |
46 | 42 | },
|
| 43 | + "assist": { "actions": { "source": { "organizeImports": "on" } } }, |
47 | 44 | "linter": {
|
48 | 45 | "enabled": true,
|
49 | 46 | "rules": {
|
50 | 47 | "recommended": false,
|
51 | 48 | "complexity": {
|
52 | 49 | "noBannedTypes": "off",
|
53 | 50 | "noExtraBooleanCast": "error",
|
54 |
| - "noMultipleSpacesInRegularExpressionLiterals": "error", |
55 | 51 | "noUselessTypeConstraint": "error",
|
56 |
| - "noWith": "error", |
57 |
| - "noUselessCatch": "off" |
| 52 | + "noUselessCatch": "off", |
| 53 | + "noAdjacentSpacesInRegex": "error" |
58 | 54 | },
|
59 | 55 | "correctness": {
|
60 | 56 | "noConstAssign": "error",
|
|
64 | 60 | "noGlobalObjectCalls": "error",
|
65 | 61 | "noInnerDeclarations": "error",
|
66 | 62 | "noInvalidConstructorSuper": "error",
|
67 |
| - "noNewSymbol": "error", |
68 | 63 | "noNonoctalDecimalEscape": "error",
|
69 | 64 | "noPrecisionLoss": "error",
|
70 | 65 | "noSelfAssign": "error",
|
|
79 | 74 | "noUnusedVariables": "off",
|
80 | 75 | "useIsNan": "error",
|
81 | 76 | "useValidForDirection": "error",
|
82 |
| - "useYield": "error" |
| 77 | + "useYield": "error", |
| 78 | + "noInvalidBuiltinInstantiation": "error", |
| 79 | + "useValidTypeof": "error" |
83 | 80 | },
|
84 | 81 | "style": {
|
85 | 82 | "noInferrableTypes": "error",
|
|
113 | 110 | "noUnsafeNegation": "error",
|
114 | 111 | "useGetterReturn": "error",
|
115 | 112 | "useNamespaceKeyword": "error",
|
116 |
| - "useValidTypeof": "error" |
| 113 | + "noWith": "error" |
117 | 114 | }
|
118 | 115 | },
|
119 |
| - "ignore": [ |
120 |
| - "**/binding/**", |
121 |
| - "**/templates/**", |
122 |
| - "**/dist/**", |
123 |
| - "**/docs/**", |
124 |
| - "**/node_modules/**", |
125 |
| - "**/*.config.js", |
126 |
| - "**/*.config.ts" |
| 116 | + "includes": [ |
| 117 | + "**", |
| 118 | + "!**/binding/**", |
| 119 | + "!**/templates/**", |
| 120 | + "!**/dist/**", |
| 121 | + "!**/docs/**", |
| 122 | + "!**/node_modules/**", |
| 123 | + "!**/*.config.js", |
| 124 | + "!**/*.config.ts" |
127 | 125 | ]
|
128 | 126 | },
|
129 | 127 | "javascript": {
|
|
0 commit comments