@quentinhsu/biome-config 0.3.3 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/131.mjs +358 -0
- package/dist/build.mjs +108 -360
- package/dist/index.jsonc +56 -56
- package/dist/index.mjs +1 -358
- package/dist/next.jsonc +60 -60
- package/dist/nuxt.jsonc +91 -91
- package/dist/react.jsonc +58 -58
- package/dist/rslib-runtime.mjs +38 -0
- package/dist/types/scripts/tag-release.d.ts +1 -0
- package/dist/types/scripts/validate-config-properties.d.ts +1 -0
- package/dist/types/src/constants/biome.d.ts +1 -1
- package/dist/types/src/generated/biome/index.d.ts +11 -8
- package/dist/types/src/generated/biome/no-comment-text-options.d.ts +761 -0
- package/dist/types/src/generated/biome/no-global-object-calls-options.d.ts +97 -97
- package/dist/types/src/generated/biome/no-sync-scripts-configuration.d.ts +185 -0
- package/dist/types/src/generated/biome/{use-semantic-elements-configuration.d.ts → no-useless-constructor-configuration.d.ts} +31 -49
- package/dist/types/src/generated/biome/nursery.d.ts +393 -594
- package/dist/types/src/generated/biome/{no-assign-in-expressions-configuration.d.ts → pattern-options.d.ts} +252 -179
- package/dist/types/src/generated/biome/rule-with-no-access-key-options.d.ts +555 -0
- package/dist/types/src/generated/biome/rule-with-no-blank-target-options.d.ts +530 -0
- package/dist/types/src/generated/biome/rule-with-no-fallthrough-switch-clause-options.d.ts +469 -0
- package/dist/types/src/generated/biome/rule-with-no-unknown-unit-options.d.ts +564 -0
- package/dist/types/src/generated/biome/schema.d.ts +35 -17
- package/dist/types/src/generated/biome/style.d.ts +614 -0
- package/dist/types/src/generated/biome/use-for-of-configuration.d.ts +144 -0
- package/dist/types/src/generated/biome/{no-non-null-assertion-options.d.ts → use-unique-variable-names-options.d.ts} +141 -119
- package/dist/types/src/index.d.ts +2 -2
- package/dist/vue.jsonc +60 -60
- package/package.json +38 -34
- package/dist/types/src/generated/biome/no-empty-source-configuration.d.ts +0 -241
- package/dist/types/src/generated/biome/no-misrefactored-shorthand-assign-options.d.ts +0 -1116
- package/dist/types/src/generated/biome/rule-with-no-document-import-in-page-options.d.ts +0 -1148
- package/dist/types/src/generated/biome/rule-with-no-implicit-coercions-options.d.ts +0 -1440
- package/dist/types/src/generated/biome/use-consistent-arrow-return-options.d.ts +0 -1341
package/dist/nuxt.jsonc
CHANGED
|
@@ -1,31 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.3.
|
|
3
|
-
"root": true,
|
|
4
|
-
"vcs": {
|
|
5
|
-
"enabled": true,
|
|
6
|
-
"clientKind": "git",
|
|
7
|
-
"useIgnoreFile": true,
|
|
8
|
-
"defaultBranch": "main"
|
|
9
|
-
},
|
|
10
|
-
"files": {
|
|
11
|
-
"ignoreUnknown": true,
|
|
12
|
-
"includes": [
|
|
13
|
-
"**",
|
|
14
|
-
"!**/build",
|
|
15
|
-
"!**/dist",
|
|
16
|
-
"!**/.next",
|
|
17
|
-
"!**/.vitepress",
|
|
18
|
-
"!**/.output",
|
|
19
|
-
"!**/.nuxt",
|
|
20
|
-
"!**/.nitro"
|
|
21
|
-
]
|
|
22
|
-
},
|
|
23
|
-
"formatter": {
|
|
24
|
-
"enabled": true,
|
|
25
|
-
"indentStyle": "space",
|
|
26
|
-
"lineWidth": 140,
|
|
27
|
-
"formatWithErrors": true
|
|
28
|
-
},
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
|
|
29
3
|
"assist": {
|
|
30
4
|
"actions": {
|
|
31
5
|
"source": {
|
|
@@ -46,83 +20,40 @@
|
|
|
46
20
|
]
|
|
47
21
|
}
|
|
48
22
|
},
|
|
49
|
-
"useSortedKeys": "on",
|
|
50
23
|
"useSortedAttributes": {
|
|
51
24
|
"level": "on",
|
|
52
25
|
"options": {
|
|
53
26
|
"sortOrder": "natural"
|
|
54
27
|
}
|
|
55
|
-
}
|
|
28
|
+
},
|
|
29
|
+
"useSortedKeys": "on"
|
|
56
30
|
}
|
|
57
31
|
}
|
|
58
32
|
},
|
|
59
|
-
"
|
|
33
|
+
"files": {
|
|
34
|
+
"ignoreUnknown": true,
|
|
35
|
+
"includes": [
|
|
36
|
+
"**",
|
|
37
|
+
"!**/build",
|
|
38
|
+
"!**/dist",
|
|
39
|
+
"!**/.next",
|
|
40
|
+
"!**/.vitepress",
|
|
41
|
+
"!**/.output",
|
|
42
|
+
"!**/.nuxt",
|
|
43
|
+
"!**/.nitro"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
"formatter": {
|
|
60
47
|
"enabled": true,
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"noUselessStringConcat": "error",
|
|
65
|
-
"noUselessUndefinedInitialization": "error",
|
|
66
|
-
"noVoid": "error",
|
|
67
|
-
"useDateNow": "error"
|
|
68
|
-
},
|
|
69
|
-
"correctness": {
|
|
70
|
-
"noConstantMathMinMaxClamp": "error",
|
|
71
|
-
"noUndeclaredVariables": "error",
|
|
72
|
-
"noUnusedImports": "error",
|
|
73
|
-
"noUnusedFunctionParameters": "error",
|
|
74
|
-
"noUnusedPrivateClassMembers": "error",
|
|
75
|
-
"useExhaustiveDependencies": {
|
|
76
|
-
"level": "error",
|
|
77
|
-
"options": {
|
|
78
|
-
"reportUnnecessaryDependencies": false
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
"noUnusedVariables": "error"
|
|
82
|
-
},
|
|
83
|
-
"style": {
|
|
84
|
-
"noParameterProperties": "error",
|
|
85
|
-
"noYodaExpression": "error",
|
|
86
|
-
"useConsistentBuiltinInstantiation": "error",
|
|
87
|
-
"useFragmentSyntax": "error",
|
|
88
|
-
"useImportType": {
|
|
89
|
-
"level": "error",
|
|
90
|
-
"fix": "safe",
|
|
91
|
-
"options": {
|
|
92
|
-
"style": "separatedType"
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
"useSelfClosingElements": {
|
|
96
|
-
"level": "error",
|
|
97
|
-
"fix": "safe",
|
|
98
|
-
"options": {}
|
|
99
|
-
},
|
|
100
|
-
"useShorthandAssign": "error",
|
|
101
|
-
"useArrayLiterals": "error"
|
|
102
|
-
},
|
|
103
|
-
"nursery": {
|
|
104
|
-
"useSortedClasses": {
|
|
105
|
-
"level": "error",
|
|
106
|
-
"fix": "safe",
|
|
107
|
-
"options": {
|
|
108
|
-
"functions": [
|
|
109
|
-
"clsx",
|
|
110
|
-
"cn"
|
|
111
|
-
]
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
"suspicious": {
|
|
116
|
-
"useAwait": "error",
|
|
117
|
-
"noEvolvingTypes": "error"
|
|
118
|
-
}
|
|
119
|
-
}
|
|
48
|
+
"formatWithErrors": true,
|
|
49
|
+
"indentStyle": "space",
|
|
50
|
+
"lineWidth": 140
|
|
120
51
|
},
|
|
121
52
|
"javascript": {
|
|
122
53
|
"formatter": {
|
|
123
|
-
"quoteStyle": "single",
|
|
124
|
-
"jsxQuoteStyle": "single",
|
|
125
54
|
"arrowParentheses": "asNeeded",
|
|
55
|
+
"jsxQuoteStyle": "single",
|
|
56
|
+
"quoteStyle": "single",
|
|
126
57
|
"trailingCommas": "all"
|
|
127
58
|
},
|
|
128
59
|
"parser": {
|
|
@@ -163,6 +94,68 @@
|
|
|
163
94
|
"useRequestHeaders"
|
|
164
95
|
]
|
|
165
96
|
},
|
|
97
|
+
"linter": {
|
|
98
|
+
"enabled": true,
|
|
99
|
+
"rules": {
|
|
100
|
+
"complexity": {
|
|
101
|
+
"noUselessStringConcat": "error",
|
|
102
|
+
"noUselessUndefinedInitialization": "error",
|
|
103
|
+
"noVoid": "error",
|
|
104
|
+
"useDateNow": "error"
|
|
105
|
+
},
|
|
106
|
+
"correctness": {
|
|
107
|
+
"noConstantMathMinMaxClamp": "error",
|
|
108
|
+
"noUndeclaredVariables": "error",
|
|
109
|
+
"noUnusedFunctionParameters": "error",
|
|
110
|
+
"noUnusedImports": "error",
|
|
111
|
+
"noUnusedPrivateClassMembers": "error",
|
|
112
|
+
"noUnusedVariables": "error",
|
|
113
|
+
"useExhaustiveDependencies": {
|
|
114
|
+
"level": "error",
|
|
115
|
+
"options": {
|
|
116
|
+
"reportUnnecessaryDependencies": false
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"nursery": {
|
|
121
|
+
"useSortedClasses": {
|
|
122
|
+
"fix": "safe",
|
|
123
|
+
"level": "error",
|
|
124
|
+
"options": {
|
|
125
|
+
"functions": [
|
|
126
|
+
"clsx",
|
|
127
|
+
"cn"
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"recommended": true,
|
|
133
|
+
"style": {
|
|
134
|
+
"noParameterProperties": "error",
|
|
135
|
+
"noYodaExpression": "error",
|
|
136
|
+
"useArrayLiterals": "error",
|
|
137
|
+
"useConsistentBuiltinInstantiation": "error",
|
|
138
|
+
"useFragmentSyntax": "error",
|
|
139
|
+
"useImportType": {
|
|
140
|
+
"fix": "safe",
|
|
141
|
+
"level": "error",
|
|
142
|
+
"options": {
|
|
143
|
+
"style": "separatedType"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"useSelfClosingElements": {
|
|
147
|
+
"fix": "safe",
|
|
148
|
+
"level": "error",
|
|
149
|
+
"options": {}
|
|
150
|
+
},
|
|
151
|
+
"useShorthandAssign": "error"
|
|
152
|
+
},
|
|
153
|
+
"suspicious": {
|
|
154
|
+
"noEvolvingTypes": "error",
|
|
155
|
+
"useAwait": "error"
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
166
159
|
"overrides": [
|
|
167
160
|
{
|
|
168
161
|
"includes": [
|
|
@@ -216,6 +209,13 @@
|
|
|
216
209
|
}
|
|
217
210
|
}
|
|
218
211
|
],
|
|
212
|
+
"root": true,
|
|
213
|
+
"vcs": {
|
|
214
|
+
"clientKind": "git",
|
|
215
|
+
"defaultBranch": "main",
|
|
216
|
+
"enabled": true,
|
|
217
|
+
"useIgnoreFile": true
|
|
218
|
+
},
|
|
219
219
|
"html": {
|
|
220
220
|
"formatter": {
|
|
221
221
|
"indentScriptAndStyle": true,
|
package/dist/react.jsonc
CHANGED
|
@@ -1,28 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.3.
|
|
3
|
-
"root": true,
|
|
4
|
-
"vcs": {
|
|
5
|
-
"enabled": true,
|
|
6
|
-
"clientKind": "git",
|
|
7
|
-
"useIgnoreFile": true,
|
|
8
|
-
"defaultBranch": "main"
|
|
9
|
-
},
|
|
10
|
-
"files": {
|
|
11
|
-
"ignoreUnknown": true,
|
|
12
|
-
"includes": [
|
|
13
|
-
"**",
|
|
14
|
-
"!**/build",
|
|
15
|
-
"!**/dist",
|
|
16
|
-
"!**/.next",
|
|
17
|
-
"!**/.storybook"
|
|
18
|
-
]
|
|
19
|
-
},
|
|
20
|
-
"formatter": {
|
|
21
|
-
"enabled": true,
|
|
22
|
-
"indentStyle": "space",
|
|
23
|
-
"lineWidth": 140,
|
|
24
|
-
"formatWithErrors": true
|
|
25
|
-
},
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
|
|
26
3
|
"assist": {
|
|
27
4
|
"actions": {
|
|
28
5
|
"source": {
|
|
@@ -43,20 +20,44 @@
|
|
|
43
20
|
]
|
|
44
21
|
}
|
|
45
22
|
},
|
|
46
|
-
"useSortedKeys": "on",
|
|
47
23
|
"useSortedAttributes": {
|
|
48
24
|
"level": "on",
|
|
49
25
|
"options": {
|
|
50
26
|
"sortOrder": "natural"
|
|
51
27
|
}
|
|
52
|
-
}
|
|
28
|
+
},
|
|
29
|
+
"useSortedKeys": "on"
|
|
53
30
|
}
|
|
54
31
|
}
|
|
55
32
|
},
|
|
33
|
+
"files": {
|
|
34
|
+
"ignoreUnknown": true,
|
|
35
|
+
"includes": [
|
|
36
|
+
"**",
|
|
37
|
+
"!**/build",
|
|
38
|
+
"!**/dist",
|
|
39
|
+
"!**/.next",
|
|
40
|
+
"!**/.storybook"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"formatter": {
|
|
44
|
+
"enabled": true,
|
|
45
|
+
"formatWithErrors": true,
|
|
46
|
+
"indentStyle": "space",
|
|
47
|
+
"lineWidth": 140
|
|
48
|
+
},
|
|
49
|
+
"javascript": {
|
|
50
|
+
"formatter": {
|
|
51
|
+
"arrowParentheses": "asNeeded",
|
|
52
|
+
"jsxQuoteStyle": "single",
|
|
53
|
+
"quoteStyle": "single",
|
|
54
|
+
"trailingCommas": "all"
|
|
55
|
+
},
|
|
56
|
+
"jsxRuntime": "reactClassic"
|
|
57
|
+
},
|
|
56
58
|
"linter": {
|
|
57
59
|
"enabled": true,
|
|
58
60
|
"rules": {
|
|
59
|
-
"recommended": true,
|
|
60
61
|
"complexity": {
|
|
61
62
|
"noUselessStringConcat": "error",
|
|
62
63
|
"noUselessUndefinedInitialization": "error",
|
|
@@ -66,64 +67,56 @@
|
|
|
66
67
|
"correctness": {
|
|
67
68
|
"noConstantMathMinMaxClamp": "error",
|
|
68
69
|
"noUndeclaredVariables": "error",
|
|
69
|
-
"noUnusedImports": "error",
|
|
70
70
|
"noUnusedFunctionParameters": "error",
|
|
71
|
+
"noUnusedImports": "error",
|
|
71
72
|
"noUnusedPrivateClassMembers": "error",
|
|
73
|
+
"noUnusedVariables": "error",
|
|
72
74
|
"useExhaustiveDependencies": {
|
|
73
75
|
"level": "error",
|
|
74
76
|
"options": {
|
|
75
77
|
"reportUnnecessaryDependencies": false
|
|
76
78
|
}
|
|
77
|
-
}
|
|
78
|
-
"noUnusedVariables": "error"
|
|
79
|
+
}
|
|
79
80
|
},
|
|
81
|
+
"nursery": {
|
|
82
|
+
"useSortedClasses": {
|
|
83
|
+
"fix": "safe",
|
|
84
|
+
"level": "error",
|
|
85
|
+
"options": {
|
|
86
|
+
"functions": [
|
|
87
|
+
"clsx",
|
|
88
|
+
"cn"
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"recommended": true,
|
|
80
94
|
"style": {
|
|
81
95
|
"noParameterProperties": "error",
|
|
82
96
|
"noYodaExpression": "error",
|
|
97
|
+
"useArrayLiterals": "error",
|
|
83
98
|
"useConsistentBuiltinInstantiation": "error",
|
|
84
99
|
"useFragmentSyntax": "error",
|
|
85
100
|
"useImportType": {
|
|
86
|
-
"level": "error",
|
|
87
101
|
"fix": "safe",
|
|
102
|
+
"level": "error",
|
|
88
103
|
"options": {
|
|
89
104
|
"style": "separatedType"
|
|
90
105
|
}
|
|
91
106
|
},
|
|
92
107
|
"useSelfClosingElements": {
|
|
93
|
-
"level": "error",
|
|
94
108
|
"fix": "safe",
|
|
109
|
+
"level": "error",
|
|
95
110
|
"options": {}
|
|
96
111
|
},
|
|
97
|
-
"useShorthandAssign": "error"
|
|
98
|
-
"useArrayLiterals": "error"
|
|
99
|
-
},
|
|
100
|
-
"nursery": {
|
|
101
|
-
"useSortedClasses": {
|
|
102
|
-
"level": "error",
|
|
103
|
-
"fix": "safe",
|
|
104
|
-
"options": {
|
|
105
|
-
"functions": [
|
|
106
|
-
"clsx",
|
|
107
|
-
"cn"
|
|
108
|
-
]
|
|
109
|
-
}
|
|
110
|
-
}
|
|
112
|
+
"useShorthandAssign": "error"
|
|
111
113
|
},
|
|
112
114
|
"suspicious": {
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
+
"noEvolvingTypes": "error",
|
|
116
|
+
"useAwait": "error"
|
|
115
117
|
}
|
|
116
118
|
}
|
|
117
119
|
},
|
|
118
|
-
"javascript": {
|
|
119
|
-
"formatter": {
|
|
120
|
-
"quoteStyle": "single",
|
|
121
|
-
"jsxQuoteStyle": "single",
|
|
122
|
-
"arrowParentheses": "asNeeded",
|
|
123
|
-
"trailingCommas": "all"
|
|
124
|
-
},
|
|
125
|
-
"jsxRuntime": "reactClassic"
|
|
126
|
-
},
|
|
127
120
|
"overrides": [
|
|
128
121
|
{
|
|
129
122
|
"includes": [
|
|
@@ -164,5 +157,12 @@
|
|
|
164
157
|
}
|
|
165
158
|
}
|
|
166
159
|
}
|
|
167
|
-
]
|
|
160
|
+
],
|
|
161
|
+
"root": true,
|
|
162
|
+
"vcs": {
|
|
163
|
+
"clientKind": "git",
|
|
164
|
+
"defaultBranch": "main",
|
|
165
|
+
"enabled": true,
|
|
166
|
+
"useIgnoreFile": true
|
|
167
|
+
}
|
|
168
168
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var __webpack_modules__ = {};
|
|
2
|
+
var __webpack_module_cache__ = {};
|
|
3
|
+
function __webpack_require__(moduleId) {
|
|
4
|
+
var cachedModule = __webpack_module_cache__[moduleId];
|
|
5
|
+
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
6
|
+
var module = __webpack_module_cache__[moduleId] = {
|
|
7
|
+
exports: {}
|
|
8
|
+
};
|
|
9
|
+
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
10
|
+
return module.exports;
|
|
11
|
+
}
|
|
12
|
+
__webpack_require__.m = __webpack_modules__;
|
|
13
|
+
(()=>{
|
|
14
|
+
__webpack_require__.add = function(modules) {
|
|
15
|
+
Object.assign(__webpack_require__.m, modules);
|
|
16
|
+
};
|
|
17
|
+
})();
|
|
18
|
+
(()=>{
|
|
19
|
+
__webpack_require__.n = (module)=>{
|
|
20
|
+
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
21
|
+
__webpack_require__.d(getter, {
|
|
22
|
+
a: getter
|
|
23
|
+
});
|
|
24
|
+
return getter;
|
|
25
|
+
};
|
|
26
|
+
})();
|
|
27
|
+
(()=>{
|
|
28
|
+
__webpack_require__.d = (exports, definition)=>{
|
|
29
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: definition[key]
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
(()=>{
|
|
36
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
37
|
+
})();
|
|
38
|
+
export { __webpack_require__ };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const BIOME_SCHEMA_URL: "https://biomejs.dev/schemas/2.3.
|
|
1
|
+
export declare const BIOME_SCHEMA_URL: "https://biomejs.dev/schemas/2.3.11/schema.json";
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
export * from './schema.ts';
|
|
2
2
|
export * from './no-global-object-calls-options.ts';
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './no-
|
|
5
|
-
export * from './rule-with-no-
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './rule-with-no-
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './no-
|
|
10
|
-
export * from './no-
|
|
3
|
+
export * from './use-unique-variable-names-options.ts';
|
|
4
|
+
export * from './no-comment-text-options.ts';
|
|
5
|
+
export * from './rule-with-no-access-key-options.ts';
|
|
6
|
+
export * from './rule-with-no-unknown-unit-options.ts';
|
|
7
|
+
export * from './rule-with-no-blank-target-options.ts';
|
|
8
|
+
export * from './rule-with-no-fallthrough-switch-clause-options.ts';
|
|
9
|
+
export * from './no-useless-constructor-configuration.ts';
|
|
10
|
+
export * from './no-sync-scripts-configuration.ts';
|
|
11
|
+
export * from './use-for-of-configuration.ts';
|
|
12
|
+
export * from './pattern-options.ts';
|
|
11
13
|
export * from './nursery.ts';
|
|
14
|
+
export * from './style.ts';
|