|
1 | 1 | { |
2 | 2 | "$schema": "https://biomejs.dev/schemas/2.0.0/schema.json", |
3 | | - "vcs": { |
4 | | - "enabled": true, |
5 | | - "clientKind": "git", |
6 | | - "useIgnoreFile": true |
7 | | - }, |
8 | | - "files": { |
9 | | - "includes": ["**", "!**/.trunk/**", "!**/build/**", "!**/dist/**", "!**/package.json"] |
10 | | - }, |
11 | | - "formatter": { |
12 | | - "attributePosition": "auto", |
13 | | - "bracketSpacing": true, |
14 | | - "enabled": true, |
15 | | - "formatWithErrors": false, |
16 | | - "indentStyle": "space", |
17 | | - "indentWidth": 2, |
18 | | - "lineEnding": "lf", |
19 | | - "lineWidth": 120, |
20 | | - "useEditorconfig": true |
21 | | - }, |
22 | 3 | "assist": { |
23 | 4 | "actions": { |
24 | 5 | "source": { |
25 | 6 | "organizeImports": { |
26 | 7 | "level": "on", |
27 | 8 | "options": { |
28 | 9 | "groups": [ |
29 | | - { "type": false }, |
| 10 | + { |
| 11 | + "type": false |
| 12 | + }, |
30 | 13 | ":NODE:", |
31 | 14 | ":BLANK_LINE:", |
32 | 15 | "@freelensapp/**", |
|
40 | 23 | } |
41 | 24 | } |
42 | 25 | }, |
| 26 | + "files": { |
| 27 | + "includes": ["**", "!**/.trunk/**", "!**/build/**", "!**/dist/**", "!**/package.json"] |
| 28 | + }, |
| 29 | + "formatter": { |
| 30 | + "attributePosition": "auto", |
| 31 | + "bracketSpacing": true, |
| 32 | + "enabled": true, |
| 33 | + "formatWithErrors": false, |
| 34 | + "indentStyle": "space", |
| 35 | + "indentWidth": 2, |
| 36 | + "lineEnding": "lf", |
| 37 | + "lineWidth": 120, |
| 38 | + "useEditorconfig": true |
| 39 | + }, |
| 40 | + "html": { |
| 41 | + "formatter": { |
| 42 | + "enabled": true |
| 43 | + } |
| 44 | + }, |
| 45 | + "javascript": { |
| 46 | + "formatter": { |
| 47 | + "arrowParentheses": "always", |
| 48 | + "attributePosition": "auto", |
| 49 | + "bracketSameLine": false, |
| 50 | + "bracketSpacing": true, |
| 51 | + "jsxQuoteStyle": "double", |
| 52 | + "quoteProperties": "asNeeded", |
| 53 | + "quoteStyle": "double", |
| 54 | + "semicolons": "always", |
| 55 | + "trailingCommas": "all" |
| 56 | + } |
| 57 | + }, |
43 | 58 | "linter": { |
44 | 59 | "enabled": true, |
45 | 60 | "rules": { |
46 | 61 | "a11y": { |
47 | 62 | "noRedundantRoles": "off" |
48 | 63 | }, |
49 | 64 | "complexity": { |
50 | | - "noBannedTypes": "off", // should be error later |
| 65 | + // should be error later |
| 66 | + "noBannedTypes": "off", |
51 | 67 | "noUselessConstructor": "off", |
52 | 68 | "noUselessThisAlias": "error", |
53 | 69 | "noUselessTypeConstraint": "error" |
54 | 70 | }, |
55 | 71 | "correctness": { |
56 | 72 | "noInvalidUseBeforeDeclaration": "error", |
57 | | - "noUnusedVariables": "off", // should be error later |
| 73 | + // should be error later |
| 74 | + "noUnusedVariables": "off", |
58 | 75 | "useExhaustiveDependencies": "off" |
59 | 76 | }, |
60 | 77 | "recommended": false, |
61 | 78 | "style": { |
62 | 79 | "noNamespace": "error", |
63 | | - "noParameterAssign": "off", // should be error later |
| 80 | + // should be error later |
| 81 | + "noParameterAssign": "off", |
| 82 | + "useArrayLiterals": "off", |
64 | 83 | "useAsConstAssertion": "error", |
65 | 84 | "useBlockStatements": "off", |
66 | 85 | "useNamingConvention": { |
|
69 | 88 | "strictCase": false |
70 | 89 | } |
71 | 90 | }, |
72 | | - "useTemplate": "off", // should be error later |
73 | | - "useArrayLiterals": "off" |
| 91 | + // should be error later |
| 92 | + "useTemplate": "off" |
74 | 93 | }, |
75 | 94 | "suspicious": { |
76 | 95 | "noEmptyInterface": "off", |
77 | | - "noExplicitAny": "off", // should be error later |
| 96 | + // should be error later |
| 97 | + "noExplicitAny": "off", |
78 | 98 | "noExtraNonNullAssertion": "error", |
79 | 99 | "noMisleadingInstantiator": "error", |
80 | | - "noUnsafeDeclarationMerging": "off", // should be error later |
| 100 | + // should be error later |
| 101 | + "noUnsafeDeclarationMerging": "off", |
81 | 102 | "useNamespaceKeyword": "error" |
82 | 103 | } |
83 | 104 | } |
84 | 105 | }, |
85 | | - "javascript": { |
86 | | - "formatter": { |
87 | | - "arrowParentheses": "always", |
88 | | - "attributePosition": "auto", |
89 | | - "bracketSameLine": false, |
90 | | - "bracketSpacing": true, |
91 | | - "jsxQuoteStyle": "double", |
92 | | - "quoteProperties": "asNeeded", |
93 | | - "quoteStyle": "double", |
94 | | - "semicolons": "always", |
95 | | - "trailingCommas": "all" |
96 | | - } |
| 106 | + "vcs": { |
| 107 | + "clientKind": "git", |
| 108 | + "enabled": true, |
| 109 | + "useIgnoreFile": true |
97 | 110 | } |
98 | 111 | } |
0 commit comments