|
1 | 1 | { |
2 | | - "$schema": "https://biomejs.dev/schemas/2.3.6/schema.json", |
3 | | - "vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true }, |
4 | | - "files": { "ignoreUnknown": false }, |
5 | | - "formatter": { |
| 2 | + "$schema": "https://biomejs.dev/schemas/2.4.5/schema.json", |
| 3 | + "vcs": { |
6 | 4 | "enabled": true, |
| 5 | + "clientKind": "git", |
| 6 | + "useIgnoreFile": true |
| 7 | + }, |
| 8 | + "files": { |
| 9 | + "ignoreUnknown": true, |
| 10 | + "includes": ["**/*.ts", "**/*.{md,json,yml,js}", "!**/.*"] |
| 11 | + }, |
| 12 | + "formatter": { |
7 | 13 | "indentStyle": "space", |
8 | 14 | "indentWidth": 4 |
9 | 15 | }, |
10 | 16 | "linter": { |
11 | | - "enabled": true, |
12 | 17 | "rules": { |
13 | | - "recommended": false, |
14 | | - "complexity": { |
15 | | - "noAdjacentSpacesInRegex": "error", |
16 | | - "noExtraBooleanCast": "error", |
17 | | - "noUselessCatch": "error", |
18 | | - "noUselessEscapeInRegex": "error", |
19 | | - "useArrowFunction": "error" |
| 18 | + "recommended": true, |
| 19 | + "suspicious": { |
| 20 | + "noAssignInExpressions": "off", |
| 21 | + "noConstantBinaryExpressions": "error", |
| 22 | + "useAwait": "error" |
20 | 23 | }, |
21 | | - "correctness": { |
22 | | - "noConstAssign": "error", |
23 | | - "noConstantCondition": "error", |
24 | | - "noEmptyCharacterClassInRegex": "error", |
25 | | - "noEmptyPattern": "error", |
26 | | - "noGlobalObjectCalls": "error", |
27 | | - "noInnerDeclarations": "error", |
28 | | - "noInvalidConstructorSuper": "error", |
29 | | - "noInvalidUseBeforeDeclaration": "error", |
30 | | - "noNonoctalDecimalEscape": "error", |
31 | | - "noPrecisionLoss": "error", |
32 | | - "noSelfAssign": "error", |
33 | | - "noSetterReturn": "error", |
34 | | - "noSwitchDeclarations": "error", |
35 | | - "noUndeclaredVariables": "error", |
36 | | - "noUnreachable": "error", |
37 | | - "noUnreachableSuper": "error", |
38 | | - "noUnsafeFinally": "error", |
39 | | - "noUnsafeOptionalChaining": "error", |
40 | | - "noUnusedLabels": "error", |
41 | | - "noUnusedVariables": "error", |
42 | | - "useIsNan": "error", |
43 | | - "useValidForDirection": "error", |
44 | | - "useValidTypeof": "error", |
45 | | - "useYield": "error" |
| 24 | + "complexity": { |
| 25 | + "noUselessStringConcat": "error", |
| 26 | + "noUselessUndefined": "error", |
| 27 | + "useSimplifiedLogicExpression": "error", |
| 28 | + "useWhile": "error" |
46 | 29 | }, |
47 | | - "nursery": { |
48 | | - "useExhaustiveSwitchCases": "error" |
| 30 | + "performance": { |
| 31 | + "useTopLevelRegex": "error" |
49 | 32 | }, |
50 | 33 | "style": { |
| 34 | + "noInferrableTypes": "error", |
| 35 | + "noNegationElse": "error", |
| 36 | + "noUnusedTemplateLiteral": "error", |
51 | 37 | "noUselessElse": "error", |
52 | 38 | "noYodaExpression": "error", |
53 | | - "useBlockStatements": "error", |
54 | | - "useConst": "error", |
55 | | - "useImportType": { |
56 | | - "level": "error", |
57 | | - "options": { "style": "inlineType" } |
58 | | - }, |
| 39 | + "useAsConstAssertion": "error", |
| 40 | + "useCollapsedElseIf": "error", |
| 41 | + "useCollapsedIf": "error", |
| 42 | + "useConsistentArrayType": "error", |
| 43 | + "useConsistentArrowReturn": "error", |
| 44 | + "useConsistentMemberAccessibility": "error", |
59 | 45 | "useConsistentObjectDefinitions": "error", |
60 | | - "useReadonlyClassProperties": "error", |
61 | | - "useShorthandFunctionType": "error", |
62 | | - "useSingleVarDeclarator": "error", |
63 | | - "useTemplate": "error" |
64 | | - }, |
65 | | - "suspicious": { |
66 | | - "noAssignInExpressions": "error", |
67 | | - "noAsyncPromiseExecutor": "error", |
68 | | - "noCatchAssign": "error", |
69 | | - "noClassAssign": "error", |
70 | | - "noCompareNegZero": "error", |
71 | | - "noControlCharactersInRegex": "error", |
72 | | - "noDebugger": "error", |
73 | | - "noDoubleEquals": "error", |
74 | | - "noDuplicateCase": "error", |
75 | | - "noDuplicateClassMembers": "error", |
76 | | - "noDuplicateElseIf": "error", |
77 | | - "noDuplicateObjectKeys": "error", |
78 | | - "noDuplicateParameters": "error", |
79 | | - "noEmptyBlockStatements": "error", |
80 | | - "noFallthroughSwitchClause": "error", |
81 | | - "noFunctionAssign": "error", |
82 | | - "noGlobalAssign": "error", |
83 | | - "noImportAssign": "error", |
84 | | - "noIrregularWhitespace": "error", |
85 | | - "noMisleadingCharacterClass": "error", |
86 | | - "noPrototypeBuiltins": "error", |
87 | | - "noRedeclare": "error", |
88 | | - "noShadowRestrictedNames": "error", |
89 | | - "noSparseArray": "error", |
90 | | - "noUnsafeNegation": "error", |
91 | | - "noUselessRegexBackrefs": "error", |
92 | | - "noVar": "error", |
93 | | - "noWith": "error", |
94 | | - "useGetterReturn": "error" |
| 46 | + "useConsistentTypeDefinitions": "error", |
| 47 | + "useDefaultParameterLast": "error", |
| 48 | + "useExplicitLengthCheck": "error", |
| 49 | + "useFilenamingConvention": "error", |
| 50 | + "useNumberNamespace": "error", |
| 51 | + "useNumericSeparators": "error", |
| 52 | + "useObjectSpread": "error", |
| 53 | + "useShorthandAssign": "error", |
| 54 | + "useUnifiedTypeSignatures": "error" |
| 55 | + } |
| 56 | + } |
| 57 | + }, |
| 58 | + "assist": { |
| 59 | + "actions": { |
| 60 | + "source": { |
| 61 | + "organizeImports": "on" |
95 | 62 | } |
96 | 63 | } |
97 | 64 | }, |
98 | 65 | "overrides": [ |
99 | 66 | { |
100 | 67 | "includes": ["**/*.test.ts", "**/*.spec.ts", "test/**/*.ts"], |
| 68 | + "linter": { |
| 69 | + "rules": { |
| 70 | + "suspicious": { |
| 71 | + "noDeprecatedImports": "off", |
| 72 | + "noMisplacedAssertion": "off", |
| 73 | + "noSkippedTests": "off" |
| 74 | + } |
| 75 | + } |
| 76 | + }, |
101 | 77 | "javascript": { |
102 | 78 | "globals": [ |
103 | 79 | "jest", |
104 | 80 | "describe", |
105 | 81 | "it", |
106 | 82 | "beforeEach", |
107 | 83 | "afterEach", |
108 | | - "expect" |
| 84 | + "expect", |
| 85 | + "vi" |
109 | 86 | ] |
110 | 87 | } |
| 88 | + }, |
| 89 | + { |
| 90 | + "includes": ["**/*.ts", "**/*.cts", "**/*.mts", "**/*.tsx"], |
| 91 | + "linter": { |
| 92 | + "rules": { |
| 93 | + "complexity": { |
| 94 | + "useLiteralKeys": "off" |
| 95 | + } |
| 96 | + } |
| 97 | + } |
111 | 98 | } |
112 | 99 | ], |
113 | | - |
114 | | - "html": { "formatter": { "selfCloseVoidElements": "always" } }, |
115 | | - "assist": { |
116 | | - "enabled": true, |
117 | | - "actions": { "source": { "organizeImports": "on" } } |
| 100 | + "html": { |
| 101 | + "formatter": { |
| 102 | + "selfCloseVoidElements": "always" |
| 103 | + } |
118 | 104 | } |
119 | 105 | } |
0 commit comments