-
Notifications
You must be signed in to change notification settings - Fork 0
/
biome.json
109 lines (109 loc) · 2.78 KB
/
biome.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"vcs": { "enabled": true, "clientKind": "git", "useIgnoreFile": true },
"files": {
"ignoreUnknown": false,
"ignore": ["**/*.spec.ts"],
"include": [
"apps/**/*.ts",
"apps/**/*.vue",
"libs/**/*.ts",
"libs/**/*.vue",
"scripts/**/*.ts",
"scripts/**/*.vue",
"**/*.json"
]
},
"formatter": {
"enabled": true,
"useEditorconfig": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 120,
"attributePosition": "auto",
"bracketSpacing": true,
"ignore": [
"apps/core/src/graphql.ts",
"apps/admin-ui/src/auto-imports.d.ts",
"apps/admin-ui/src/components.d.ts",
"**/.yarn/",
"**/node_modules/",
"**/dist/",
"**/*.json",
"**/*.yml",
"**/*.md"
]
},
"organizeImports": { "enabled": true },
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"complexity": {
"noForEach": "off",
"noBannedTypes": "warn",
"noUselessTernary": "off",
"useLiteralKeys": "off",
"noStaticOnlyClass": "off",
"useOptionalChain": {
"fix": "safe",
"level": "warn"
}
},
"style": {
"noNonNullAssertion": "warn",
"useImportType": {
"fix": "unsafe",
"level": "off"
},
"noUnusedTemplateLiteral": {
"fix": "safe",
"level": "warn"
},
"noUselessElse": "off",
"useNodejsImportProtocol": "off",
"useSingleVarDeclarator": "off",
"noParameterAssign": "off",
"useExponentiationOperator": "off",
"noCommaOperator": "warn",
"useConst": "warn"
},
"suspicious": {
"noDoubleEquals": "warn",
"noExplicitAny": "warn",
"noThenProperty": "off",
"noImplicitAnyLet": "warn",
"noAssignInExpressions": "warn",
"noPrototypeBuiltins": "off",
"noShadowRestrictedNames": "warn",
"noConfusingVoidType": "warn"
},
"correctness": {
"noConstantCondition": "warn"
}
},
"ignore": ["**/dist/", "**/node_modules/", "**/.yarn/", "**/vite-env.d.ts"]
},
"javascript": {
"formatter": {
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"trailingCommas": "all",
"semicolons": "always",
"arrowParentheses": "always",
"bracketSameLine": false,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 120,
"quoteStyle": "single",
"attributePosition": "auto",
"bracketSpacing": true
},
"linter": {
"enabled": true
},
"parser": { "unsafeParameterDecoratorsEnabled": true }
}
}