@quentinhsu/biome-config 0.1.0 → 0.2.1

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/LICENSE +21 -0
  2. package/README.md +80 -16
  3. package/package.json +13 -4
  4. package/dist/build.mjs +0 -381
  5. package/dist/index.jsonc +0 -146
  6. package/dist/index.mjs +0 -351
  7. package/dist/next.jsonc +0 -163
  8. package/dist/nuxt.jsonc +0 -218
  9. package/dist/react.jsonc +0 -161
  10. package/dist/types/scripts/generate-biome-types.d.ts +0 -1
  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 -170
package/dist/nuxt.jsonc DELETED
@@ -1,218 +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
- }
50
- }
51
- },
52
- "linter": {
53
- "enabled": true,
54
- "rules": {
55
- "recommended": true,
56
- "complexity": {
57
- "noUselessStringConcat": "error",
58
- "noUselessUndefinedInitialization": "error",
59
- "noVoid": "error",
60
- "useDateNow": "error"
61
- },
62
- "correctness": {
63
- "noConstantMathMinMaxClamp": "error",
64
- "noUndeclaredVariables": "error",
65
- "noUnusedImports": "error",
66
- "noUnusedFunctionParameters": "error",
67
- "noUnusedPrivateClassMembers": "error",
68
- "useExhaustiveDependencies": {
69
- "level": "error",
70
- "options": {
71
- "reportUnnecessaryDependencies": false
72
- }
73
- },
74
- "noUnusedVariables": "error"
75
- },
76
- "style": {
77
- "noParameterProperties": "error",
78
- "noYodaExpression": "error",
79
- "useConsistentBuiltinInstantiation": "error",
80
- "useFragmentSyntax": "error",
81
- "useImportType": {
82
- "level": "error",
83
- "fix": "safe",
84
- "options": {
85
- "style": "separatedType"
86
- }
87
- },
88
- "useSelfClosingElements": {
89
- "level": "error",
90
- "fix": "safe",
91
- "options": {}
92
- },
93
- "useShorthandAssign": "error",
94
- "useArrayLiterals": "error"
95
- },
96
- "nursery": {
97
- "useSortedClasses": {
98
- "level": "error",
99
- "fix": "safe",
100
- "options": {
101
- "functions": [
102
- "clsx",
103
- "cn"
104
- ]
105
- }
106
- }
107
- },
108
- "suspicious": {
109
- "useAwait": "error",
110
- "noEvolvingTypes": "error"
111
- }
112
- }
113
- },
114
- "javascript": {
115
- "formatter": {
116
- "quoteStyle": "single",
117
- "jsxQuoteStyle": "single",
118
- "arrowParentheses": "asNeeded",
119
- "trailingCommas": "all"
120
- },
121
- "parser": {
122
- "jsxEverywhere": false
123
- },
124
- "globals": [
125
- "defineNuxtConfig",
126
- "defineAppConfig",
127
- "defineNuxtPlugin",
128
- "defineNuxtRouteMiddleware",
129
- "defineNuxtServerPlugin",
130
- "defineNitroPlugin",
131
- "defineEventHandler",
132
- "defineLazyEventHandler",
133
- "definePayloadPlugin",
134
- "defineRouteRules",
135
- "definePageMeta",
136
- "useRuntimeConfig",
137
- "useNuxtApp",
138
- "useAsyncData",
139
- "useLazyAsyncData",
140
- "useFetch",
141
- "useLazyFetch",
142
- "useState",
143
- "useCookie",
144
- "useHead",
145
- "useSeoMeta",
146
- "useError",
147
- "clearError",
148
- "showError",
149
- "navigateTo",
150
- "abortNavigation",
151
- "refreshNuxtData",
152
- "onNuxtReady",
153
- "useRouter",
154
- "useRoute",
155
- "useRequestEvent",
156
- "useRequestHeaders"
157
- ]
158
- },
159
- "overrides": [
160
- {
161
- "includes": [
162
- "**/*.jsx",
163
- "**/*.tsx"
164
- ],
165
- "linter": {
166
- "rules": {
167
- "style": {
168
- "noParameterAssign": "error"
169
- }
170
- }
171
- }
172
- },
173
- {
174
- "includes": [
175
- "**/*.ts",
176
- "**/*.tsx"
177
- ],
178
- "linter": {
179
- "rules": {
180
- "correctness": {
181
- "noUnusedVariables": "off"
182
- }
183
- }
184
- }
185
- },
186
- {
187
- "includes": [
188
- "**/*.vue"
189
- ],
190
- "formatter": {
191
- "lineWidth": 120
192
- },
193
- "javascript": {
194
- "formatter": {
195
- "quoteStyle": "single"
196
- }
197
- }
198
- },
199
- {
200
- "includes": [
201
- "**/*.ts"
202
- ],
203
- "linter": {
204
- "rules": {
205
- "correctness": {
206
- "noUndeclaredVariables": "error"
207
- }
208
- }
209
- }
210
- }
211
- ],
212
- "html": {
213
- "formatter": {
214
- "indentScriptAndStyle": true,
215
- "selfCloseVoidElements": "always"
216
- }
217
- }
218
- }
package/dist/react.jsonc DELETED
@@ -1,161 +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
- }
47
- }
48
- },
49
- "linter": {
50
- "enabled": true,
51
- "rules": {
52
- "recommended": true,
53
- "complexity": {
54
- "noUselessStringConcat": "error",
55
- "noUselessUndefinedInitialization": "error",
56
- "noVoid": "error",
57
- "useDateNow": "error"
58
- },
59
- "correctness": {
60
- "noConstantMathMinMaxClamp": "error",
61
- "noUndeclaredVariables": "error",
62
- "noUnusedImports": "error",
63
- "noUnusedFunctionParameters": "error",
64
- "noUnusedPrivateClassMembers": "error",
65
- "useExhaustiveDependencies": {
66
- "level": "error",
67
- "options": {
68
- "reportUnnecessaryDependencies": false
69
- }
70
- },
71
- "noUnusedVariables": "error"
72
- },
73
- "style": {
74
- "noParameterProperties": "error",
75
- "noYodaExpression": "error",
76
- "useConsistentBuiltinInstantiation": "error",
77
- "useFragmentSyntax": "error",
78
- "useImportType": {
79
- "level": "error",
80
- "fix": "safe",
81
- "options": {
82
- "style": "separatedType"
83
- }
84
- },
85
- "useSelfClosingElements": {
86
- "level": "error",
87
- "fix": "safe",
88
- "options": {}
89
- },
90
- "useShorthandAssign": "error",
91
- "useArrayLiterals": "error"
92
- },
93
- "nursery": {
94
- "useSortedClasses": {
95
- "level": "error",
96
- "fix": "safe",
97
- "options": {
98
- "functions": [
99
- "clsx",
100
- "cn"
101
- ]
102
- }
103
- }
104
- },
105
- "suspicious": {
106
- "useAwait": "error",
107
- "noEvolvingTypes": "error"
108
- }
109
- }
110
- },
111
- "javascript": {
112
- "formatter": {
113
- "quoteStyle": "single",
114
- "jsxQuoteStyle": "single",
115
- "arrowParentheses": "asNeeded",
116
- "trailingCommas": "all"
117
- },
118
- "jsxRuntime": "reactClassic"
119
- },
120
- "overrides": [
121
- {
122
- "includes": [
123
- "**/*.jsx",
124
- "**/*.tsx"
125
- ],
126
- "linter": {
127
- "rules": {
128
- "style": {
129
- "noParameterAssign": "error"
130
- }
131
- }
132
- }
133
- },
134
- {
135
- "includes": [
136
- "**/*.ts",
137
- "**/*.tsx"
138
- ],
139
- "linter": {
140
- "rules": {
141
- "correctness": {
142
- "noUnusedVariables": "off"
143
- }
144
- }
145
- }
146
- },
147
- {
148
- "includes": [
149
- "**/__tests__/**",
150
- "**/*.{test,spec}.{ts,tsx,js,jsx}"
151
- ],
152
- "linter": {
153
- "rules": {
154
- "correctness": {
155
- "noUnusedVariables": "off"
156
- }
157
- }
158
- }
159
- }
160
- ]
161
- }
@@ -1 +0,0 @@
1
- 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';