@quentinhsu/biome-config 0.2.0 → 0.3.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.
Files changed (33) hide show
  1. package/README.md +44 -0
  2. package/package.json +7 -4
  3. package/dist/build.mjs +0 -387
  4. package/dist/index.jsonc +0 -152
  5. package/dist/index.mjs +0 -357
  6. package/dist/next.jsonc +0 -169
  7. package/dist/nuxt.jsonc +0 -224
  8. package/dist/react.jsonc +0 -167
  9. package/dist/types/scripts/generate-biome-types.d.ts +0 -1
  10. package/dist/types/scripts/generate-changelog.d.ts +0 -6
  11. package/dist/types/src/build.d.ts +0 -1
  12. package/dist/types/src/constants/biome.d.ts +0 -1
  13. package/dist/types/src/generated/biome/index.d.ts +0 -11
  14. package/dist/types/src/generated/biome/no-compare-neg-zero-configuration.d.ts +0 -986
  15. package/dist/types/src/generated/biome/no-global-object-calls-options.d.ts +0 -306
  16. package/dist/types/src/generated/biome/no-nested-ternary-options.d.ts +0 -292
  17. package/dist/types/src/generated/biome/no-octal-escape-options.d.ts +0 -1138
  18. package/dist/types/src/generated/biome/no-shadow-configuration.d.ts +0 -241
  19. package/dist/types/src/generated/biome/nursery.d.ts +0 -1023
  20. package/dist/types/src/generated/biome/rule-with-no-duplicate-custom-properties-options.d.ts +0 -1095
  21. package/dist/types/src/generated/biome/rule-with-no-useless-catch-options.d.ts +0 -1430
  22. package/dist/types/src/generated/biome/rule-with-use-image-size-options.d.ts +0 -1339
  23. package/dist/types/src/generated/biome/schema.d.ts +0 -291
  24. package/dist/types/src/generated/biome/use-valid-lang-configuration.d.ts +0 -163
  25. package/dist/types/src/index.d.ts +0 -15
  26. package/dist/types/src/presets/next.d.ts +0 -1
  27. package/dist/types/src/presets/nuxt.d.ts +0 -1
  28. package/dist/types/src/presets/react.d.ts +0 -1
  29. package/dist/types/src/presets/vue.d.ts +0 -1
  30. package/dist/types/src/source/index.d.ts +0 -2
  31. package/dist/types/src/types.d.ts +0 -1
  32. package/dist/types/src/utils/merge.d.ts +0 -2
  33. package/dist/vue.jsonc +0 -176
package/dist/nuxt.jsonc DELETED
@@ -1,224 +0,0 @@
1
- {
2
- "$schema": "https://biomejs.dev/schemas/2.2.6/schema.json",
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
- },
29
- "assist": {
30
- "actions": {
31
- "source": {
32
- "organizeImports": {
33
- "level": "on",
34
- "options": {
35
- "groups": [
36
- [
37
- ":NODE:",
38
- ":BUN:",
39
- ":PACKAGE_WITH_PROTOCOL:",
40
- ":PACKAGE:"
41
- ],
42
- ":BLANK_LINE:",
43
- ":ALIAS:",
44
- ":BLANK_LINE:",
45
- ":PATH:"
46
- ]
47
- }
48
- },
49
- "useSortedAttributes": {
50
- "level": "on",
51
- "options": {
52
- "sortOrder": "natural"
53
- }
54
- }
55
- }
56
- }
57
- },
58
- "linter": {
59
- "enabled": true,
60
- "rules": {
61
- "recommended": true,
62
- "complexity": {
63
- "noUselessStringConcat": "error",
64
- "noUselessUndefinedInitialization": "error",
65
- "noVoid": "error",
66
- "useDateNow": "error"
67
- },
68
- "correctness": {
69
- "noConstantMathMinMaxClamp": "error",
70
- "noUndeclaredVariables": "error",
71
- "noUnusedImports": "error",
72
- "noUnusedFunctionParameters": "error",
73
- "noUnusedPrivateClassMembers": "error",
74
- "useExhaustiveDependencies": {
75
- "level": "error",
76
- "options": {
77
- "reportUnnecessaryDependencies": false
78
- }
79
- },
80
- "noUnusedVariables": "error"
81
- },
82
- "style": {
83
- "noParameterProperties": "error",
84
- "noYodaExpression": "error",
85
- "useConsistentBuiltinInstantiation": "error",
86
- "useFragmentSyntax": "error",
87
- "useImportType": {
88
- "level": "error",
89
- "fix": "safe",
90
- "options": {
91
- "style": "separatedType"
92
- }
93
- },
94
- "useSelfClosingElements": {
95
- "level": "error",
96
- "fix": "safe",
97
- "options": {}
98
- },
99
- "useShorthandAssign": "error",
100
- "useArrayLiterals": "error"
101
- },
102
- "nursery": {
103
- "useSortedClasses": {
104
- "level": "error",
105
- "fix": "safe",
106
- "options": {
107
- "functions": [
108
- "clsx",
109
- "cn"
110
- ]
111
- }
112
- }
113
- },
114
- "suspicious": {
115
- "useAwait": "error",
116
- "noEvolvingTypes": "error"
117
- }
118
- }
119
- },
120
- "javascript": {
121
- "formatter": {
122
- "quoteStyle": "single",
123
- "jsxQuoteStyle": "single",
124
- "arrowParentheses": "asNeeded",
125
- "trailingCommas": "all"
126
- },
127
- "parser": {
128
- "jsxEverywhere": false
129
- },
130
- "globals": [
131
- "defineNuxtConfig",
132
- "defineAppConfig",
133
- "defineNuxtPlugin",
134
- "defineNuxtRouteMiddleware",
135
- "defineNuxtServerPlugin",
136
- "defineNitroPlugin",
137
- "defineEventHandler",
138
- "defineLazyEventHandler",
139
- "definePayloadPlugin",
140
- "defineRouteRules",
141
- "definePageMeta",
142
- "useRuntimeConfig",
143
- "useNuxtApp",
144
- "useAsyncData",
145
- "useLazyAsyncData",
146
- "useFetch",
147
- "useLazyFetch",
148
- "useState",
149
- "useCookie",
150
- "useHead",
151
- "useSeoMeta",
152
- "useError",
153
- "clearError",
154
- "showError",
155
- "navigateTo",
156
- "abortNavigation",
157
- "refreshNuxtData",
158
- "onNuxtReady",
159
- "useRouter",
160
- "useRoute",
161
- "useRequestEvent",
162
- "useRequestHeaders"
163
- ]
164
- },
165
- "overrides": [
166
- {
167
- "includes": [
168
- "**/*.jsx",
169
- "**/*.tsx"
170
- ],
171
- "linter": {
172
- "rules": {
173
- "style": {
174
- "noParameterAssign": "error"
175
- }
176
- }
177
- }
178
- },
179
- {
180
- "includes": [
181
- "**/*.ts",
182
- "**/*.tsx"
183
- ],
184
- "linter": {
185
- "rules": {
186
- "correctness": {
187
- "noUnusedVariables": "off"
188
- }
189
- }
190
- }
191
- },
192
- {
193
- "includes": [
194
- "**/*.vue"
195
- ],
196
- "formatter": {
197
- "lineWidth": 120
198
- },
199
- "javascript": {
200
- "formatter": {
201
- "quoteStyle": "single"
202
- }
203
- }
204
- },
205
- {
206
- "includes": [
207
- "**/*.ts"
208
- ],
209
- "linter": {
210
- "rules": {
211
- "correctness": {
212
- "noUndeclaredVariables": "error"
213
- }
214
- }
215
- }
216
- }
217
- ],
218
- "html": {
219
- "formatter": {
220
- "indentScriptAndStyle": true,
221
- "selfCloseVoidElements": "always"
222
- }
223
- }
224
- }
package/dist/react.jsonc DELETED
@@ -1,167 +0,0 @@
1
- {
2
- "$schema": "https://biomejs.dev/schemas/2.2.6/schema.json",
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
- },
26
- "assist": {
27
- "actions": {
28
- "source": {
29
- "organizeImports": {
30
- "level": "on",
31
- "options": {
32
- "groups": [
33
- [
34
- ":NODE:",
35
- ":BUN:",
36
- ":PACKAGE_WITH_PROTOCOL:",
37
- ":PACKAGE:"
38
- ],
39
- ":BLANK_LINE:",
40
- ":ALIAS:",
41
- ":BLANK_LINE:",
42
- ":PATH:"
43
- ]
44
- }
45
- },
46
- "useSortedAttributes": {
47
- "level": "on",
48
- "options": {
49
- "sortOrder": "natural"
50
- }
51
- }
52
- }
53
- }
54
- },
55
- "linter": {
56
- "enabled": true,
57
- "rules": {
58
- "recommended": true,
59
- "complexity": {
60
- "noUselessStringConcat": "error",
61
- "noUselessUndefinedInitialization": "error",
62
- "noVoid": "error",
63
- "useDateNow": "error"
64
- },
65
- "correctness": {
66
- "noConstantMathMinMaxClamp": "error",
67
- "noUndeclaredVariables": "error",
68
- "noUnusedImports": "error",
69
- "noUnusedFunctionParameters": "error",
70
- "noUnusedPrivateClassMembers": "error",
71
- "useExhaustiveDependencies": {
72
- "level": "error",
73
- "options": {
74
- "reportUnnecessaryDependencies": false
75
- }
76
- },
77
- "noUnusedVariables": "error"
78
- },
79
- "style": {
80
- "noParameterProperties": "error",
81
- "noYodaExpression": "error",
82
- "useConsistentBuiltinInstantiation": "error",
83
- "useFragmentSyntax": "error",
84
- "useImportType": {
85
- "level": "error",
86
- "fix": "safe",
87
- "options": {
88
- "style": "separatedType"
89
- }
90
- },
91
- "useSelfClosingElements": {
92
- "level": "error",
93
- "fix": "safe",
94
- "options": {}
95
- },
96
- "useShorthandAssign": "error",
97
- "useArrayLiterals": "error"
98
- },
99
- "nursery": {
100
- "useSortedClasses": {
101
- "level": "error",
102
- "fix": "safe",
103
- "options": {
104
- "functions": [
105
- "clsx",
106
- "cn"
107
- ]
108
- }
109
- }
110
- },
111
- "suspicious": {
112
- "useAwait": "error",
113
- "noEvolvingTypes": "error"
114
- }
115
- }
116
- },
117
- "javascript": {
118
- "formatter": {
119
- "quoteStyle": "single",
120
- "jsxQuoteStyle": "single",
121
- "arrowParentheses": "asNeeded",
122
- "trailingCommas": "all"
123
- },
124
- "jsxRuntime": "reactClassic"
125
- },
126
- "overrides": [
127
- {
128
- "includes": [
129
- "**/*.jsx",
130
- "**/*.tsx"
131
- ],
132
- "linter": {
133
- "rules": {
134
- "style": {
135
- "noParameterAssign": "error"
136
- }
137
- }
138
- }
139
- },
140
- {
141
- "includes": [
142
- "**/*.ts",
143
- "**/*.tsx"
144
- ],
145
- "linter": {
146
- "rules": {
147
- "correctness": {
148
- "noUnusedVariables": "off"
149
- }
150
- }
151
- }
152
- },
153
- {
154
- "includes": [
155
- "**/__tests__/**",
156
- "**/*.{test,spec}.{ts,tsx,js,jsx}"
157
- ],
158
- "linter": {
159
- "rules": {
160
- "correctness": {
161
- "noUnusedVariables": "off"
162
- }
163
- }
164
- }
165
- }
166
- ]
167
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env tsx
2
- /**
3
- * Generate CHANGELOG.md by analyzing git changes with AI
4
- * Usage: tsx scripts/generate-changelog.ts [from-tag] [to-tag]
5
- */
6
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export declare const BIOME_SCHEMA_URL: "https://biomejs.dev/schemas/2.2.6/schema.json";
@@ -1,11 +0,0 @@
1
- export * from './schema.ts';
2
- export * from './no-global-object-calls-options.ts';
3
- export * from './no-nested-ternary-options.ts';
4
- export * from './no-octal-escape-options.ts';
5
- export * from './rule-with-no-useless-catch-options.ts';
6
- export * from './rule-with-use-image-size-options.ts';
7
- export * from './rule-with-no-duplicate-custom-properties-options.ts';
8
- export * from './use-valid-lang-configuration.ts';
9
- export * from './no-shadow-configuration.ts';
10
- export * from './no-compare-neg-zero-configuration.ts';
11
- export * from './nursery.ts';