|
| 1 | +{ |
| 2 | + "$schema": "https://biomejs.dev/schemas/2.3.3/schema.json", |
| 3 | + "vcs": { |
| 4 | + "enabled": true, |
| 5 | + "clientKind": "git", |
| 6 | + "useIgnoreFile": true |
| 7 | + }, |
| 8 | + "files": { |
| 9 | + "ignoreUnknown": false, |
| 10 | + "ignore": [ |
| 11 | + "**/*.json", |
| 12 | + "!biome.json" |
| 13 | + ] |
| 14 | + }, |
| 15 | + "formatter": { |
| 16 | + "enabled": true, |
| 17 | + "indentStyle": "space", |
| 18 | + "indentWidth": 2, |
| 19 | + "lineWidth": 100, |
| 20 | + "attributePosition": "multiline" |
| 21 | + }, |
| 22 | + "organizeImports": { |
| 23 | + "enabled": true |
| 24 | + }, |
| 25 | + "linter": { |
| 26 | + "enabled": true, |
| 27 | + "rules": { |
| 28 | + "recommended": true, |
| 29 | + "complexity": { |
| 30 | + "useLiteralKeys": "off", |
| 31 | + "noExtraBooleanCast": "off", |
| 32 | + "noForEach": "off", |
| 33 | + "noBannedTypes": "error", |
| 34 | + "noUselessSwitchCase": "off" |
| 35 | + }, |
| 36 | + "style": { |
| 37 | + "noNonNullAssertion": "off", |
| 38 | + "useNodejsImportProtocol": "off", |
| 39 | + "useTemplate": "off", |
| 40 | + "useBlockStatements": "error", |
| 41 | + "noParameterAssign": "error", |
| 42 | + "useConst": "error", |
| 43 | + "useAsConstAssertion": "error", |
| 44 | + "useDefaultParameterLast": "error", |
| 45 | + "useEnumInitializers": "error", |
| 46 | + "useSelfClosingElements": "error", |
| 47 | + "useSingleVarDeclarator": "error", |
| 48 | + "noUnusedTemplateLiteral": "error", |
| 49 | + "useNumberNamespace": "error", |
| 50 | + "noInferrableTypes": "error", |
| 51 | + "noUselessElse": "error", |
| 52 | + "useImportType": "error" |
| 53 | + }, |
| 54 | + "correctness": { |
| 55 | + "noUnusedImports": "error", |
| 56 | + "useExhaustiveDependencies": "off", |
| 57 | + "noUnknownFunction": "off", |
| 58 | + "noChildrenProp": "off", |
| 59 | + "noInnerDeclarations": "error" |
| 60 | + }, |
| 61 | + "suspicious": { |
| 62 | + "noExplicitAny": "error", |
| 63 | + "noArrayIndexKey": "off", |
| 64 | + "noAssignInExpressions": "error", |
| 65 | + "noAsyncPromiseExecutor": "off", |
| 66 | + "noFallthroughSwitchClause": "error", |
| 67 | + "noConsole": "off", |
| 68 | + "noDoubleEquals": { |
| 69 | + "level": "error", |
| 70 | + "options": { |
| 71 | + "ignoreNull": false |
| 72 | + } |
| 73 | + }, |
| 74 | + "noExtraNonNullAssertion": "error" |
| 75 | + }, |
| 76 | + "performance": { |
| 77 | + "recommended": true, |
| 78 | + "noAccumulatingSpread": "error" |
| 79 | + }, |
| 80 | + "security": { |
| 81 | + "recommended": true |
| 82 | + } |
| 83 | + } |
| 84 | + }, |
| 85 | + "javascript": { |
| 86 | + "formatter": { |
| 87 | + "lineWidth": 100, |
| 88 | + "arrowParentheses": "always", |
| 89 | + "jsxQuoteStyle": "single", |
| 90 | + "attributePosition": "multiline", |
| 91 | + "quoteProperties": "asNeeded", |
| 92 | + "trailingCommas": "all", |
| 93 | + "semicolons": "always", |
| 94 | + "bracketSpacing": true, |
| 95 | + "bracketSameLine": false, |
| 96 | + "quoteStyle": "single" |
| 97 | + } |
| 98 | + } |
| 99 | +} |
0 commit comments