|
1 | 1 | { |
2 | 2 | "$schema": "https://biomejs.dev/schemas/1.8.3/schema.json", |
3 | | - "organizeImports": { |
4 | | - "enabled": true |
5 | | - }, |
| 3 | + "organizeImports": { "enabled": true }, |
6 | 4 | "linter": { |
7 | 5 | "enabled": true, |
8 | 6 | "rules": { |
9 | | - "recommended": true |
| 7 | + "recommended": false, |
| 8 | + "a11y": { |
| 9 | + "noAriaUnsupportedElements": "warn", |
| 10 | + "noBlankTarget": "off", |
| 11 | + "useAltText": "warn", |
| 12 | + "useAriaPropsForRole": "warn", |
| 13 | + "useValidAriaProps": "warn", |
| 14 | + "useValidAriaValues": "warn" |
| 15 | + }, |
| 16 | + "complexity": { |
| 17 | + "noBannedTypes": "error", |
| 18 | + "noUselessTypeConstraint": "error" |
| 19 | + }, |
| 20 | + "correctness": { |
| 21 | + "noChildrenProp": "error", |
| 22 | + "noPrecisionLoss": "error", |
| 23 | + "noUnusedVariables": "error", |
| 24 | + "useArrayLiterals": "off", |
| 25 | + "useExhaustiveDependencies": "warn", |
| 26 | + "useHookAtTopLevel": "error", |
| 27 | + "useJsxKeyInIterable": "error" |
| 28 | + }, |
| 29 | + "security": { "noDangerouslySetInnerHtmlWithChildren": "error" }, |
| 30 | + "style": { "noNamespace": "error", "useAsConstAssertion": "error" }, |
| 31 | + "suspicious": { |
| 32 | + "noCommentText": "error", |
| 33 | + "noDuplicateJsxProps": "error", |
| 34 | + "noExplicitAny": "error", |
| 35 | + "noExtraNonNullAssertion": "error", |
| 36 | + "noMisleadingInstantiator": "error", |
| 37 | + "noUnsafeDeclarationMerging": "error" |
| 38 | + } |
| 39 | + } |
| 40 | + }, |
| 41 | + "overrides": [ |
| 42 | + { "include": ["**/*.ts?(x)"] }, |
| 43 | + { |
| 44 | + "include": ["*.ts", "*.tsx", "*.mts", "*.cts"], |
| 45 | + "linter": { |
| 46 | + "rules": { |
| 47 | + "correctness": { |
| 48 | + "noConstAssign": "off", |
| 49 | + "noGlobalObjectCalls": "off", |
| 50 | + "noInvalidConstructorSuper": "off", |
| 51 | + "noNewSymbol": "off", |
| 52 | + "noSetterReturn": "off", |
| 53 | + "noUndeclaredVariables": "off", |
| 54 | + "noUnreachable": "off", |
| 55 | + "noUnreachableSuper": "off" |
| 56 | + }, |
| 57 | + "style": { |
| 58 | + "noArguments": "error", |
| 59 | + "noVar": "error", |
| 60 | + "useConst": "error" |
| 61 | + }, |
| 62 | + "suspicious": { |
| 63 | + "noDuplicateClassMembers": "off", |
| 64 | + "noDuplicateObjectKeys": "off", |
| 65 | + "noDuplicateParameters": "off", |
| 66 | + "noFunctionAssign": "off", |
| 67 | + "noImportAssign": "off", |
| 68 | + "noRedeclare": "off", |
| 69 | + "noUnsafeNegation": "off", |
| 70 | + "useGetterReturn": "off" |
| 71 | + } |
| 72 | + } |
| 73 | + } |
10 | 74 | } |
11 | | - } |
| 75 | + ] |
12 | 76 | } |
0 commit comments