Commit fbcfaba 1 parent aba6e37 commit fbcfaba Copy full SHA for fbcfaba
File tree 2 files changed +27
-28
lines changed
packages/eslint-plugin/src/rules/naming-convention-utils
2 files changed +27
-28
lines changed Original file line number Diff line number Diff line change @@ -320,6 +320,7 @@ export default tseslint.config(
320
320
321
321
'jsdoc/informative-docs' : 'error' ,
322
322
'unicorn/no-typeof-undefined' : 'error' ,
323
+ 'unicorn/no-useless-spread' : 'error' ,
323
324
} ,
324
325
} ,
325
326
{
Original file line number Diff line number Diff line change @@ -146,39 +146,37 @@ function selectorsSchema(): JSONSchema.JSONSchema4 {
146
146
description : 'Multiple selectors in one config' ,
147
147
properties : {
148
148
...FORMAT_OPTIONS_PROPERTIES ,
149
- ...{
150
- filter : {
151
- oneOf : [
152
- {
153
- type : 'string' ,
154
- minLength : 1 ,
155
- } ,
156
- MATCH_REGEX_SCHEMA ,
157
- ] ,
158
- } ,
159
- selector : {
160
- type : 'array' ,
161
- items : {
149
+ filter : {
150
+ oneOf : [
151
+ {
162
152
type : 'string' ,
163
- enum : [ ... getEnumNames ( MetaSelectors ) , ... getEnumNames ( Selectors ) ] ,
153
+ minLength : 1 ,
164
154
} ,
165
- additionalItems : false ,
155
+ MATCH_REGEX_SCHEMA ,
156
+ ] ,
157
+ } ,
158
+ selector : {
159
+ type : 'array' ,
160
+ items : {
161
+ type : 'string' ,
162
+ enum : [ ...getEnumNames ( MetaSelectors ) , ...getEnumNames ( Selectors ) ] ,
166
163
} ,
167
- modifiers : {
168
- type : 'array' ,
169
- items : {
170
- type : 'string ' ,
171
- enum : getEnumNames ( Modifiers ) ,
172
- } ,
173
- additionalItems : false ,
164
+ additionalItems : false ,
165
+ } ,
166
+ modifiers : {
167
+ type : 'array ' ,
168
+ items : {
169
+ type : 'string' ,
170
+ enum : getEnumNames ( Modifiers ) ,
174
171
} ,
175
- types : {
176
- type : 'array' ,
177
- items : {
178
- $ref : '#/$defs/typeModifiers ' ,
179
- } ,
180
- additionalItems : false ,
172
+ additionalItems : false ,
173
+ } ,
174
+ types : {
175
+ type : 'array ' ,
176
+ items : {
177
+ $ref : '#/$defs/typeModifiers' ,
181
178
} ,
179
+ additionalItems : false ,
182
180
} ,
183
181
} ,
184
182
required : [ 'selector' , 'format' ] ,
You can’t perform that action at this time.
0 commit comments