@@ -101,8 +101,7 @@ module.exports = {
101101 "disallow selectors defined in Scoped CSS that don't use in `<template>`" ,
102102 categories : [ "recommended" , "vue3-recommended" ] ,
103103 default : "warn" ,
104- url :
105- "https://future-architect.github.io/eslint-plugin-vue-scoped-css/rules/no-unused-selector.html" ,
104+ url : "https://future-architect.github.io/eslint-plugin-vue-scoped-css/rules/no-unused-selector.html" ,
106105 } ,
107106 fixable : null ,
108107 messages : {
@@ -176,9 +175,8 @@ module.exports = {
176175 let targetsQueryContext = queryContext
177176 let reverseVerifySelector = [ ...scopedSelector ] . reverse ( )
178177 while ( reverseVerifySelector . length ) {
179- const combIndex = reverseVerifySelector . findIndex (
180- isSelectorCombinator ,
181- )
178+ const combIndex =
179+ reverseVerifySelector . findIndex ( isSelectorCombinator )
182180 let comb : VCSSSelectorCombinator | null = null
183181 let selectorBlock : VCSSSelectorNode [ ] = [ ]
184182
@@ -214,9 +212,8 @@ module.exports = {
214212 )
215213
216214 for ( const selectorNode of notClassSelectors ) {
217- targetsQueryContext = targetsQueryContext . reverseQueryStep (
218- selectorNode ,
219- )
215+ targetsQueryContext =
216+ targetsQueryContext . reverseQueryStep ( selectorNode )
220217 }
221218
222219 const roots = targetsQueryContext . filter ( isRootElement )
@@ -232,9 +229,8 @@ module.exports = {
232229 }
233230 }
234231 for ( const selectorNode of classSelectors ) {
235- targetsQueryContext = targetsQueryContext . reverseQueryStep (
236- selectorNode ,
237- )
232+ targetsQueryContext =
233+ targetsQueryContext . reverseQueryStep ( selectorNode )
238234 }
239235 reportSelectorNodes . push ( ...selectorBlock )
240236 if ( comb ) {
@@ -245,9 +241,8 @@ module.exports = {
245241 if ( targetsQueryContext . elements . some ( isRootElement ) ) {
246242 return
247243 }
248- targetsQueryContext = targetsQueryContext . reverseQueryStep (
249- comb ,
250- )
244+ targetsQueryContext =
245+ targetsQueryContext . reverseQueryStep ( comb )
251246 reportSelectorNodes . push ( comb )
252247 }
253248 }
0 commit comments