-
Notifications
You must be signed in to change notification settings - Fork 0
/
biome.jsonc
114 lines (114 loc) · 2.57 KB
/
biome.jsonc
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
110
111
112
113
114
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"files": {
"ignore": [
"**/package.json",
"**/*.d.ts",
"packages/docs/*",
"packages/vue/src/vue-component-lib/utils.ts",
"packages/vue/src/proxies.ts"
]
},
"assists": {
"enabled": true,
"actions": {
"source": {
"sortJsxProps": "on"
}
}
},
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true,
"defaultBranch": "main"
},
"organizeImports": {
"enabled": true
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 120,
"attributePosition": "multiline"
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"suspicious": {
"noExplicitAny": "off"
}
}
},
"javascript": {
"formatter": {
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"trailingCommas": "all",
"semicolons": "always",
"arrowParentheses": "asNeeded",
"bracketSpacing": true,
"bracketSameLine": false,
"quoteStyle": "single",
"attributePosition": "multiline"
},
"linter": {
"enabled": true
}
},
"css": {
"assists": {
"enabled": true
},
"formatter": {
"enabled": true
},
"linter": {
"enabled": true
},
"parser": {
"cssModules": true
}
},
"overrides": [
{
"include": ["packages/core/src/**", "packages/core/plugins/**"],
"linter": {
"rules": {
"suspicious": {
"noAssignInExpressions": "off", // Used to assing ref
"noConfusingVoidType": "off"
},
"correctness": {
"useJsxKeyInIterable": "off" // Stencil generate jsx key for us
},
"a11y": {
"noAutofocus": "off", // Auto focus is used for inputs components
"noSvgWithoutTitle": "off",
"useKeyWithClickEvents": "warn", // Should be an error before release v1
"useSemanticElements": "off",
"useValidAnchor": "off" // Anchor is used to trigger focus on element, for link purpose,
},
"style": {
"noParameterAssign": "off" // Used to assing ref
}
}
}
},
{
"include": ["packages/vue/src/**", "tests/vue/src/**"],
"linter": {
"rules": {
"style": {
"useConst": "off",
"useImportType": "off"
}
}
}
}
]
}