|
28 | 28 | }
|
29 | 29 | },
|
30 | 30 | "css": {
|
31 |
| - "linter": { |
32 |
| - "enabled": false |
33 |
| - }, |
34 | 31 | "formatter": {
|
35 |
| - "enabled": false, |
36 |
| - "indentStyle": "space" |
| 32 | + "quoteStyle": "single" |
37 | 33 | }
|
38 | 34 | },
|
39 | 35 | "linter": {
|
|
48 | 44 | "noDistractingElements": "warn",
|
49 | 45 | "noHeaderScope": "warn",
|
50 | 46 | "noInteractiveElementToNoninteractiveRole": "warn",
|
| 47 | + "noLabelWithoutControl": "off", |
51 | 48 | "noNoninteractiveElementToInteractiveRole": "warn",
|
52 | 49 | "noNoninteractiveTabindex": "warn",
|
53 | 50 | "noPositiveTabindex": "warn",
|
|
59 | 56 | "useAriaActivedescendantWithTabindex": "warn",
|
60 | 57 | "useAriaPropsForRole": "warn",
|
61 | 58 | "useButtonType": "warn",
|
| 59 | + "useFocusableInteractive": "off", |
| 60 | + "useGenericFontNames": "warn", |
62 | 61 | "useHeadingContent": "warn",
|
63 | 62 | "useHtmlLang": "warn",
|
64 | 63 | "useIframeTitle": "warn",
|
65 | 64 | "useKeyWithClickEvents": "off",
|
66 | 65 | "useKeyWithMouseEvents": "warn",
|
67 | 66 | "useMediaCaption": "off",
|
| 67 | + "useSemanticElements": "off", |
68 | 68 | "useValidAnchor": "warn",
|
69 | 69 | "useValidAriaProps": "warn",
|
70 | 70 | "useValidAriaRole": "warn",
|
|
88 | 88 | "noUselessLabel": "warn",
|
89 | 89 | "noUselessLoneBlockStatements": "warn",
|
90 | 90 | "noUselessRename": "warn",
|
| 91 | + "noUselessStringConcat": "warn", |
91 | 92 | "noUselessSwitchCase": "warn",
|
92 | 93 | "noUselessTernary": "warn",
|
93 | 94 | "noUselessThisAlias": "warn",
|
94 | 95 | "noUselessTypeConstraint": "warn",
|
| 96 | + "noUselessUndefinedInitialization": "warn", |
95 | 97 | "noVoid": "warn",
|
96 | 98 | "noWith": "warn",
|
97 | 99 | "useArrowFunction": "warn",
|
| 100 | + "useDateNow": "warn", |
98 | 101 | "useFlatMap": "warn",
|
99 | 102 | "useLiteralKeys": "warn",
|
100 | 103 | "useOptionalChain": "warn",
|
|
113 | 116 | "noFlatMapIdentity": "warn",
|
114 | 117 | "noGlobalObjectCalls": "warn",
|
115 | 118 | "noInnerDeclarations": "warn",
|
| 119 | + "noInvalidBuiltinInstantiation": "warn", |
116 | 120 | "noInvalidConstructorSuper": "warn",
|
| 121 | + "noInvalidDirectionInLinearGradient": "warn", |
| 122 | + "noInvalidGridAreas": "warn", |
117 | 123 | "noInvalidNewBuiltin": "warn",
|
| 124 | + "noInvalidPositionAtImportRule": "warn", |
118 | 125 | "noInvalidUseBeforeDeclaration": "warn",
|
119 | 126 | "noNewSymbol": "warn",
|
120 |
| - "noNodejsModules": "off", |
| 127 | + "noNodejsModules": "warn", |
121 | 128 | "noNonoctalDecimalEscape": "warn",
|
122 | 129 | "noPrecisionLoss": "warn",
|
123 | 130 | "noRenderReturnValue": "warn",
|
124 | 131 | "noSelfAssign": "warn",
|
125 | 132 | "noSetterReturn": "warn",
|
126 | 133 | "noStringCaseMismatch": "warn",
|
127 | 134 | "noSwitchDeclarations": "warn",
|
| 135 | + "noUndeclaredDependencies": "warn", |
128 | 136 | "noUndeclaredVariables": "off",
|
| 137 | + "noUnknownFunction": "warn", |
| 138 | + "noUnknownMediaFeatureName": "warn", |
| 139 | + "noUnknownProperty": "warn", |
| 140 | + "noUnknownUnit": "warn", |
| 141 | + "noUnmatchableAnbSelector": "warn", |
129 | 142 | "noUnnecessaryContinue": "warn",
|
130 | 143 | "noUnreachable": "warn",
|
131 | 144 | "noUnreachableSuper": "warn",
|
132 | 145 | "noUnsafeFinally": "warn",
|
133 | 146 | "noUnsafeOptionalChaining": "warn",
|
| 147 | + "noUnusedFunctionParameters": "off", |
134 | 148 | "noUnusedImports": "warn",
|
135 | 149 | "noUnusedLabels": "warn",
|
136 | 150 | "noUnusedPrivateClassMembers": "warn",
|
|
140 | 154 | "useArrayLiterals": "warn",
|
141 | 155 | "useExhaustiveDependencies": "off",
|
142 | 156 | "useHookAtTopLevel": "warn",
|
| 157 | + "useImportExtensions": "off", |
143 | 158 | "useIsNan": "warn",
|
144 | 159 | "useJsxKeyInIterable": "off",
|
145 | 160 | "useValidForDirection": "warn",
|
|
149 | 164 | "noAccumulatingSpread": "warn",
|
150 | 165 | "noBarrelFile": "off",
|
151 | 166 | "noDelete": "warn",
|
152 |
| - "noReExportAll": "off" |
| 167 | + "noReExportAll": "off", |
| 168 | + "useTopLevelRegex": "warn" |
153 | 169 | },
|
154 | 170 | "security": {
|
155 | 171 | "noDangerouslySetInnerHtml": "warn",
|
|
160 | 176 | "noArguments": "warn",
|
161 | 177 | "noCommaOperator": "warn",
|
162 | 178 | "noDefaultExport": "off",
|
| 179 | + "noDoneCallback": "warn", |
163 | 180 | "noImplicitBoolean": "off",
|
164 | 181 | "noInferrableTypes": "warn",
|
165 | 182 | "noNamespace": "warn",
|
|
173 | 190 | "noUnusedTemplateLiteral": "warn",
|
174 | 191 | "noUselessElse": "warn",
|
175 | 192 | "noVar": "warn",
|
| 193 | + "noYodaExpression": "warn", |
176 | 194 | "useAsConstAssertion": "warn",
|
177 | 195 | "useBlockStatements": "off",
|
178 | 196 | "useCollapsedElseIf": "warn",
|
179 | 197 | "useConsistentArrayType": "warn",
|
| 198 | + "useConsistentBuiltinInstantiation": "warn", |
180 | 199 | "useConst": "warn",
|
181 | 200 | "useDefaultParameterLast": "off",
|
| 201 | + "useDefaultSwitchClause": "warn", |
182 | 202 | "useEnumInitializers": "warn",
|
| 203 | + "useExplicitLengthCheck": "off", |
183 | 204 | "useExponentiationOperator": "warn",
|
184 | 205 | "useExportType": "warn",
|
185 | 206 | "useFilenamingConvention": "off",
|
|
199 | 220 | "useSingleCaseStatement": "off",
|
200 | 221 | "useSingleVarDeclarator": "warn",
|
201 | 222 | "useTemplate": "warn",
|
| 223 | + "useThrowNewError": "warn", |
| 224 | + "useThrowOnlyError": "warn", |
202 | 225 | "useWhile": "warn"
|
203 | 226 | },
|
204 | 227 | "suspicious": {
|
205 | 228 | "noApproximativeNumericConstant": "warn",
|
206 | 229 | "noArrayIndexKey": "off",
|
207 |
| - "noAssignInExpressions": "off", |
| 230 | + "noAssignInExpressions": "warn", |
208 | 231 | "noAsyncPromiseExecutor": "warn",
|
209 | 232 | "noCatchAssign": "warn",
|
210 | 233 | "noClassAssign": "warn",
|
211 | 234 | "noCommentText": "warn",
|
212 | 235 | "noCompareNegZero": "warn",
|
213 | 236 | "noConfusingLabels": "warn",
|
214 | 237 | "noConfusingVoidType": "warn",
|
| 238 | + "noConsole": "warn", |
215 | 239 | "noConsoleLog": "warn",
|
216 | 240 | "noConstEnum": "warn",
|
217 | 241 | "noControlCharactersInRegex": "warn",
|
218 | 242 | "noDebugger": "warn",
|
219 | 243 | "noDoubleEquals": "warn",
|
| 244 | + "noDuplicateAtImportRules": "warn", |
220 | 245 | "noDuplicateCase": "warn",
|
221 | 246 | "noDuplicateClassMembers": "warn",
|
| 247 | + "noDuplicateFontNames": "warn", |
222 | 248 | "noDuplicateJsxProps": "warn",
|
223 | 249 | "noDuplicateObjectKeys": "warn",
|
224 | 250 | "noDuplicateParameters": "warn",
|
| 251 | + "noDuplicateSelectorsKeyframeBlock": "warn", |
225 | 252 | "noDuplicateTestHooks": "warn",
|
| 253 | + "noEmptyBlock": "warn", |
226 | 254 | "noEmptyBlockStatements": "off",
|
227 | 255 | "noEmptyInterface": "warn",
|
| 256 | + "noEvolvingTypes": "off", |
228 | 257 | "noExplicitAny": "off",
|
229 | 258 | "noExportsInTest": "warn",
|
230 | 259 | "noExtraNonNullAssertion": "warn",
|
|
236 | 265 | "noGlobalIsNan": "warn",
|
237 | 266 | "noImplicitAnyLet": "off",
|
238 | 267 | "noImportAssign": "warn",
|
| 268 | + "noImportantInKeyframe": "warn", |
239 | 269 | "noLabelVar": "warn",
|
240 | 270 | "noMisleadingCharacterClass": "warn",
|
241 | 271 | "noMisleadingInstantiator": "warn",
|
| 272 | + "noMisplacedAssertion": "off", |
242 | 273 | "noMisrefactoredShorthandAssign": "warn",
|
243 | 274 | "noPrototypeBuiltins": "warn",
|
| 275 | + "noReactSpecificProps": "off", |
244 | 276 | "noRedeclare": "warn",
|
245 | 277 | "noRedundantUseStrict": "warn",
|
246 | 278 | "noSelfCompare": "warn",
|
247 | 279 | "noShadowRestrictedNames": "warn",
|
| 280 | + "noShorthandPropertyOverrides": "warn", |
248 | 281 | "noSkippedTests": "warn",
|
249 | 282 | "noSparseArray": "warn",
|
250 | 283 | "noSuspiciousSemicolonInJsx": "warn",
|
|
253 | 286 | "noUnsafeNegation": "warn",
|
254 | 287 | "useAwait": "warn",
|
255 | 288 | "useDefaultSwitchClauseLast": "warn",
|
| 289 | + "useErrorMessage": "warn", |
256 | 290 | "useGetterReturn": "warn",
|
257 | 291 | "useIsArray": "warn",
|
258 | 292 | "useNamespaceKeyword": "warn",
|
| 293 | + "useNumberToFixedDigitsArgument": "warn", |
259 | 294 | "useValidTypeof": "warn"
|
260 | 295 | }
|
261 | 296 | }
|
|
264 | 299 | "enabled": false
|
265 | 300 | },
|
266 | 301 | "overrides": [
|
| 302 | + { |
| 303 | + "include": ["**/*.test.*"], |
| 304 | + "linter": { |
| 305 | + "rules": { |
| 306 | + "performance": { |
| 307 | + "useTopLevelRegex": "off" |
| 308 | + } |
| 309 | + } |
| 310 | + } |
| 311 | + }, |
267 | 312 | {
|
268 | 313 | "include": ["**/*.js"],
|
269 | 314 | "linter": {
|
270 | 315 | "rules": {
|
| 316 | + "correctness": { |
| 317 | + "noNodejsModules": "off" |
| 318 | + }, |
271 | 319 | "suspicious": {
|
| 320 | + "noConsole": "off", |
272 | 321 | "noConsoleLog": "off"
|
273 | 322 | }
|
274 | 323 | }
|
|
0 commit comments