|
| 1 | +{ |
| 2 | + "$schema": "https://unpkg.com/@biomejs/biome/configuration_schema.json", |
| 3 | + "files": { |
| 4 | + "ignore": ["node_modules/**/*"] |
| 5 | + }, |
| 6 | + "vcs": { |
| 7 | + "useIgnoreFile": true |
| 8 | + }, |
| 9 | + "linter": { |
| 10 | + "enabled": true, |
| 11 | + "ignore": ["node_modules/**/*"], |
| 12 | + "rules": { |
| 13 | + "recommended": true, |
| 14 | + "a11y": { |
| 15 | + "noAriaHiddenOnFocusable": "off", |
| 16 | + "useIframeTitle": "warn", |
| 17 | + "useKeyWithClickEvents": "warn", |
| 18 | + "useKeyWithMouseEvents": "warn" |
| 19 | + }, |
| 20 | + "complexity": { |
| 21 | + "noForEach": "error", |
| 22 | + "noVoid": "off", |
| 23 | + "useOptionalChain": "warn", |
| 24 | + "useSimplifiedLogicExpression": "error" |
| 25 | + }, |
| 26 | + "correctness": { |
| 27 | + "noConstantMathMinMaxClamp": "error", |
| 28 | + "noInvalidNewBuiltin": "error", |
| 29 | + "noNewSymbol": "error", |
| 30 | + "noNodejsModules": "off", |
| 31 | + "noUndeclaredDependencies": "off", |
| 32 | + "noUndeclaredVariables": "error", |
| 33 | + "noUnusedFunctionParameters": "error", |
| 34 | + "noUnusedImports": "error", |
| 35 | + "noUnusedPrivateClassMembers": "error", |
| 36 | + "noUnusedVariables": "error", |
| 37 | + "useArrayLiterals": "error" |
| 38 | + }, |
| 39 | + "performance": { |
| 40 | + "noAccumulatingSpread": "error", |
| 41 | + "useTopLevelRegex": "error" |
| 42 | + }, |
| 43 | + "security": { |
| 44 | + "noGlobalEval": "off" |
| 45 | + }, |
| 46 | + "style": { |
| 47 | + "noArguments": "error", |
| 48 | + "noImplicitBoolean": "error", |
| 49 | + "noInferrableTypes": "error", |
| 50 | + "noNamespace": "error", |
| 51 | + "noNegationElse": "error", |
| 52 | + "noRestrictedGlobals": "error", |
| 53 | + "noShoutyConstants": "error", |
| 54 | + "noUnusedTemplateLiteral": "error", |
| 55 | + "noUselessElse": "error", |
| 56 | + "noVar": "error", |
| 57 | + "noYodaExpression": "error", |
| 58 | + "useAsConstAssertion": "error", |
| 59 | + "useBlockStatements": "error", |
| 60 | + "useCollapsedElseIf": "error", |
| 61 | + "useConsistentArrayType": "error", |
| 62 | + "useConsistentBuiltinInstantiation": "error", |
| 63 | + "useConst": "error", |
| 64 | + "useDefaultParameterLast": "error", |
| 65 | + "useEnumInitializers": "error", |
| 66 | + "useExponentiationOperator": "error", |
| 67 | + "useExportType": "error", |
| 68 | + "useFragmentSyntax": "error", |
| 69 | + "useForOf": "warn", |
| 70 | + "useImportType": "error", |
| 71 | + "useLiteralEnumMembers": "error", |
| 72 | + "useNodejsImportProtocol": "warn", |
| 73 | + "useNumberNamespace": "error", |
| 74 | + "useNumericLiterals": "error", |
| 75 | + "useSelfClosingElements": "error", |
| 76 | + "useShorthandArrayType": "error", |
| 77 | + "useShorthandAssign": "error", |
| 78 | + "useShorthandFunctionType": "warn", |
| 79 | + "useSingleCaseStatement": "error", |
| 80 | + "useSingleVarDeclarator": "error", |
| 81 | + "useTemplate": "off", |
| 82 | + "useWhile": "error" |
| 83 | + }, |
| 84 | + "suspicious": { |
| 85 | + "noConsoleLog": "warn", |
| 86 | + "noConstEnum": "off", |
| 87 | + "noDebugger": "off", |
| 88 | + "noEmptyBlockStatements": "error", |
| 89 | + "noExplicitAny": "warn", |
| 90 | + "noImplicitAnyLet": "off", |
| 91 | + "noMisrefactoredShorthandAssign": "off", |
| 92 | + "noSelfCompare": "off", |
| 93 | + "noSparseArray": "off", |
| 94 | + "noThenProperty": "warn", |
| 95 | + "useAwait": "error", |
| 96 | + "useErrorMessage": "error" |
| 97 | + } |
| 98 | + } |
| 99 | + }, |
| 100 | + "formatter": { |
| 101 | + "enabled": true, |
| 102 | + "ignore": ["node_modules/**/*"], |
| 103 | + "formatWithErrors": false, |
| 104 | + "indentWidth": 2, |
| 105 | + "indentStyle": "space", |
| 106 | + "lineEnding": "lf", |
| 107 | + "lineWidth": 80 |
| 108 | + }, |
| 109 | + "organizeImports": { |
| 110 | + "enabled": true, |
| 111 | + "ignore": ["node_modules/**/*"] |
| 112 | + }, |
| 113 | + "javascript": { |
| 114 | + "formatter": { |
| 115 | + "enabled": true, |
| 116 | + "arrowParentheses": "asNeeded", |
| 117 | + "bracketSameLine": false, |
| 118 | + "bracketSpacing": true, |
| 119 | + "indentWidth": 2, |
| 120 | + "indentStyle": "space", |
| 121 | + "jsxQuoteStyle": "double", |
| 122 | + "lineEnding": "lf", |
| 123 | + "lineWidth": 80, |
| 124 | + "quoteProperties": "asNeeded", |
| 125 | + "quoteStyle": "single", |
| 126 | + "semicolons": "always", |
| 127 | + "trailingCommas": "all" |
| 128 | + }, |
| 129 | + "globals": [], |
| 130 | + "parser": { |
| 131 | + "unsafeParameterDecoratorsEnabled": true |
| 132 | + } |
| 133 | + }, |
| 134 | + "json": { |
| 135 | + "formatter": { |
| 136 | + "enabled": true, |
| 137 | + "indentWidth": 2, |
| 138 | + "indentStyle": "space", |
| 139 | + "lineEnding": "lf", |
| 140 | + "lineWidth": 80 |
| 141 | + }, |
| 142 | + "parser": { |
| 143 | + "allowComments": false, |
| 144 | + "allowTrailingCommas": false |
| 145 | + } |
| 146 | + } |
| 147 | +} |
0 commit comments