|
| 1 | +{ |
| 2 | + "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", |
| 3 | + "vcs": { |
| 4 | + "enabled": false, |
| 5 | + "clientKind": "git", |
| 6 | + "useIgnoreFile": false |
| 7 | + }, |
| 8 | + "files": { |
| 9 | + "include": ["src/**/*.ts", "src/**/*.tsx"], |
| 10 | + "ignoreUnknown": false, |
| 11 | + "ignore": ["vite-env.d.ts", "PasswordKeeper-help"] |
| 12 | + }, |
| 13 | + "formatter": { |
| 14 | + "enabled": true, |
| 15 | + "indentStyle": "space", |
| 16 | + "lineWidth": 120, |
| 17 | + "indentWidth": 4, |
| 18 | + "lineEnding": "lf" |
| 19 | + }, |
| 20 | + "organizeImports": { |
| 21 | + "enabled": true |
| 22 | + }, |
| 23 | + "linter": { |
| 24 | + "enabled": true, |
| 25 | + "rules": { |
| 26 | + "nursery": { |
| 27 | + "useConsistentCurlyBraces": "error" |
| 28 | + }, |
| 29 | + "recommended": false, |
| 30 | + "a11y": { |
| 31 | + "noBlankTarget": "error" |
| 32 | + }, |
| 33 | + "complexity": { |
| 34 | + "noExtraBooleanCast": "error", |
| 35 | + "noForEach": "error", |
| 36 | + "noMultipleSpacesInRegularExpressionLiterals": "error", |
| 37 | + "noStaticOnlyClass": "error", |
| 38 | + "noUselessCatch": "error", |
| 39 | + "noUselessSwitchCase": "error", |
| 40 | + "noUselessThisAlias": "error", |
| 41 | + "noUselessTypeConstraint": "error", |
| 42 | + "noWith": "error", |
| 43 | + "useArrowFunction": "error", |
| 44 | + "useDateNow": "error", |
| 45 | + "useFlatMap": "error" |
| 46 | + }, |
| 47 | + "correctness": { |
| 48 | + "noChildrenProp": "error", |
| 49 | + "noConstAssign": "error", |
| 50 | + "noConstantCondition": "error", |
| 51 | + "noEmptyCharacterClassInRegex": "error", |
| 52 | + "noEmptyPattern": "error", |
| 53 | + "noGlobalObjectCalls": "error", |
| 54 | + "noInnerDeclarations": "error", |
| 55 | + "noInvalidBuiltinInstantiation": "error", |
| 56 | + "noInvalidConstructorSuper": "error", |
| 57 | + "noNewSymbol": "error", |
| 58 | + "noNonoctalDecimalEscape": "error", |
| 59 | + "noPrecisionLoss": "error", |
| 60 | + "noSelfAssign": "error", |
| 61 | + "noSetterReturn": "error", |
| 62 | + "noSwitchDeclarations": "error", |
| 63 | + "noUndeclaredVariables": "off", |
| 64 | + "noUnreachable": "error", |
| 65 | + "noUnreachableSuper": "error", |
| 66 | + "noUnsafeFinally": "error", |
| 67 | + "noUnsafeOptionalChaining": "error", |
| 68 | + "noUnusedLabels": "error", |
| 69 | + "noUnusedVariables": "warn", |
| 70 | + "useArrayLiterals": "off", |
| 71 | + "useExhaustiveDependencies": "warn", |
| 72 | + "useHookAtTopLevel": "error", |
| 73 | + "useIsNan": "error", |
| 74 | + "useJsxKeyInIterable": "error", |
| 75 | + "useValidForDirection": "error", |
| 76 | + "useYield": "error" |
| 77 | + }, |
| 78 | + "security": { |
| 79 | + "noDangerouslySetInnerHtmlWithChildren": "error" |
| 80 | + }, |
| 81 | + "style": { |
| 82 | + "noNamespace": "error", |
| 83 | + "noNegationElse": "off", |
| 84 | + "useAsConstAssertion": "error", |
| 85 | + "useBlockStatements": "error", |
| 86 | + "useExplicitLengthCheck": "error", |
| 87 | + "useImportType": "error", |
| 88 | + "useFilenamingConvention": { |
| 89 | + "level": "error", |
| 90 | + "options": { |
| 91 | + "requireAscii": true, |
| 92 | + "filenameCases": ["PascalCase"] |
| 93 | + } |
| 94 | + }, |
| 95 | + "useForOf": "error", |
| 96 | + "useNodejsImportProtocol": "error", |
| 97 | + "useNumberNamespace": "error", |
| 98 | + "useThrowNewError": "error" |
| 99 | + }, |
| 100 | + "suspicious": { |
| 101 | + "noAssignInExpressions": "error", |
| 102 | + "noAsyncPromiseExecutor": "error", |
| 103 | + "noCatchAssign": "error", |
| 104 | + "noClassAssign": "error", |
| 105 | + "noCommentText": "error", |
| 106 | + "noCompareNegZero": "error", |
| 107 | + "noConsole": "warn", |
| 108 | + "noControlCharactersInRegex": "error", |
| 109 | + "noDebugger": "error", |
| 110 | + "noDoubleEquals": "error", |
| 111 | + "noDuplicateCase": "error", |
| 112 | + "noDuplicateClassMembers": "error", |
| 113 | + "noDuplicateJsxProps": "error", |
| 114 | + "noDuplicateObjectKeys": "error", |
| 115 | + "noDuplicateParameters": "error", |
| 116 | + "noEmptyBlockStatements": "error", |
| 117 | + "noExplicitAny": "warn", |
| 118 | + "noExtraNonNullAssertion": "error", |
| 119 | + "noFallthroughSwitchClause": "error", |
| 120 | + "noFunctionAssign": "error", |
| 121 | + "noGlobalAssign": "error", |
| 122 | + "noImportAssign": "error", |
| 123 | + "noMisleadingCharacterClass": "error", |
| 124 | + "noMisleadingInstantiator": "error", |
| 125 | + "noPrototypeBuiltins": "error", |
| 126 | + "noRedeclare": "error", |
| 127 | + "noShadowRestrictedNames": "error", |
| 128 | + "noSparseArray": "error", |
| 129 | + "noThenProperty": "error", |
| 130 | + "noUnsafeDeclarationMerging": "error", |
| 131 | + "noUnsafeNegation": "error", |
| 132 | + "useErrorMessage": "error", |
| 133 | + "useGetterReturn": "error", |
| 134 | + "useIsArray": "error", |
| 135 | + "useNamespaceKeyword": "error", |
| 136 | + "useNumberToFixedDigitsArgument": "error", |
| 137 | + "useValidTypeof": "error" |
| 138 | + } |
| 139 | + }, |
| 140 | + "ignore": ["**/.eslintrc.cjs", "src/localization/rust_i18n_transform", "**/vite.config.ts", "main.tsx"] |
| 141 | + }, |
| 142 | + "javascript": { |
| 143 | + "formatter": { |
| 144 | + "quoteStyle": "double", |
| 145 | + "arrowParentheses": "asNeeded", |
| 146 | + "trailingCommas": "es5", |
| 147 | + "lineEnding": "lf" |
| 148 | + } |
| 149 | + }, |
| 150 | + "json": { |
| 151 | + "formatter": { |
| 152 | + "lineEnding": "lf", |
| 153 | + "enabled": true, |
| 154 | + "indentStyle": "space", |
| 155 | + "indentWidth": 4, |
| 156 | + "trailingCommas": "none" |
| 157 | + } |
| 158 | + }, |
| 159 | + "css": { |
| 160 | + "formatter": { |
| 161 | + "lineEnding": "lf", |
| 162 | + "enabled": true, |
| 163 | + "indentStyle": "space", |
| 164 | + "indentWidth": 2 |
| 165 | + } |
| 166 | + } |
| 167 | +} |
0 commit comments