@quentinhsu/biome-config 0.3.2 → 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 +388 -0
- package/dist/index.jsonc +153 -0
- package/dist/index.mjs +358 -0
- package/dist/next.jsonc +170 -0
- package/dist/nuxt.jsonc +225 -0
- package/dist/react.jsonc +168 -0
- package/dist/types/scripts/build-presets.d.ts +1 -0
- package/dist/types/scripts/generate-biome-types.d.ts +1 -0
- package/dist/types/scripts/utils/biome-version.d.ts +12 -0
- package/dist/types/src/build.d.ts +1 -0
- package/dist/types/src/constants/biome.d.ts +1 -0
- package/dist/types/src/generated/biome/index.d.ts +12 -0
- 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 +321 -0
- package/dist/types/src/generated/biome/no-label-var-options.d.ts +1076 -0
- package/dist/types/src/generated/biome/no-magic-numbers-options.d.ts +291 -0
- package/dist/types/src/generated/biome/rule-with-no-confusing-labels-options.d.ts +1236 -0
- package/dist/types/src/generated/biome/rule-with-no-excessive-nested-test-suites-options.d.ts +1440 -0
- package/dist/types/src/generated/biome/rule-with-no-unused-expressions-options.d.ts +1337 -0
- package/dist/types/src/generated/biome/schema.d.ts +291 -0
- package/dist/types/src/generated/biome/use-consistent-object-definitions-configuration.d.ts +1304 -0
- package/dist/types/src/generated/biome/use-focusable-interactive-configuration.d.ts +163 -0
- package/dist/types/src/generated/biome/use-qwik-classlist-configuration.d.ts +241 -0
- package/dist/types/src/generated/biome/use-shorthand-assign-configuration.d.ts +571 -0
- package/dist/types/src/index.d.ts +15 -0
- package/dist/types/src/presets/next.d.ts +1 -0
- package/dist/types/src/presets/nuxt.d.ts +1 -0
- package/dist/types/src/presets/react.d.ts +1 -0
- package/dist/types/src/presets/vue.d.ts +1 -0
- package/dist/types/src/source/index.d.ts +2 -0
- package/dist/types/src/types.d.ts +1 -0
- package/dist/types/src/utils/merge.d.ts +2 -0
- package/dist/vue.jsonc +177 -0
- package/package.json +29 -28
package/dist/vue.jsonc
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.3.5/schema.json",
|
|
3
|
+
"assist": {
|
|
4
|
+
"actions": {
|
|
5
|
+
"source": {
|
|
6
|
+
"organizeImports": {
|
|
7
|
+
"level": "on",
|
|
8
|
+
"options": {
|
|
9
|
+
"groups": [
|
|
10
|
+
[
|
|
11
|
+
":NODE:",
|
|
12
|
+
":BUN:",
|
|
13
|
+
":PACKAGE_WITH_PROTOCOL:",
|
|
14
|
+
":PACKAGE:"
|
|
15
|
+
],
|
|
16
|
+
":BLANK_LINE:",
|
|
17
|
+
":ALIAS:",
|
|
18
|
+
":BLANK_LINE:",
|
|
19
|
+
":PATH:"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"useSortedAttributes": {
|
|
24
|
+
"level": "on",
|
|
25
|
+
"options": {
|
|
26
|
+
"sortOrder": "natural"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"useSortedKeys": "on"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
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
|
+
},
|
|
61
|
+
"linter": {
|
|
62
|
+
"enabled": true,
|
|
63
|
+
"rules": {
|
|
64
|
+
"complexity": {
|
|
65
|
+
"noUselessStringConcat": "error",
|
|
66
|
+
"noUselessUndefinedInitialization": "error",
|
|
67
|
+
"noVoid": "error",
|
|
68
|
+
"useDateNow": "error"
|
|
69
|
+
},
|
|
70
|
+
"correctness": {
|
|
71
|
+
"noConstantMathMinMaxClamp": "error",
|
|
72
|
+
"noUndeclaredVariables": "error",
|
|
73
|
+
"noUnusedFunctionParameters": "error",
|
|
74
|
+
"noUnusedImports": "error",
|
|
75
|
+
"noUnusedPrivateClassMembers": "error",
|
|
76
|
+
"noUnusedVariables": "error",
|
|
77
|
+
"useExhaustiveDependencies": {
|
|
78
|
+
"level": "error",
|
|
79
|
+
"options": {
|
|
80
|
+
"reportUnnecessaryDependencies": false
|
|
81
|
+
}
|
|
82
|
+
}
|
|
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,
|
|
97
|
+
"style": {
|
|
98
|
+
"noParameterProperties": "error",
|
|
99
|
+
"noYodaExpression": "error",
|
|
100
|
+
"useArrayLiterals": "error",
|
|
101
|
+
"useConsistentBuiltinInstantiation": "error",
|
|
102
|
+
"useFragmentSyntax": "error",
|
|
103
|
+
"useImportType": {
|
|
104
|
+
"fix": "safe",
|
|
105
|
+
"level": "error",
|
|
106
|
+
"options": {
|
|
107
|
+
"style": "separatedType"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"useSelfClosingElements": {
|
|
111
|
+
"fix": "safe",
|
|
112
|
+
"level": "error",
|
|
113
|
+
"options": {}
|
|
114
|
+
},
|
|
115
|
+
"useShorthandAssign": "error"
|
|
116
|
+
},
|
|
117
|
+
"suspicious": {
|
|
118
|
+
"noEvolvingTypes": "error",
|
|
119
|
+
"useAwait": "error"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"overrides": [
|
|
124
|
+
{
|
|
125
|
+
"includes": [
|
|
126
|
+
"**/*.jsx",
|
|
127
|
+
"**/*.tsx"
|
|
128
|
+
],
|
|
129
|
+
"linter": {
|
|
130
|
+
"rules": {
|
|
131
|
+
"style": {
|
|
132
|
+
"noParameterAssign": "error"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"includes": [
|
|
139
|
+
"**/*.ts",
|
|
140
|
+
"**/*.tsx"
|
|
141
|
+
],
|
|
142
|
+
"linter": {
|
|
143
|
+
"rules": {
|
|
144
|
+
"correctness": {
|
|
145
|
+
"noUnusedVariables": "off"
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"includes": [
|
|
152
|
+
"**/*.vue"
|
|
153
|
+
],
|
|
154
|
+
"formatter": {
|
|
155
|
+
"lineWidth": 120
|
|
156
|
+
},
|
|
157
|
+
"javascript": {
|
|
158
|
+
"formatter": {
|
|
159
|
+
"quoteStyle": "single"
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"root": true,
|
|
165
|
+
"vcs": {
|
|
166
|
+
"clientKind": "git",
|
|
167
|
+
"defaultBranch": "main",
|
|
168
|
+
"enabled": true,
|
|
169
|
+
"useIgnoreFile": true
|
|
170
|
+
},
|
|
171
|
+
"html": {
|
|
172
|
+
"formatter": {
|
|
173
|
+
"indentScriptAndStyle": true,
|
|
174
|
+
"selfCloseVoidElements": "always"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
package/package.json
CHANGED
|
@@ -1,49 +1,50 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "@quentinhsu/biome-config",
|
|
3
|
-
"version": "0.3.2",
|
|
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
|
-
|
|
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
|
+
},
|
|
15
14
|
"exports": {
|
|
16
15
|
".": "./dist/index.jsonc",
|
|
17
|
-
"./react": "./dist/react.jsonc",
|
|
18
16
|
"./next": "./dist/next.jsonc",
|
|
19
|
-
"./
|
|
20
|
-
"./
|
|
17
|
+
"./nuxt": "./dist/nuxt.jsonc",
|
|
18
|
+
"./react": "./dist/react.jsonc",
|
|
19
|
+
"./vue": "./dist/vue.jsonc"
|
|
21
20
|
},
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
22
24
|
"keywords": [
|
|
23
25
|
"biome",
|
|
24
26
|
"config",
|
|
25
27
|
"lint",
|
|
26
28
|
"formatter"
|
|
27
29
|
],
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"name": "@quentinhsu/biome-config",
|
|
28
32
|
"publishConfig": {
|
|
29
|
-
"
|
|
30
|
-
"
|
|
33
|
+
"access": "public",
|
|
34
|
+
"provenance": true
|
|
31
35
|
},
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"@types/node": "^24.9.1",
|
|
36
|
-
"json-schema-to-typescript": "^15.0.4",
|
|
37
|
-
"nodemon": "^3.1.10",
|
|
38
|
-
"tsx": "^4.16.2",
|
|
39
|
-
"typescript": "^5.6.3",
|
|
40
|
-
"@quentinhsu/biome-config": "0.3.2"
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "git+https://github.com/QuentinHsu/biome-config.git"
|
|
41
39
|
},
|
|
40
|
+
"type": "module",
|
|
41
|
+
"version": "0.3.5",
|
|
42
42
|
"scripts": {
|
|
43
|
-
"generate:types": "tsx scripts/generate-biome-types.ts",
|
|
44
|
-
"prebuild": "pnpm run generate:types",
|
|
45
43
|
"build": "rslib build && node dist/build.mjs",
|
|
46
44
|
"dev": "nodemon --exec tsx scripts/build-presets.ts",
|
|
47
|
-
"
|
|
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"
|
|
48
49
|
}
|
|
49
50
|
}
|