|
| 1 | +{ |
| 2 | + "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json", |
| 3 | + "vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false }, |
| 4 | + "files": { "ignoreUnknown": false, "ignore": ["dist", "coverage", "test/compliance"] }, |
| 5 | + "formatter": { |
| 6 | + "enabled": true, |
| 7 | + "useEditorconfig": true, |
| 8 | + "formatWithErrors": false, |
| 9 | + "indentStyle": "space", |
| 10 | + "indentWidth": 2, |
| 11 | + "lineEnding": "lf", |
| 12 | + "lineWidth": 120, |
| 13 | + "attributePosition": "auto", |
| 14 | + "bracketSpacing": true, |
| 15 | + "ignore": ["**/tests/fixtures/**/*", "**/dist", "**/coverage", "**/.vscode"] |
| 16 | + }, |
| 17 | + "organizeImports": { "enabled": true }, |
| 18 | + "linter": { |
| 19 | + "enabled": true, |
| 20 | + "rules": { |
| 21 | + "recommended": false, |
| 22 | + "complexity": { "noBannedTypes": "error" }, |
| 23 | + "correctness": { "noUnusedVariables": "warn", "useArrayLiterals": "off" }, |
| 24 | + "style": { |
| 25 | + "noInferrableTypes": "error", |
| 26 | + "noNamespace": "error", |
| 27 | + "noNonNullAssertion": "warn", |
| 28 | + "useAsConstAssertion": "error", |
| 29 | + "useBlockStatements": "error" |
| 30 | + }, |
| 31 | + "suspicious": { |
| 32 | + "noEmptyBlockStatements": "off", |
| 33 | + "noExplicitAny": "warn", |
| 34 | + "noExtraNonNullAssertion": "error", |
| 35 | + "noMisleadingInstantiator": "error", |
| 36 | + "useNamespaceKeyword": "error" |
| 37 | + } |
| 38 | + }, |
| 39 | + "ignore": [ |
| 40 | + "**/node_modules", |
| 41 | + "**/dist", |
| 42 | + "**/jest.config.js", |
| 43 | + "**/fixtures", |
| 44 | + "**/shared-fixtures", |
| 45 | + "**/coverage", |
| 46 | + "**/__snapshots__", |
| 47 | + "src/**/*.js" |
| 48 | + ] |
| 49 | + }, |
| 50 | + "javascript": { |
| 51 | + "formatter": { |
| 52 | + "jsxQuoteStyle": "double", |
| 53 | + "quoteProperties": "asNeeded", |
| 54 | + "trailingCommas": "all", |
| 55 | + "semicolons": "always", |
| 56 | + "arrowParentheses": "asNeeded", |
| 57 | + "bracketSameLine": false, |
| 58 | + "quoteStyle": "single", |
| 59 | + "attributePosition": "auto", |
| 60 | + "bracketSpacing": true |
| 61 | + } |
| 62 | + }, |
| 63 | + "overrides": [ |
| 64 | + { |
| 65 | + "include": ["*.ts", "*.tsx"], |
| 66 | + "linter": { |
| 67 | + "rules": { |
| 68 | + "correctness": { |
| 69 | + "noConstAssign": "off", |
| 70 | + "noGlobalObjectCalls": "off", |
| 71 | + "noInvalidConstructorSuper": "off", |
| 72 | + "noNewSymbol": "off", |
| 73 | + "noSetterReturn": "off", |
| 74 | + "noUndeclaredVariables": "off", |
| 75 | + "noUnreachable": "off", |
| 76 | + "noUnreachableSuper": "off" |
| 77 | + }, |
| 78 | + "style": { |
| 79 | + "noArguments": "error", |
| 80 | + "noVar": "error", |
| 81 | + "useConst": "error" |
| 82 | + }, |
| 83 | + "suspicious": { |
| 84 | + "noDuplicateClassMembers": "off", |
| 85 | + "noDuplicateObjectKeys": "off", |
| 86 | + "noDuplicateParameters": "off", |
| 87 | + "noFunctionAssign": "off", |
| 88 | + "noImportAssign": "off", |
| 89 | + "noRedeclare": "off", |
| 90 | + "noUnsafeNegation": "off", |
| 91 | + "useGetterReturn": "off", |
| 92 | + "useValidTypeof": "off" |
| 93 | + } |
| 94 | + } |
| 95 | + } |
| 96 | + } |
| 97 | + ] |
| 98 | +} |
0 commit comments