|
1 | 1 | { |
2 | | - "$schema": "https://biomejs.dev/schemas/2.3.7/schema.json", |
3 | | - "vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true }, |
4 | | - "files": { "ignoreUnknown": false }, |
5 | | - "formatter": { |
6 | | - "enabled": true, |
7 | | - "formatWithErrors": false, |
8 | | - "indentStyle": "space", |
9 | | - "indentWidth": 2, |
10 | | - "lineEnding": "lf", |
11 | | - "lineWidth": 120, |
12 | | - "attributePosition": "auto", |
13 | | - "bracketSameLine": false, |
14 | | - "bracketSpacing": true, |
15 | | - "expand": "auto", |
16 | | - "useEditorconfig": true |
17 | | - }, |
18 | | - "linter": { |
19 | | - "enabled": true, |
20 | | - "rules": { |
21 | | - "recommended": false, |
22 | | - "complexity": { "noUselessTypeConstraint": "error" }, |
23 | | - "correctness": { "noUnusedVariables": "error" }, |
24 | | - "style": { |
25 | | - "noCommonJs": "error", |
26 | | - "noNamespace": "error", |
27 | | - "useArrayLiterals": "error", |
28 | | - "useAsConstAssertion": "error" |
29 | | - }, |
30 | | - "suspicious": { |
31 | | - "noConsole": "off", |
32 | | - "noExplicitAny": "error", |
33 | | - "noExtraNonNullAssertion": "error", |
34 | | - "noMisleadingInstantiator": "error", |
35 | | - "noNonNullAssertedOptionalChain": "error", |
36 | | - "noUnsafeDeclarationMerging": "error", |
37 | | - "useNamespaceKeyword": "error" |
38 | | - } |
39 | | - }, |
40 | | - "includes": ["**", "!**/build", "!**/node_modules", "!**/.*", "!**/*.d.ts", "!.husky/"] |
41 | | - }, |
42 | | - "javascript": { |
43 | | - "formatter": { |
44 | | - "jsxQuoteStyle": "double", |
45 | | - "quoteProperties": "asNeeded", |
46 | | - "trailingCommas": "all", |
47 | | - "semicolons": "asNeeded", |
48 | | - "arrowParentheses": "asNeeded", |
49 | | - "bracketSameLine": false, |
50 | | - "quoteStyle": "single", |
51 | | - "attributePosition": "auto", |
52 | | - "bracketSpacing": true |
53 | | - }, |
54 | | - "globals": ["exports"] |
55 | | - }, |
56 | | - "html": { |
57 | | - "formatter": { |
58 | | - "indentScriptAndStyle": false, |
59 | | - "selfCloseVoidElements": "always" |
60 | | - } |
61 | | - }, |
62 | | - "overrides": [ |
63 | | - { |
64 | | - "includes": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"], |
65 | | - "linter": { |
66 | | - "rules": { |
67 | | - "complexity": { "noArguments": "error" }, |
68 | | - "correctness": { |
69 | | - "noConstAssign": "off", |
70 | | - "noGlobalObjectCalls": "off", |
71 | | - "noInvalidBuiltinInstantiation": "off", |
72 | | - "noInvalidConstructorSuper": "off", |
73 | | - "noSetterReturn": "off", |
74 | | - "noUndeclaredVariables": "off", |
75 | | - "noUnreachable": "off", |
76 | | - "noUnreachableSuper": "off" |
77 | | - }, |
78 | | - "style": { "useConst": "error" }, |
79 | | - "suspicious": { |
80 | | - "noClassAssign": "off", |
81 | | - "noDuplicateClassMembers": "off", |
82 | | - "noDuplicateObjectKeys": "off", |
83 | | - "noDuplicateParameters": "off", |
84 | | - "noFunctionAssign": "off", |
85 | | - "noImportAssign": "off", |
86 | | - "noRedeclare": "off", |
87 | | - "noUnsafeNegation": "off", |
88 | | - "noVar": "error", |
89 | | - "noWith": "off", |
90 | | - "useGetterReturn": "off" |
91 | | - } |
92 | | - } |
93 | | - } |
94 | | - }, |
95 | | - { "includes": ["packages/**/*.{js,ts}"] } |
96 | | - ], |
97 | | - "assist": { |
98 | | - "enabled": true, |
99 | | - "actions": { "source": { "organizeImports": "on" } } |
100 | | - } |
| 2 | + "$schema": "https://biomejs.dev/schemas/2.3.11/schema.json", |
| 3 | + "vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true }, |
| 4 | + "files": { "ignoreUnknown": false }, |
| 5 | + "formatter": { |
| 6 | + "enabled": true, |
| 7 | + "formatWithErrors": false, |
| 8 | + "indentStyle": "space", |
| 9 | + "indentWidth": 2, |
| 10 | + "lineEnding": "lf", |
| 11 | + "lineWidth": 120, |
| 12 | + "attributePosition": "auto", |
| 13 | + "bracketSameLine": false, |
| 14 | + "bracketSpacing": true, |
| 15 | + "expand": "auto", |
| 16 | + "useEditorconfig": true |
| 17 | + }, |
| 18 | + "linter": { |
| 19 | + "enabled": true, |
| 20 | + "rules": { |
| 21 | + "recommended": false, |
| 22 | + "complexity": { "noUselessTypeConstraint": "error" }, |
| 23 | + "correctness": { "noUnusedVariables": "error" }, |
| 24 | + "style": { |
| 25 | + "noCommonJs": "error", |
| 26 | + "noNamespace": "error", |
| 27 | + "useArrayLiterals": "error", |
| 28 | + "useAsConstAssertion": "error" |
| 29 | + }, |
| 30 | + "suspicious": { |
| 31 | + "noConsole": "off", |
| 32 | + "noExplicitAny": "error", |
| 33 | + "noExtraNonNullAssertion": "error", |
| 34 | + "noMisleadingInstantiator": "error", |
| 35 | + "noNonNullAssertedOptionalChain": "error", |
| 36 | + "noUnsafeDeclarationMerging": "error", |
| 37 | + "useNamespaceKeyword": "error" |
| 38 | + } |
| 39 | + }, |
| 40 | + "includes": [ |
| 41 | + "**", |
| 42 | + "!**/build", |
| 43 | + "!**/node_modules", |
| 44 | + "!**/.*", |
| 45 | + "!**/*.d.ts", |
| 46 | + "!.husky/" |
| 47 | + ] |
| 48 | + }, |
| 49 | + "javascript": { |
| 50 | + "formatter": { |
| 51 | + "jsxQuoteStyle": "double", |
| 52 | + "quoteProperties": "asNeeded", |
| 53 | + "trailingCommas": "all", |
| 54 | + "semicolons": "asNeeded", |
| 55 | + "arrowParentheses": "asNeeded", |
| 56 | + "bracketSameLine": false, |
| 57 | + "quoteStyle": "single", |
| 58 | + "attributePosition": "auto", |
| 59 | + "bracketSpacing": true |
| 60 | + }, |
| 61 | + "globals": ["exports"] |
| 62 | + }, |
| 63 | + "html": { |
| 64 | + "formatter": { |
| 65 | + "indentScriptAndStyle": false, |
| 66 | + "selfCloseVoidElements": "always" |
| 67 | + } |
| 68 | + }, |
| 69 | + "overrides": [ |
| 70 | + { |
| 71 | + "includes": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"], |
| 72 | + "linter": { |
| 73 | + "rules": { |
| 74 | + "complexity": { "noArguments": "error" }, |
| 75 | + "correctness": { |
| 76 | + "noConstAssign": "off", |
| 77 | + "noGlobalObjectCalls": "off", |
| 78 | + "noInvalidBuiltinInstantiation": "off", |
| 79 | + "noInvalidConstructorSuper": "off", |
| 80 | + "noSetterReturn": "off", |
| 81 | + "noUndeclaredVariables": "off", |
| 82 | + "noUnreachable": "off", |
| 83 | + "noUnreachableSuper": "off" |
| 84 | + }, |
| 85 | + "style": { "useConst": "error" }, |
| 86 | + "suspicious": { |
| 87 | + "noClassAssign": "off", |
| 88 | + "noDuplicateClassMembers": "off", |
| 89 | + "noDuplicateObjectKeys": "off", |
| 90 | + "noDuplicateParameters": "off", |
| 91 | + "noFunctionAssign": "off", |
| 92 | + "noImportAssign": "off", |
| 93 | + "noRedeclare": "off", |
| 94 | + "noUnsafeNegation": "off", |
| 95 | + "noVar": "error", |
| 96 | + "noWith": "off", |
| 97 | + "useGetterReturn": "off" |
| 98 | + } |
| 99 | + } |
| 100 | + } |
| 101 | + }, |
| 102 | + { "includes": ["packages/**/*.{js,ts}"] } |
| 103 | + ], |
| 104 | + "assist": { |
| 105 | + "enabled": true, |
| 106 | + "actions": { "source": { "organizeImports": "on" } } |
| 107 | + } |
101 | 108 | } |
0 commit comments