|
1 | 1 | { |
2 | | - "$schema": "https://biomejs.dev/schemas/2.4.2/schema.json", |
| 2 | + "$schema": "https://biomejs.dev/schemas/2.4.4/schema.json", |
3 | 3 | "assist": { |
4 | 4 | "actions": { |
5 | 5 | "source": { |
|
10 | 10 | "linter": { |
11 | 11 | "enabled": true, |
12 | 12 | "rules": { |
13 | | - "recommended": true |
| 13 | + "recommended": true, |
| 14 | + "nursery": { |
| 15 | + "recommended": true, |
| 16 | + "noShadow": "error", |
| 17 | + "useExplicitType": "warn", |
| 18 | + "noEqualsToNull": "error", |
| 19 | + "noReturnAssign": "error", |
| 20 | + "useArraySortCompare": "error", |
| 21 | + "useFind": "warn", |
| 22 | + "useSpread": "warn" |
| 23 | + }, |
| 24 | + "correctness": { |
| 25 | + "recommended": true, |
| 26 | + "noUnusedImports": "error", |
| 27 | + "noUnusedVariables": "error", |
| 28 | + "noUnusedPrivateClassMembers": "error", |
| 29 | + "noUndeclaredVariables": "error", |
| 30 | + "noUnreachable": "error", |
| 31 | + "noInvalidUseBeforeDeclaration": "error" |
| 32 | + }, |
| 33 | + "style": { |
| 34 | + "recommended": true, |
| 35 | + "noDefaultExport": "off", |
| 36 | + "noParameterAssign": "error", |
| 37 | + "useBlockStatements": "error", |
| 38 | + "useCollapsedElseIf": "warn", |
| 39 | + "useConsistentBuiltinInstantiation": "error", |
| 40 | + "useDefaultParameterLast": "error", |
| 41 | + "useExplicitLengthCheck": "warn", |
| 42 | + "useForOf": "warn", |
| 43 | + "useFragmentSyntax": "warn", |
| 44 | + "useImportType": "error", |
| 45 | + "useShorthandAssign": "warn", |
| 46 | + "useShorthandFunctionType": "warn", |
| 47 | + "useThrowNewError": "error", |
| 48 | + "useThrowOnlyError": "error", |
| 49 | + "noCommonJs": "error", |
| 50 | + "noExportedImports": "off", |
| 51 | + "useNamingConvention": { |
| 52 | + "level": "warn", |
| 53 | + "options": { |
| 54 | + "conventions": [ |
| 55 | + { |
| 56 | + "selector": { "kind": "variable" }, |
| 57 | + "formats": ["camelCase", "CONSTANT_CASE", "PascalCase"] |
| 58 | + }, |
| 59 | + { |
| 60 | + "selector": { "kind": "function" }, |
| 61 | + "formats": ["camelCase", "PascalCase"] |
| 62 | + }, |
| 63 | + { |
| 64 | + "selector": { "kind": "typeLike" }, |
| 65 | + "formats": ["PascalCase"] |
| 66 | + }, |
| 67 | + { |
| 68 | + "selector": { "kind": "enumMember" }, |
| 69 | + "formats": ["CONSTANT_CASE", "PascalCase"] |
| 70 | + } |
| 71 | + ] |
| 72 | + } |
| 73 | + }, |
| 74 | + "useFilenamingConvention": { |
| 75 | + "level": "warn", |
| 76 | + "options": { |
| 77 | + "requireAscii": true, |
| 78 | + "filenameCases": ["PascalCase", "camelCase"] |
| 79 | + } |
| 80 | + } |
| 81 | + }, |
| 82 | + "suspicious": { |
| 83 | + "recommended": true, |
| 84 | + "noConsole": "warn", |
| 85 | + "noEmptyBlockStatements": "error", |
| 86 | + "noExplicitAny": "warn", |
| 87 | + "useAwait": "error", |
| 88 | + "useErrorMessage": "error", |
| 89 | + "useGuardForIn": "error", |
| 90 | + "useIsArray": "error", |
| 91 | + "noIrregularWhitespace": "off" |
| 92 | + }, |
| 93 | + "complexity": { |
| 94 | + "recommended": true, |
| 95 | + "noExcessiveCognitiveComplexity": { |
| 96 | + "level": "warn", |
| 97 | + "options": { |
| 98 | + "maxAllowedComplexity": 25 |
| 99 | + } |
| 100 | + }, |
| 101 | + "noForEach": "warn", |
| 102 | + "noStaticOnlyClass": "error", |
| 103 | + "noUselessStringConcat": "error", |
| 104 | + "noUselessUndefinedInitialization": "error", |
| 105 | + "noVoid": "error", |
| 106 | + "useArrowFunction": "warn", |
| 107 | + "useDateNow": "error", |
| 108 | + "useFlatMap": "warn", |
| 109 | + "useSimplifiedLogicExpression": "warn" |
| 110 | + }, |
| 111 | + "performance": { |
| 112 | + "recommended": true, |
| 113 | + "noAccumulatingSpread": "warn", |
| 114 | + "noBarrelFile": "warn", |
| 115 | + "noDelete": "warn", |
| 116 | + "noReExportAll": "warn" |
| 117 | + }, |
| 118 | + "a11y": { |
| 119 | + "recommended": true |
| 120 | + }, |
| 121 | + "security": { |
| 122 | + "recommended": true, |
| 123 | + "noGlobalEval": "error" |
| 124 | + } |
14 | 125 | } |
15 | 126 | }, |
16 | 127 | "formatter": { |
17 | 128 | "enabled": true, |
18 | 129 | "indentStyle": "space", |
19 | | - "indentWidth": 2 |
| 130 | + "indentWidth": 2, |
| 131 | + "lineWidth": 120 |
20 | 132 | }, |
21 | 133 | "files": { |
22 | 134 | "includes": ["**/*.ts", "**/*.js", "**/*.json", "**/*.html", "!dist"] |
23 | 135 | }, |
24 | 136 | "javascript": { |
25 | 137 | "formatter": { |
26 | 138 | "quoteStyle": "double", |
27 | | - "semicolons": "always" |
| 139 | + "semicolons": "always", |
| 140 | + "trailingCommas": "all", |
| 141 | + "arrowParentheses": "always", |
| 142 | + "bracketSameLine": false |
28 | 143 | } |
29 | 144 | } |
30 | 145 | } |
0 commit comments