@quentinhsu/biome-config 0.3.3 → 0.3.5
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/build.mjs +59 -59
- package/dist/index.jsonc +56 -56
- package/dist/index.mjs +59 -59
- package/dist/next.jsonc +60 -60
- package/dist/nuxt.jsonc +91 -91
- package/dist/react.jsonc +58 -58
- package/dist/types/src/constants/biome.d.ts +1 -1
- package/dist/types/src/generated/biome/index.d.ts +10 -9
- package/dist/types/src/generated/biome/linter-configuration.d.ts +181 -0
- package/dist/types/src/generated/biome/no-global-object-calls-options.d.ts +25 -24
- package/dist/types/src/generated/biome/{no-misrefactored-shorthand-assign-options.d.ts → no-label-var-options.d.ts} +55 -95
- package/dist/types/src/generated/biome/{no-non-null-assertion-options.d.ts → no-magic-numbers-options.d.ts} +17 -17
- package/dist/types/src/generated/biome/{rule-with-no-document-import-in-page-options.d.ts → rule-with-no-confusing-labels-options.d.ts} +175 -87
- package/dist/types/src/generated/biome/{rule-with-no-implicit-coercions-options.d.ts → rule-with-no-excessive-nested-test-suites-options.d.ts} +182 -182
- package/dist/types/src/generated/biome/{use-consistent-arrow-return-options.d.ts → rule-with-no-unused-expressions-options.d.ts} +202 -206
- package/dist/types/src/generated/biome/schema.d.ts +11 -11
- package/dist/types/src/generated/biome/{nursery.d.ts → use-consistent-object-definitions-configuration.d.ts} +473 -192
- package/dist/types/src/generated/biome/{use-semantic-elements-configuration.d.ts → use-focusable-interactive-configuration.d.ts} +16 -16
- package/dist/types/src/generated/biome/{no-empty-source-configuration.d.ts → use-qwik-classlist-configuration.d.ts} +26 -26
- package/dist/types/src/generated/biome/{no-assign-in-expressions-configuration.d.ts → use-shorthand-assign-configuration.d.ts} +19 -450
- package/dist/types/src/index.d.ts +2 -2
- package/dist/vue.jsonc +60 -60
- package/package.json +34 -34
package/dist/vue.jsonc
CHANGED
|
@@ -1,29 +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
|
-
]
|
|
20
|
-
},
|
|
21
|
-
"formatter": {
|
|
22
|
-
"enabled": true,
|
|
23
|
-
"indentStyle": "space",
|
|
24
|
-
"lineWidth": 140,
|
|
25
|
-
"formatWithErrors": true
|
|
26
|
-
},
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.3.5/schema.json",
|
|
27
3
|
"assist": {
|
|
28
4
|
"actions": {
|
|
29
5
|
"source": {
|
|
@@ -44,20 +20,47 @@
|
|
|
44
20
|
]
|
|
45
21
|
}
|
|
46
22
|
},
|
|
47
|
-
"useSortedKeys": "on",
|
|
48
23
|
"useSortedAttributes": {
|
|
49
24
|
"level": "on",
|
|
50
25
|
"options": {
|
|
51
26
|
"sortOrder": "natural"
|
|
52
27
|
}
|
|
53
|
-
}
|
|
28
|
+
},
|
|
29
|
+
"useSortedKeys": "on"
|
|
54
30
|
}
|
|
55
31
|
}
|
|
56
32
|
},
|
|
33
|
+
"files": {
|
|
34
|
+
"ignoreUnknown": true,
|
|
35
|
+
"includes": [
|
|
36
|
+
"**",
|
|
37
|
+
"!**/build",
|
|
38
|
+
"!**/dist",
|
|
39
|
+
"!**/.next",
|
|
40
|
+
"!**/.vitepress",
|
|
41
|
+
"!**/.output"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"formatter": {
|
|
45
|
+
"enabled": true,
|
|
46
|
+
"formatWithErrors": true,
|
|
47
|
+
"indentStyle": "space",
|
|
48
|
+
"lineWidth": 140
|
|
49
|
+
},
|
|
50
|
+
"javascript": {
|
|
51
|
+
"formatter": {
|
|
52
|
+
"arrowParentheses": "asNeeded",
|
|
53
|
+
"jsxQuoteStyle": "single",
|
|
54
|
+
"quoteStyle": "single",
|
|
55
|
+
"trailingCommas": "all"
|
|
56
|
+
},
|
|
57
|
+
"parser": {
|
|
58
|
+
"jsxEverywhere": false
|
|
59
|
+
}
|
|
60
|
+
},
|
|
57
61
|
"linter": {
|
|
58
62
|
"enabled": true,
|
|
59
63
|
"rules": {
|
|
60
|
-
"recommended": true,
|
|
61
64
|
"complexity": {
|
|
62
65
|
"noUselessStringConcat": "error",
|
|
63
66
|
"noUselessUndefinedInitialization": "error",
|
|
@@ -67,66 +70,56 @@
|
|
|
67
70
|
"correctness": {
|
|
68
71
|
"noConstantMathMinMaxClamp": "error",
|
|
69
72
|
"noUndeclaredVariables": "error",
|
|
70
|
-
"noUnusedImports": "error",
|
|
71
73
|
"noUnusedFunctionParameters": "error",
|
|
74
|
+
"noUnusedImports": "error",
|
|
72
75
|
"noUnusedPrivateClassMembers": "error",
|
|
76
|
+
"noUnusedVariables": "error",
|
|
73
77
|
"useExhaustiveDependencies": {
|
|
74
78
|
"level": "error",
|
|
75
79
|
"options": {
|
|
76
80
|
"reportUnnecessaryDependencies": false
|
|
77
81
|
}
|
|
78
|
-
}
|
|
79
|
-
"noUnusedVariables": "error"
|
|
82
|
+
}
|
|
80
83
|
},
|
|
84
|
+
"nursery": {
|
|
85
|
+
"useSortedClasses": {
|
|
86
|
+
"fix": "safe",
|
|
87
|
+
"level": "error",
|
|
88
|
+
"options": {
|
|
89
|
+
"functions": [
|
|
90
|
+
"clsx",
|
|
91
|
+
"cn"
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"recommended": true,
|
|
81
97
|
"style": {
|
|
82
98
|
"noParameterProperties": "error",
|
|
83
99
|
"noYodaExpression": "error",
|
|
100
|
+
"useArrayLiterals": "error",
|
|
84
101
|
"useConsistentBuiltinInstantiation": "error",
|
|
85
102
|
"useFragmentSyntax": "error",
|
|
86
103
|
"useImportType": {
|
|
87
|
-
"level": "error",
|
|
88
104
|
"fix": "safe",
|
|
105
|
+
"level": "error",
|
|
89
106
|
"options": {
|
|
90
107
|
"style": "separatedType"
|
|
91
108
|
}
|
|
92
109
|
},
|
|
93
110
|
"useSelfClosingElements": {
|
|
94
|
-
"level": "error",
|
|
95
111
|
"fix": "safe",
|
|
112
|
+
"level": "error",
|
|
96
113
|
"options": {}
|
|
97
114
|
},
|
|
98
|
-
"useShorthandAssign": "error"
|
|
99
|
-
"useArrayLiterals": "error"
|
|
100
|
-
},
|
|
101
|
-
"nursery": {
|
|
102
|
-
"useSortedClasses": {
|
|
103
|
-
"level": "error",
|
|
104
|
-
"fix": "safe",
|
|
105
|
-
"options": {
|
|
106
|
-
"functions": [
|
|
107
|
-
"clsx",
|
|
108
|
-
"cn"
|
|
109
|
-
]
|
|
110
|
-
}
|
|
111
|
-
}
|
|
115
|
+
"useShorthandAssign": "error"
|
|
112
116
|
},
|
|
113
117
|
"suspicious": {
|
|
114
|
-
"
|
|
115
|
-
"
|
|
118
|
+
"noEvolvingTypes": "error",
|
|
119
|
+
"useAwait": "error"
|
|
116
120
|
}
|
|
117
121
|
}
|
|
118
122
|
},
|
|
119
|
-
"javascript": {
|
|
120
|
-
"formatter": {
|
|
121
|
-
"quoteStyle": "single",
|
|
122
|
-
"jsxQuoteStyle": "single",
|
|
123
|
-
"arrowParentheses": "asNeeded",
|
|
124
|
-
"trailingCommas": "all"
|
|
125
|
-
},
|
|
126
|
-
"parser": {
|
|
127
|
-
"jsxEverywhere": false
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
123
|
"overrides": [
|
|
131
124
|
{
|
|
132
125
|
"includes": [
|
|
@@ -168,6 +161,13 @@
|
|
|
168
161
|
}
|
|
169
162
|
}
|
|
170
163
|
],
|
|
164
|
+
"root": true,
|
|
165
|
+
"vcs": {
|
|
166
|
+
"clientKind": "git",
|
|
167
|
+
"defaultBranch": "main",
|
|
168
|
+
"enabled": true,
|
|
169
|
+
"useIgnoreFile": true
|
|
170
|
+
},
|
|
171
171
|
"html": {
|
|
172
172
|
"formatter": {
|
|
173
173
|
"indentScriptAndStyle": true,
|
package/package.json
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@quentinhsu/biome-config",
|
|
3
|
-
"version": "0.3.3",
|
|
4
2
|
"author": "QuentinHsu",
|
|
5
|
-
"license": "MIT",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/QuentinHsu/biome-config.git"
|
|
9
|
-
},
|
|
10
3
|
"description": "Modular Biome configuration presets.",
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
4
|
+
"devDependencies": {
|
|
5
|
+
"@biomejs/biome": "2.3.5",
|
|
6
|
+
"@quentinhsu/biome-config": "0.3.3",
|
|
7
|
+
"@rslib/core": "0.18.0",
|
|
8
|
+
"@types/node": "^24.9.1",
|
|
9
|
+
"json-schema-to-typescript": "^15.0.4",
|
|
10
|
+
"nodemon": "3.1.11",
|
|
11
|
+
"tsx": "4.20.6",
|
|
12
|
+
"typescript": "5.9.3"
|
|
13
|
+
},
|
|
16
14
|
"exports": {
|
|
17
15
|
".": "./dist/index.jsonc",
|
|
18
|
-
"./react": "./dist/react.jsonc",
|
|
19
16
|
"./next": "./dist/next.jsonc",
|
|
20
|
-
"./
|
|
21
|
-
"./
|
|
22
|
-
|
|
23
|
-
"scripts": {
|
|
24
|
-
"generate:types": "tsx scripts/generate-biome-types.ts",
|
|
25
|
-
"prebuild": "pnpm run generate:types",
|
|
26
|
-
"build": "rslib build && node dist/build.mjs",
|
|
27
|
-
"dev": "nodemon --exec tsx scripts/build-presets.ts",
|
|
28
|
-
"lint": "npx biome check ."
|
|
17
|
+
"./nuxt": "./dist/nuxt.jsonc",
|
|
18
|
+
"./react": "./dist/react.jsonc",
|
|
19
|
+
"./vue": "./dist/vue.jsonc"
|
|
29
20
|
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
30
24
|
"keywords": [
|
|
31
25
|
"biome",
|
|
32
26
|
"config",
|
|
33
27
|
"lint",
|
|
34
28
|
"formatter"
|
|
35
29
|
],
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"name": "@quentinhsu/biome-config",
|
|
36
32
|
"publishConfig": {
|
|
37
|
-
"
|
|
38
|
-
"
|
|
33
|
+
"access": "public",
|
|
34
|
+
"provenance": true
|
|
39
35
|
},
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"
|
|
48
|
-
"
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "git+https://github.com/QuentinHsu/biome-config.git"
|
|
39
|
+
},
|
|
40
|
+
"type": "module",
|
|
41
|
+
"version": "0.3.5",
|
|
42
|
+
"scripts": {
|
|
43
|
+
"build": "rslib build && node dist/build.mjs",
|
|
44
|
+
"dev": "nodemon --exec tsx scripts/build-presets.ts",
|
|
45
|
+
"generate:types": "tsx scripts/generate-biome-types.ts",
|
|
46
|
+
"lint": "npx biome check .",
|
|
47
|
+
"lint:fix": "biome format --write .",
|
|
48
|
+
"prebuild": "pnpm run generate:types"
|
|
49
49
|
}
|
|
50
|
-
}
|
|
50
|
+
}
|