File tree Expand file tree Collapse file tree 2 files changed +27
-28
lines changed
packages/eslint-plugin/src/rules/naming-convention-utils Expand file tree Collapse file tree 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(
320320
321321 'jsdoc/informative-docs' : 'error' ,
322322 'unicorn/no-typeof-undefined' : 'error' ,
323+ 'unicorn/no-useless-spread' : 'error' ,
323324 } ,
324325 } ,
325326 {
Original file line number Diff line number Diff line change @@ -146,39 +146,37 @@ function selectorsSchema(): JSONSchema.JSONSchema4 {
146146 description : 'Multiple selectors in one config' ,
147147 properties : {
148148 ...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+ {
162152 type : 'string' ,
163- enum : [ ... getEnumNames ( MetaSelectors ) , ... getEnumNames ( Selectors ) ] ,
153+ minLength : 1 ,
164154 } ,
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 ) ] ,
166163 } ,
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 ) ,
174171 } ,
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' ,
181178 } ,
179+ additionalItems : false ,
182180 } ,
183181 } ,
184182 required : [ 'selector' , 'format' ] ,
You can’t perform that action at this time.
0 commit comments