@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.
Files changed (23) hide show
  1. package/dist/build.mjs +59 -59
  2. package/dist/index.jsonc +56 -56
  3. package/dist/index.mjs +59 -59
  4. package/dist/next.jsonc +60 -60
  5. package/dist/nuxt.jsonc +91 -91
  6. package/dist/react.jsonc +58 -58
  7. package/dist/types/src/constants/biome.d.ts +1 -1
  8. package/dist/types/src/generated/biome/index.d.ts +10 -9
  9. package/dist/types/src/generated/biome/linter-configuration.d.ts +181 -0
  10. package/dist/types/src/generated/biome/no-global-object-calls-options.d.ts +25 -24
  11. package/dist/types/src/generated/biome/{no-misrefactored-shorthand-assign-options.d.ts → no-label-var-options.d.ts} +55 -95
  12. package/dist/types/src/generated/biome/{no-non-null-assertion-options.d.ts → no-magic-numbers-options.d.ts} +17 -17
  13. 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
  14. 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
  15. package/dist/types/src/generated/biome/{use-consistent-arrow-return-options.d.ts → rule-with-no-unused-expressions-options.d.ts} +202 -206
  16. package/dist/types/src/generated/biome/schema.d.ts +11 -11
  17. package/dist/types/src/generated/biome/{nursery.d.ts → use-consistent-object-definitions-configuration.d.ts} +473 -192
  18. package/dist/types/src/generated/biome/{use-semantic-elements-configuration.d.ts → use-focusable-interactive-configuration.d.ts} +16 -16
  19. package/dist/types/src/generated/biome/{no-empty-source-configuration.d.ts → use-qwik-classlist-configuration.d.ts} +26 -26
  20. package/dist/types/src/generated/biome/{no-assign-in-expressions-configuration.d.ts → use-shorthand-assign-configuration.d.ts} +19 -450
  21. package/dist/types/src/index.d.ts +2 -2
  22. package/dist/vue.jsonc +60 -60
  23. package/package.json +34 -34
package/dist/build.mjs CHANGED
@@ -44,31 +44,9 @@ const mergeConfigs = (...configs)=>{
44
44
  const merged = configs.reduce((accumulator, config)=>deepMerge(accumulator, config), {});
45
45
  return merged;
46
46
  };
47
- const BIOME_SCHEMA_URL = 'https://biomejs.dev/schemas/2.3.2/schema.json';
47
+ const BIOME_SCHEMA_URL = 'https://biomejs.dev/schemas/2.3.5/schema.json';
48
48
  const indexConfig = {
49
49
  $schema: BIOME_SCHEMA_URL,
50
- root: true,
51
- vcs: {
52
- enabled: true,
53
- clientKind: 'git',
54
- useIgnoreFile: true,
55
- defaultBranch: 'main'
56
- },
57
- files: {
58
- ignoreUnknown: true,
59
- includes: [
60
- '**',
61
- '!**/build',
62
- '!**/dist',
63
- '!**/.next'
64
- ]
65
- },
66
- formatter: {
67
- enabled: true,
68
- indentStyle: 'space',
69
- lineWidth: 140,
70
- formatWithErrors: true
71
- },
72
50
  assist: {
73
51
  actions: {
74
52
  source: {
@@ -89,20 +67,42 @@ const indexConfig = {
89
67
  ]
90
68
  }
91
69
  },
92
- useSortedKeys: 'on',
93
70
  useSortedAttributes: {
94
71
  level: 'on',
95
72
  options: {
96
73
  sortOrder: 'natural'
97
74
  }
98
- }
75
+ },
76
+ useSortedKeys: 'on'
99
77
  }
100
78
  }
101
79
  },
80
+ files: {
81
+ ignoreUnknown: true,
82
+ includes: [
83
+ '**',
84
+ '!**/build',
85
+ '!**/dist',
86
+ '!**/.next'
87
+ ]
88
+ },
89
+ formatter: {
90
+ enabled: true,
91
+ formatWithErrors: true,
92
+ indentStyle: 'space',
93
+ lineWidth: 140
94
+ },
95
+ javascript: {
96
+ formatter: {
97
+ arrowParentheses: 'asNeeded',
98
+ jsxQuoteStyle: 'single',
99
+ quoteStyle: 'single',
100
+ trailingCommas: 'all'
101
+ }
102
+ },
102
103
  linter: {
103
104
  enabled: true,
104
105
  rules: {
105
- recommended: true,
106
106
  complexity: {
107
107
  noUselessStringConcat: 'error',
108
108
  noUselessUndefinedInitialization: 'error',
@@ -112,63 +112,56 @@ const indexConfig = {
112
112
  correctness: {
113
113
  noConstantMathMinMaxClamp: 'error',
114
114
  noUndeclaredVariables: 'error',
115
- noUnusedImports: 'error',
116
115
  noUnusedFunctionParameters: 'error',
116
+ noUnusedImports: 'error',
117
117
  noUnusedPrivateClassMembers: 'error',
118
+ noUnusedVariables: 'error',
118
119
  useExhaustiveDependencies: {
119
120
  level: 'error',
120
121
  options: {
121
122
  reportUnnecessaryDependencies: false
122
123
  }
123
- },
124
- noUnusedVariables: 'error'
124
+ }
125
125
  },
126
+ nursery: {
127
+ useSortedClasses: {
128
+ fix: 'safe',
129
+ level: 'error',
130
+ options: {
131
+ functions: [
132
+ 'clsx',
133
+ 'cn'
134
+ ]
135
+ }
136
+ }
137
+ },
138
+ recommended: true,
126
139
  style: {
127
140
  noParameterProperties: 'error',
128
141
  noYodaExpression: 'error',
142
+ useArrayLiterals: 'error',
129
143
  useConsistentBuiltinInstantiation: 'error',
130
144
  useFragmentSyntax: 'error',
131
145
  useImportType: {
132
- level: 'error',
133
146
  fix: 'safe',
147
+ level: 'error',
134
148
  options: {
135
149
  style: 'separatedType'
136
150
  }
137
151
  },
138
152
  useSelfClosingElements: {
139
- level: 'error',
140
153
  fix: 'safe',
154
+ level: 'error',
141
155
  options: {}
142
156
  },
143
- useShorthandAssign: 'error',
144
- useArrayLiterals: 'error'
145
- },
146
- nursery: {
147
- useSortedClasses: {
148
- level: 'error',
149
- fix: 'safe',
150
- options: {
151
- functions: [
152
- 'clsx',
153
- 'cn'
154
- ]
155
- }
156
- }
157
+ useShorthandAssign: 'error'
157
158
  },
158
159
  suspicious: {
159
- useAwait: 'error',
160
- noEvolvingTypes: 'error'
160
+ noEvolvingTypes: 'error',
161
+ useAwait: 'error'
161
162
  }
162
163
  }
163
164
  },
164
- javascript: {
165
- formatter: {
166
- quoteStyle: 'single',
167
- jsxQuoteStyle: 'single',
168
- arrowParentheses: 'asNeeded',
169
- trailingCommas: 'all'
170
- }
171
- },
172
165
  overrides: [
173
166
  {
174
167
  includes: [
@@ -196,7 +189,14 @@ const indexConfig = {
196
189
  }
197
190
  }
198
191
  }
199
- ]
192
+ ],
193
+ root: true,
194
+ vcs: {
195
+ clientKind: 'git',
196
+ defaultBranch: 'main',
197
+ enabled: true,
198
+ useIgnoreFile: true
199
+ }
200
200
  };
201
201
  const reactOverlay = {
202
202
  files: {
@@ -353,10 +353,10 @@ const nuxtOverlay = {
353
353
  const nuxtConfig = mergeConfigs(vueConfig, nuxtOverlay);
354
354
  const allPresets = Object.freeze({
355
355
  index: indexConfig,
356
- react: reactConfig,
357
356
  next: nextConfig,
358
- vue: vueConfig,
359
- nuxt: nuxtConfig
357
+ nuxt: nuxtConfig,
358
+ react: reactConfig,
359
+ vue: vueConfig
360
360
  });
361
361
  const currentDir = dirname(fileURLToPath(import.meta.url));
362
362
  const outputDir = currentDir;
package/dist/index.jsonc CHANGED
@@ -1,27 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/2.3.2/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
- ]
18
- },
19
- "formatter": {
20
- "enabled": true,
21
- "indentStyle": "space",
22
- "lineWidth": 140,
23
- "formatWithErrors": true
24
- },
2
+ "$schema": "https://biomejs.dev/schemas/2.3.5/schema.json",
25
3
  "assist": {
26
4
  "actions": {
27
5
  "source": {
@@ -42,20 +20,42 @@
42
20
  ]
43
21
  }
44
22
  },
45
- "useSortedKeys": "on",
46
23
  "useSortedAttributes": {
47
24
  "level": "on",
48
25
  "options": {
49
26
  "sortOrder": "natural"
50
27
  }
51
- }
28
+ },
29
+ "useSortedKeys": "on"
52
30
  }
53
31
  }
54
32
  },
33
+ "files": {
34
+ "ignoreUnknown": true,
35
+ "includes": [
36
+ "**",
37
+ "!**/build",
38
+ "!**/dist",
39
+ "!**/.next"
40
+ ]
41
+ },
42
+ "formatter": {
43
+ "enabled": true,
44
+ "formatWithErrors": true,
45
+ "indentStyle": "space",
46
+ "lineWidth": 140
47
+ },
48
+ "javascript": {
49
+ "formatter": {
50
+ "arrowParentheses": "asNeeded",
51
+ "jsxQuoteStyle": "single",
52
+ "quoteStyle": "single",
53
+ "trailingCommas": "all"
54
+ }
55
+ },
55
56
  "linter": {
56
57
  "enabled": true,
57
58
  "rules": {
58
- "recommended": true,
59
59
  "complexity": {
60
60
  "noUselessStringConcat": "error",
61
61
  "noUselessUndefinedInitialization": "error",
@@ -65,63 +65,56 @@
65
65
  "correctness": {
66
66
  "noConstantMathMinMaxClamp": "error",
67
67
  "noUndeclaredVariables": "error",
68
- "noUnusedImports": "error",
69
68
  "noUnusedFunctionParameters": "error",
69
+ "noUnusedImports": "error",
70
70
  "noUnusedPrivateClassMembers": "error",
71
+ "noUnusedVariables": "error",
71
72
  "useExhaustiveDependencies": {
72
73
  "level": "error",
73
74
  "options": {
74
75
  "reportUnnecessaryDependencies": false
75
76
  }
76
- },
77
- "noUnusedVariables": "error"
77
+ }
78
+ },
79
+ "nursery": {
80
+ "useSortedClasses": {
81
+ "fix": "safe",
82
+ "level": "error",
83
+ "options": {
84
+ "functions": [
85
+ "clsx",
86
+ "cn"
87
+ ]
88
+ }
89
+ }
78
90
  },
91
+ "recommended": true,
79
92
  "style": {
80
93
  "noParameterProperties": "error",
81
94
  "noYodaExpression": "error",
95
+ "useArrayLiterals": "error",
82
96
  "useConsistentBuiltinInstantiation": "error",
83
97
  "useFragmentSyntax": "error",
84
98
  "useImportType": {
85
- "level": "error",
86
99
  "fix": "safe",
100
+ "level": "error",
87
101
  "options": {
88
102
  "style": "separatedType"
89
103
  }
90
104
  },
91
105
  "useSelfClosingElements": {
92
- "level": "error",
93
106
  "fix": "safe",
107
+ "level": "error",
94
108
  "options": {}
95
109
  },
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
+ "useShorthandAssign": "error"
110
111
  },
111
112
  "suspicious": {
112
- "useAwait": "error",
113
- "noEvolvingTypes": "error"
113
+ "noEvolvingTypes": "error",
114
+ "useAwait": "error"
114
115
  }
115
116
  }
116
117
  },
117
- "javascript": {
118
- "formatter": {
119
- "quoteStyle": "single",
120
- "jsxQuoteStyle": "single",
121
- "arrowParentheses": "asNeeded",
122
- "trailingCommas": "all"
123
- }
124
- },
125
118
  "overrides": [
126
119
  {
127
120
  "includes": [
@@ -149,5 +142,12 @@
149
142
  }
150
143
  }
151
144
  }
152
- ]
145
+ ],
146
+ "root": true,
147
+ "vcs": {
148
+ "clientKind": "git",
149
+ "defaultBranch": "main",
150
+ "enabled": true,
151
+ "useIgnoreFile": true
152
+ }
153
153
  }
package/dist/index.mjs CHANGED
@@ -41,31 +41,9 @@ const mergeConfigs = (...configs)=>{
41
41
  const merged = configs.reduce((accumulator, config)=>deepMerge(accumulator, config), {});
42
42
  return merged;
43
43
  };
44
- const BIOME_SCHEMA_URL = 'https://biomejs.dev/schemas/2.3.2/schema.json';
44
+ const BIOME_SCHEMA_URL = 'https://biomejs.dev/schemas/2.3.5/schema.json';
45
45
  const indexConfig = {
46
46
  $schema: BIOME_SCHEMA_URL,
47
- root: true,
48
- vcs: {
49
- enabled: true,
50
- clientKind: 'git',
51
- useIgnoreFile: true,
52
- defaultBranch: 'main'
53
- },
54
- files: {
55
- ignoreUnknown: true,
56
- includes: [
57
- '**',
58
- '!**/build',
59
- '!**/dist',
60
- '!**/.next'
61
- ]
62
- },
63
- formatter: {
64
- enabled: true,
65
- indentStyle: 'space',
66
- lineWidth: 140,
67
- formatWithErrors: true
68
- },
69
47
  assist: {
70
48
  actions: {
71
49
  source: {
@@ -86,20 +64,42 @@ const indexConfig = {
86
64
  ]
87
65
  }
88
66
  },
89
- useSortedKeys: 'on',
90
67
  useSortedAttributes: {
91
68
  level: 'on',
92
69
  options: {
93
70
  sortOrder: 'natural'
94
71
  }
95
- }
72
+ },
73
+ useSortedKeys: 'on'
96
74
  }
97
75
  }
98
76
  },
77
+ files: {
78
+ ignoreUnknown: true,
79
+ includes: [
80
+ '**',
81
+ '!**/build',
82
+ '!**/dist',
83
+ '!**/.next'
84
+ ]
85
+ },
86
+ formatter: {
87
+ enabled: true,
88
+ formatWithErrors: true,
89
+ indentStyle: 'space',
90
+ lineWidth: 140
91
+ },
92
+ javascript: {
93
+ formatter: {
94
+ arrowParentheses: 'asNeeded',
95
+ jsxQuoteStyle: 'single',
96
+ quoteStyle: 'single',
97
+ trailingCommas: 'all'
98
+ }
99
+ },
99
100
  linter: {
100
101
  enabled: true,
101
102
  rules: {
102
- recommended: true,
103
103
  complexity: {
104
104
  noUselessStringConcat: 'error',
105
105
  noUselessUndefinedInitialization: 'error',
@@ -109,63 +109,56 @@ const indexConfig = {
109
109
  correctness: {
110
110
  noConstantMathMinMaxClamp: 'error',
111
111
  noUndeclaredVariables: 'error',
112
- noUnusedImports: 'error',
113
112
  noUnusedFunctionParameters: 'error',
113
+ noUnusedImports: 'error',
114
114
  noUnusedPrivateClassMembers: 'error',
115
+ noUnusedVariables: 'error',
115
116
  useExhaustiveDependencies: {
116
117
  level: 'error',
117
118
  options: {
118
119
  reportUnnecessaryDependencies: false
119
120
  }
120
- },
121
- noUnusedVariables: 'error'
121
+ }
122
122
  },
123
+ nursery: {
124
+ useSortedClasses: {
125
+ fix: 'safe',
126
+ level: 'error',
127
+ options: {
128
+ functions: [
129
+ 'clsx',
130
+ 'cn'
131
+ ]
132
+ }
133
+ }
134
+ },
135
+ recommended: true,
123
136
  style: {
124
137
  noParameterProperties: 'error',
125
138
  noYodaExpression: 'error',
139
+ useArrayLiterals: 'error',
126
140
  useConsistentBuiltinInstantiation: 'error',
127
141
  useFragmentSyntax: 'error',
128
142
  useImportType: {
129
- level: 'error',
130
143
  fix: 'safe',
144
+ level: 'error',
131
145
  options: {
132
146
  style: 'separatedType'
133
147
  }
134
148
  },
135
149
  useSelfClosingElements: {
136
- level: 'error',
137
150
  fix: 'safe',
151
+ level: 'error',
138
152
  options: {}
139
153
  },
140
- useShorthandAssign: 'error',
141
- useArrayLiterals: 'error'
142
- },
143
- nursery: {
144
- useSortedClasses: {
145
- level: 'error',
146
- fix: 'safe',
147
- options: {
148
- functions: [
149
- 'clsx',
150
- 'cn'
151
- ]
152
- }
153
- }
154
+ useShorthandAssign: 'error'
154
155
  },
155
156
  suspicious: {
156
- useAwait: 'error',
157
- noEvolvingTypes: 'error'
157
+ noEvolvingTypes: 'error',
158
+ useAwait: 'error'
158
159
  }
159
160
  }
160
161
  },
161
- javascript: {
162
- formatter: {
163
- quoteStyle: 'single',
164
- jsxQuoteStyle: 'single',
165
- arrowParentheses: 'asNeeded',
166
- trailingCommas: 'all'
167
- }
168
- },
169
162
  overrides: [
170
163
  {
171
164
  includes: [
@@ -193,7 +186,14 @@ const indexConfig = {
193
186
  }
194
187
  }
195
188
  }
196
- ]
189
+ ],
190
+ root: true,
191
+ vcs: {
192
+ clientKind: 'git',
193
+ defaultBranch: 'main',
194
+ enabled: true,
195
+ useIgnoreFile: true
196
+ }
197
197
  };
198
198
  const reactOverlay = {
199
199
  files: {
@@ -350,9 +350,9 @@ const nuxtOverlay = {
350
350
  const nuxtConfig = mergeConfigs(vueConfig, nuxtOverlay);
351
351
  const allPresets = Object.freeze({
352
352
  index: indexConfig,
353
- react: reactConfig,
354
353
  next: nextConfig,
355
- vue: vueConfig,
356
- nuxt: nuxtConfig
354
+ nuxt: nuxtConfig,
355
+ react: reactConfig,
356
+ vue: vueConfig
357
357
  });
358
358
  export { BIOME_SCHEMA_URL, allPresets, indexConfig, nextConfig, nuxtConfig, reactConfig, vueConfig };