|
1 | 1 | { |
2 | | - "$schema": "https://biomejs.dev/schemas/1.9.2/schema.json", |
| 2 | + "$schema": "https://biomejs.dev/schemas/2.2.4/schema.json", |
3 | 3 | "vcs": { |
4 | 4 | "enabled": true, |
5 | 5 | "clientKind": "git", |
6 | 6 | "useIgnoreFile": true |
7 | 7 | }, |
8 | 8 | "files": { |
9 | | - "include": ["src/**/*", "test/**/*"], |
10 | | - "ignore": ["dist/**/*"] |
| 9 | + "includes": ["src/**/*", "test/**/*"], |
| 10 | + "ignoreUnknown": false |
11 | 11 | }, |
12 | 12 | "formatter": { |
13 | 13 | "attributePosition": "multiline", |
|
22 | 22 | }, |
23 | 23 | "linter": { |
24 | 24 | "rules": { |
25 | | - "a11y": { |
26 | | - "noAccessKey": "error", |
27 | | - "noAriaUnsupportedElements": "error", |
28 | | - "noAutofocus": "error", |
29 | | - "noBlankTarget": "error", |
30 | | - "noDistractingElements": "error", |
31 | | - "noHeaderScope": "error", |
32 | | - "noInteractiveElementToNoninteractiveRole": "error", |
33 | | - "noLabelWithoutControl": "warn", |
34 | | - "noNoninteractiveElementToInteractiveRole": "error", |
35 | | - "noNoninteractiveTabindex": "error", |
36 | | - "noPositiveTabindex": "error", |
37 | | - "noRedundantAlt": "error", |
38 | | - "noRedundantRoles": "error", |
39 | | - "noSvgWithoutTitle": "off", |
40 | | - "useAltText": "error", |
41 | | - "useAnchorContent": "error", |
42 | | - "useAriaActivedescendantWithTabindex": "error", |
43 | | - "useAriaPropsForRole": "error", |
44 | | - "useFocusableInteractive": "error", |
45 | | - "useHeadingContent": "error", |
46 | | - "useHtmlLang": "error", |
47 | | - "useIframeTitle": "error", |
48 | | - "useKeyWithClickEvents": "error", |
49 | | - "useKeyWithMouseEvents": "error", |
50 | | - "useMediaCaption": "error", |
51 | | - "useValidAnchor": "error", |
52 | | - "useValidAriaProps": "error", |
53 | | - "useValidAriaRole": "error", |
54 | | - "useValidAriaValues": "error" |
55 | | - }, |
56 | | - "complexity": { |
57 | | - "noExtraBooleanCast": "error", |
58 | | - "noMultipleSpacesInRegularExpressionLiterals": "error", |
59 | | - "noUselessCatch": "error", |
60 | | - "noUselessTypeConstraint": "error", |
61 | | - "noWith": "error" |
62 | | - }, |
63 | | - "correctness": { |
64 | | - "noChildrenProp": "error", |
65 | | - "noConstAssign": "error", |
66 | | - "noConstantCondition": "error", |
67 | | - "noEmptyCharacterClassInRegex": "error", |
68 | | - "noEmptyPattern": "error", |
69 | | - "noGlobalObjectCalls": "error", |
70 | | - "noInnerDeclarations": "error", |
71 | | - "noInvalidConstructorSuper": "error", |
72 | | - "noInvalidUseBeforeDeclaration": "error", |
73 | | - "noNewSymbol": "error", |
74 | | - "noNonoctalDecimalEscape": "error", |
75 | | - "noPrecisionLoss": "error", |
76 | | - "noSelfAssign": "error", |
77 | | - "noSetterReturn": "error", |
78 | | - "noSwitchDeclarations": "error", |
79 | | - "noUndeclaredVariables": "error", |
80 | | - "noUnreachable": "error", |
81 | | - "noUnreachableSuper": "error", |
82 | | - "noUnsafeFinally": "error", |
83 | | - "noUnsafeOptionalChaining": "error", |
84 | | - "noUnusedLabels": "error", |
85 | | - "noUnusedVariables": "error", |
86 | | - "useArrayLiterals": "off", |
87 | | - "useExhaustiveDependencies": "error", |
88 | | - "useHookAtTopLevel": "error", |
89 | | - "useIsNan": "error", |
90 | | - "useJsxKeyInIterable": "error", |
91 | | - "useValidForDirection": "error", |
92 | | - "useYield": "error" |
93 | | - }, |
94 | | - "security": { |
95 | | - "noDangerouslySetInnerHtmlWithChildren": "error" |
96 | | - }, |
97 | | - "style": { |
98 | | - "noNamespace": "error", |
99 | | - "noRestrictedGlobals": { |
100 | | - "level": "error", |
101 | | - "options": { |
102 | | - "deniedGlobals": ["React"] |
103 | | - } |
104 | | - }, |
105 | | - "useAsConstAssertion": "error", |
106 | | - "useBlockStatements": "off" |
107 | | - }, |
108 | | - "suspicious": { |
109 | | - "noAsyncPromiseExecutor": "error", |
110 | | - "noCatchAssign": "error", |
111 | | - "noClassAssign": "error", |
112 | | - "noCommentText": "error", |
113 | | - "noCompareNegZero": "error", |
114 | | - "noControlCharactersInRegex": "error", |
115 | | - "noDebugger": "error", |
116 | | - "noDuplicateCase": "error", |
117 | | - "noDuplicateClassMembers": "error", |
118 | | - "noDuplicateJsxProps": "error", |
119 | | - "noDuplicateObjectKeys": "error", |
120 | | - "noDuplicateParameters": "error", |
121 | | - "noEmptyBlockStatements": "error", |
122 | | - "noExplicitAny": "warn", |
123 | | - "noExtraNonNullAssertion": "error", |
124 | | - "noFallthroughSwitchClause": "error", |
125 | | - "noFunctionAssign": "error", |
126 | | - "noGlobalAssign": "error", |
127 | | - "noImportAssign": "error", |
128 | | - "noMisleadingCharacterClass": "error", |
129 | | - "noMisleadingInstantiator": "error", |
130 | | - "noPrototypeBuiltins": "error", |
131 | | - "noRedeclare": "error", |
132 | | - "noShadowRestrictedNames": "error", |
133 | | - "noSparseArray": "error", |
134 | | - "noUnsafeDeclarationMerging": "error", |
135 | | - "noUnsafeNegation": "error", |
136 | | - "useGetterReturn": "error", |
137 | | - "useNamespaceKeyword": "error", |
138 | | - "useValidTypeof": "error" |
139 | | - } |
| 25 | + "recommended": true |
140 | 26 | } |
141 | | - }, |
142 | | - "overrides": [ |
143 | | - { |
144 | | - "include": ["*.ts", "*.tsx", "*.mts", "*.cts"], |
145 | | - "linter": { |
146 | | - "rules": { |
147 | | - "correctness": { |
148 | | - "noConstAssign": "off", |
149 | | - "noGlobalObjectCalls": "off", |
150 | | - "noInvalidBuiltinInstantiation": "off", |
151 | | - "noInvalidConstructorSuper": "off", |
152 | | - "noNewSymbol": "off", |
153 | | - "noSetterReturn": "off", |
154 | | - "noUndeclaredVariables": "off", |
155 | | - "noUnreachable": "off", |
156 | | - "noUnreachableSuper": "off" |
157 | | - }, |
158 | | - "style": { |
159 | | - "noArguments": "error", |
160 | | - "noVar": "error", |
161 | | - "useConst": "error" |
162 | | - }, |
163 | | - "suspicious": { |
164 | | - "noDuplicateClassMembers": "off", |
165 | | - "noDuplicateObjectKeys": "off", |
166 | | - "noDuplicateParameters": "off", |
167 | | - "noFunctionAssign": "off", |
168 | | - "noImportAssign": "off", |
169 | | - "noRedeclare": "off", |
170 | | - "noUnsafeNegation": "off", |
171 | | - "useGetterReturn": "off" |
172 | | - } |
173 | | - } |
174 | | - } |
175 | | - } |
176 | | - ] |
| 27 | + } |
177 | 28 | } |
0 commit comments