|
1 | 1 | { |
2 | | - "$schema": "https://biomejs.dev/schemas/2.2.4/schema.json", |
3 | | - "vcs": { |
4 | | - "enabled": true, |
5 | | - "clientKind": "git", |
6 | | - "useIgnoreFile": true, |
7 | | - "defaultBranch": "master" |
8 | | - }, |
| 2 | + "$schema": "https://biomejs.dev/schemas/2.2.5/schema.json", |
| 3 | + "extends": ["@macalinao/biome-config/base"], |
9 | 4 | "files": { |
10 | 5 | "ignoreUnknown": false, |
11 | 6 | "includes": ["**", "!docs/.next", "!out", "!**/bun.lock", "!vendor"] |
12 | 7 | }, |
13 | | - "formatter": { |
14 | | - "enabled": true, |
15 | | - "useEditorconfig": true, |
16 | | - "formatWithErrors": false, |
17 | | - "indentStyle": "space", |
18 | | - "indentWidth": 2, |
19 | | - "lineEnding": "lf", |
20 | | - "lineWidth": 80, |
21 | | - "attributePosition": "auto", |
22 | | - "bracketSpacing": true |
23 | | - }, |
24 | | - "linter": { |
25 | | - "enabled": true, |
26 | | - "domains": { |
27 | | - "project": "recommended" |
28 | | - }, |
29 | | - "rules": { |
30 | | - "recommended": true, |
31 | | - "nursery": { |
32 | | - "useConsistentTypeDefinitions": "error", |
33 | | - "noFloatingPromises": "error", |
34 | | - "noUnnecessaryConditions": "error" |
35 | | - }, |
36 | | - "complexity": { |
37 | | - "useSimplifiedLogicExpression": "error" |
38 | | - }, |
39 | | - "suspicious": { |
40 | | - "noUnknownAtRules": "off", |
41 | | - "noDoubleEquals": "error" |
42 | | - }, |
43 | | - "style": { |
44 | | - "useImportType": { |
45 | | - "level": "error", |
46 | | - "options": { |
47 | | - "style": "separatedType" |
48 | | - } |
49 | | - }, |
50 | | - "noNonNullAssertion": "off", |
51 | | - "noParameterAssign": "error", |
52 | | - "useAsConstAssertion": "error", |
53 | | - "useDefaultParameterLast": "error", |
54 | | - "useEnumInitializers": "error", |
55 | | - "useSelfClosingElements": "error", |
56 | | - "useSingleVarDeclarator": "error", |
57 | | - "noUnusedTemplateLiteral": "error", |
58 | | - "useNumberNamespace": "error", |
59 | | - "noInferrableTypes": "error", |
60 | | - "noUselessElse": "error", |
61 | | - "useBlockStatements": "error", |
62 | | - "useCollapsedElseIf": "error", |
63 | | - "useConsistentArrayType": { |
64 | | - "level": "error", |
65 | | - "options": { |
66 | | - "syntax": "shorthand" |
67 | | - } |
68 | | - }, |
69 | | - "useShorthandAssign": "error" |
70 | | - }, |
71 | | - "correctness": { |
72 | | - "noUnusedVariables": "warn", |
73 | | - "noUnusedImports": "error", |
74 | | - "noUndeclaredDependencies": "error", |
75 | | - "useImportExtensions": { |
76 | | - "level": "error", |
77 | | - "options": { |
78 | | - "forceJsExtensions": true |
79 | | - } |
80 | | - } |
81 | | - } |
82 | | - } |
83 | | - }, |
84 | | - "assist": { |
85 | | - "actions": { |
86 | | - "source": { |
87 | | - // Organizes imports and splits out type imports into a separate line |
88 | | - "organizeImports": { |
89 | | - "level": "on", |
90 | | - "options": { |
91 | | - "groups": [{ "type": true }] |
92 | | - } |
93 | | - } |
94 | | - } |
95 | | - } |
96 | | - }, |
97 | | - "javascript": { |
98 | | - "formatter": { |
99 | | - "quoteStyle": "double", |
100 | | - "jsxQuoteStyle": "double", |
101 | | - "quoteProperties": "asNeeded", |
102 | | - "trailingCommas": "all", |
103 | | - "semicolons": "always", |
104 | | - "arrowParentheses": "always", |
105 | | - "bracketSameLine": false, |
106 | | - "bracketSpacing": true |
107 | | - } |
108 | | - }, |
109 | 8 | "overrides": [ |
110 | 9 | { |
111 | 10 | "includes": ["clients/*/src/generated/**"], |
|
114 | 13 | "nursery": { |
115 | 14 | "noUnnecessaryConditions": "off" |
116 | 15 | }, |
| 16 | + "style": { |
| 17 | + "noNonNullAssertion": "off" |
| 18 | + }, |
117 | 19 | "suspicious": { |
118 | 20 | "noEmptyInterface": "off" |
119 | 21 | }, |
|
0 commit comments