|
| 1 | +{ |
| 2 | + "$schema": "https://biomejs.dev/schemas/2.0.6/schema.json", |
| 3 | + "formatter": { |
| 4 | + "enabled": true, |
| 5 | + "formatWithErrors": false, |
| 6 | + "indentStyle": "space", |
| 7 | + "indentWidth": 2, |
| 8 | + "lineEnding": "lf", |
| 9 | + "lineWidth": 80, |
| 10 | + "attributePosition": "auto", |
| 11 | + "bracketSameLine": false, |
| 12 | + "expand": "auto" |
| 13 | + }, |
| 14 | + "files": { |
| 15 | + "ignoreUnknown": true, |
| 16 | + "includes": ["**/*", "!**/dist/**"] |
| 17 | + }, |
| 18 | + "linter": { |
| 19 | + "enabled": true, |
| 20 | + "rules": { "recommended": false } |
| 21 | + }, |
| 22 | + "javascript": { |
| 23 | + "formatter": { |
| 24 | + "jsxQuoteStyle": "double", |
| 25 | + "quoteProperties": "asNeeded", |
| 26 | + "trailingCommas": "all", |
| 27 | + "semicolons": "always", |
| 28 | + "arrowParentheses": "always", |
| 29 | + "bracketSameLine": false, |
| 30 | + "quoteStyle": "single" |
| 31 | + } |
| 32 | + }, |
| 33 | + "overrides": [ |
| 34 | + { |
| 35 | + "includes": ["*.js", "!public/**/*.js", "!src/**/*.js"], |
| 36 | + "linter": { |
| 37 | + "rules": { "correctness": { "noUndeclaredDependencies": "error" } } |
| 38 | + } |
| 39 | + }, |
| 40 | + { |
| 41 | + "includes": ["scripts/**/*.ts"], |
| 42 | + "linter": { |
| 43 | + "rules": { "correctness": { "noUndeclaredDependencies": "error" } } |
| 44 | + } |
| 45 | + }, |
| 46 | + { |
| 47 | + "includes": ["**/*.{ts,tsx}"], |
| 48 | + "linter": { |
| 49 | + "rules": { |
| 50 | + "complexity": { "noBannedTypes": "warn", "useOptionalChain": "warn" }, |
| 51 | + "correctness": { "useExhaustiveDependencies": "warn" }, |
| 52 | + "style": { "noRestrictedImports": "warn" }, |
| 53 | + "suspicious": { "noAlert": "warn", "noEmptyBlockStatements": "warn" } |
| 54 | + } |
| 55 | + } |
| 56 | + }, |
| 57 | + { "includes": ["src/**/*.{js,jsx}"], "linter": { "rules": {} } }, |
| 58 | + { |
| 59 | + "includes": ["src/service-worker.ts"], |
| 60 | + "linter": { |
| 61 | + "rules": { |
| 62 | + "style": { "noRestrictedGlobals": { "level": "off", "options": {} } } |
| 63 | + } |
| 64 | + } |
| 65 | + }, |
| 66 | + { |
| 67 | + "includes": [ |
| 68 | + "setup-vitest.ts", |
| 69 | + "**/*.{test,spec}.{ts,tsx,js,jsx}", |
| 70 | + "**/{__tests__,__testutils__}/**/*.{ts,tsx,js,jsx}" |
| 71 | + ], |
| 72 | + "linter": { |
| 73 | + "rules": { |
| 74 | + "correctness": { "noUndeclaredDependencies": "error" }, |
| 75 | + "style": { |
| 76 | + "noNonNullAssertion": "off", |
| 77 | + "noRestrictedImports": "off" |
| 78 | + }, |
| 79 | + "suspicious": { |
| 80 | + "noEmptyBlockStatements": "warn", |
| 81 | + "noExplicitAny": "off" |
| 82 | + } |
| 83 | + } |
| 84 | + } |
| 85 | + }, |
| 86 | + { |
| 87 | + "includes": ["e2e/**/*.{ts,tsx}"], |
| 88 | + "linter": { |
| 89 | + "rules": { |
| 90 | + "complexity": { "noBannedTypes": "warn" }, |
| 91 | + "correctness": { "noUndeclaredDependencies": "error" } |
| 92 | + } |
| 93 | + } |
| 94 | + }, |
| 95 | + { "includes": ["types"] } |
| 96 | + ], |
| 97 | + "html": { "formatter": { "selfCloseVoidElements": "always" } } |
| 98 | +} |
0 commit comments