|
| 1 | +{ |
| 2 | + "$schema": "./node_modules/@biomejs/biome/configuration_schema.json", |
| 3 | + "vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true }, |
| 4 | + "files": { |
| 5 | + "ignoreUnknown": true |
| 6 | + }, |
| 7 | + "organizeImports": { "enabled": true }, |
| 8 | + "formatter": { "enabled": true, "indentStyle": "space" }, |
| 9 | + "css": { "formatter": { "quoteStyle": "single" } }, |
| 10 | + "linter": { |
| 11 | + "enabled": true, |
| 12 | + "rules": { |
| 13 | + "a11y": { |
| 14 | + "all": false |
| 15 | + }, |
| 16 | + "suspicious": { |
| 17 | + "noExplicitAny": "info", |
| 18 | + "noGlobalIsNan": "warn", |
| 19 | + "noImplicitAnyLet": "warn", |
| 20 | + "noAssignInExpressions": "warn", |
| 21 | + "noConfusingVoidType": "warn", |
| 22 | + "useNamespaceKeyword": "warn" // safe fix |
| 23 | + }, |
| 24 | + "style": { |
| 25 | + "noUnusedTemplateLiteral": "warn", |
| 26 | + "noInferrableTypes": "warn", // safe fix |
| 27 | + "noUselessElse": "warn", |
| 28 | + "useNodejsImportProtocol": "warn", |
| 29 | + "useTemplate": "warn", |
| 30 | + "useNumberNamespace": "warn", // safe fix |
| 31 | + "noNonNullAssertion": "warn", |
| 32 | + "useImportType": "warn", |
| 33 | + "noParameterAssign": "warn", |
| 34 | + "useDefaultParameterLast": "warn", |
| 35 | + "noCommaOperator": "warn", |
| 36 | + "useConst": "warn", |
| 37 | + "useSingleVarDeclarator": "warn", |
| 38 | + "noVar": "warn", |
| 39 | + "useShorthandFunctionType": "warn" // safe fix |
| 40 | + }, |
| 41 | + "correctness": { |
| 42 | + "noSwitchDeclarations": "warn", |
| 43 | + "noUnnecessaryContinue": "warn", |
| 44 | + "noInnerDeclarations": "warn" |
| 45 | + }, |
| 46 | + "complexity": { |
| 47 | + "useLiteralKeys": "warn", |
| 48 | + "noForEach": "off", |
| 49 | + "noUselessSwitchCase": "warn", |
| 50 | + "noUselessConstructor": "warn", |
| 51 | + "noBannedTypes": "warn", |
| 52 | + "noUselessTernary": "warn", |
| 53 | + "useArrowFunction": "warn", // safe fix |
| 54 | + "noExtraBooleanCast": "warn", |
| 55 | + "useOptionalChain": "warn" |
| 56 | + }, |
| 57 | + "performance": { |
| 58 | + "noDelete": "warn", |
| 59 | + "noAccumulatingSpread": "warn" |
| 60 | + } |
| 61 | + } |
| 62 | + }, |
| 63 | + "overrides": [ |
| 64 | + { |
| 65 | + "include": ["packages/tests-unit/**", "packages/tests-e2e/**"], |
| 66 | + "linter": { |
| 67 | + "rules": { |
| 68 | + "suspicious": { |
| 69 | + "noRedeclare": "warn" |
| 70 | + } |
| 71 | + } |
| 72 | + } |
| 73 | + }, |
| 74 | + { |
| 75 | + "include": ["examples/**/*"], |
| 76 | + "linter": { |
| 77 | + "rules": { |
| 78 | + "style": { |
| 79 | + "useSelfClosingElements": "warn" |
| 80 | + }, |
| 81 | + "correctness": { |
| 82 | + "useJsxKeyInIterable": "warn", |
| 83 | + "useExhaustiveDependencies": "warn" |
| 84 | + }, |
| 85 | + "suspicious": { |
| 86 | + "noArrayIndexKey": "warn", |
| 87 | + "noRedeclare": "warn" |
| 88 | + } |
| 89 | + } |
| 90 | + } |
| 91 | + } |
| 92 | + ] |
| 93 | +} |
0 commit comments