|
| 1 | +{ |
| 2 | + "$schema": "https://biomejs.dev/schemas/2.0.0/schema.json", |
| 3 | + "files": { |
| 4 | + "maxSize": 16000000, |
| 5 | + "includes": ["{packages,lib,scripts,tests}/**/*.{mjs,js,ts,json}", "!**/dist-{cjs,es,types}/**", "!**/ruleset.ts"] |
| 6 | + }, |
| 7 | + "formatter": { |
| 8 | + "enabled": true, |
| 9 | + "indentStyle": "space", |
| 10 | + "lineWidth": 120, |
| 11 | + "indentWidth": 2, |
| 12 | + "lineEnding": "lf", |
| 13 | + "bracketSpacing": true, |
| 14 | + "bracketSameLine": false |
| 15 | + }, |
| 16 | + "assist": { |
| 17 | + "enabled": true, |
| 18 | + "actions": { |
| 19 | + "source": { |
| 20 | + "organizeImports": "on" |
| 21 | + } |
| 22 | + } |
| 23 | + }, |
| 24 | + "linter": { |
| 25 | + "rules": { |
| 26 | + "recommended": true, |
| 27 | + "complexity": { |
| 28 | + "noForEach": "off" |
| 29 | + }, |
| 30 | + "correctness": { |
| 31 | + "noUndeclaredVariables": "off", |
| 32 | + "noUnusedVariables": "info", |
| 33 | + "noInvalidBuiltinInstantiation": "error", |
| 34 | + "noSwitchDeclarations": "info", |
| 35 | + "noUnusedFunctionParameters": "info" |
| 36 | + }, |
| 37 | + "style": { |
| 38 | + "noNamespace": "error", |
| 39 | + "useConsistentArrayType": { |
| 40 | + "level": "info", |
| 41 | + "options": { |
| 42 | + "syntax": "shorthand" |
| 43 | + } |
| 44 | + }, |
| 45 | + "noParameterAssign": "info", |
| 46 | + "useAsConstAssertion": "info", |
| 47 | + "useDefaultParameterLast": "info", |
| 48 | + "useEnumInitializers": "error", |
| 49 | + "useSingleVarDeclarator": "error", |
| 50 | + "noUnusedTemplateLiteral": "info", |
| 51 | + "useNumberNamespace": "info", |
| 52 | + "noInferrableTypes": "info", |
| 53 | + "noUselessElse": "info" |
| 54 | + }, |
| 55 | + "nursery": { |
| 56 | + "useIterableCallbackReturn": "off" |
| 57 | + }, |
| 58 | + "suspicious": { |
| 59 | + "noEmptyBlockStatements": "info", |
| 60 | + "noExplicitAny": "info", |
| 61 | + "noImplicitAnyLet": "info", |
| 62 | + "noEmptyBlock": "info", |
| 63 | + "noEmptyInterface": "info", |
| 64 | + "noAssignInExpressions": "info", |
| 65 | + "noSparseArray": "info", |
| 66 | + "noShadowRestrictedNames": "info" |
| 67 | + } |
| 68 | + } |
| 69 | + }, |
| 70 | + "javascript": { |
| 71 | + "formatter": { |
| 72 | + "trailingCommas": "es5" |
| 73 | + } |
| 74 | + }, |
| 75 | + "vcs": { |
| 76 | + "enabled": true, |
| 77 | + "clientKind": "git", |
| 78 | + "useIgnoreFile": true |
| 79 | + } |
| 80 | +} |
0 commit comments