File tree 2 files changed +5
-5
lines changed
packages/eslint-plugin-svelte/src
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ function findClassesInPostCSSNode(
111
111
) : string [ ] {
112
112
if ( node . type === 'rule' ) {
113
113
let classes = node . nodes . flatMap ( ( node ) => findClassesInPostCSSNode ( node , parserServices ) ) ;
114
- classes = classes . concat ( findClassesInSelector ( parserServices . getStyleSelectorAST ( node ) ) ) ;
114
+ classes = classes . concat ( findClassesInSelector ( parserServices . getStyleSelectorAST ! ( node ) ) ) ;
115
115
return classes ;
116
116
}
117
117
if ( ( node . type === 'root' || node . type === 'atrule' ) && node . nodes !== undefined ) {
Original file line number Diff line number Diff line change @@ -210,10 +210,10 @@ export interface SourceCode {
210
210
isSvelteScript?: boolean;
211
211
getSvelteHtmlAst?: () => unknown;
212
212
getStyleContext?: () => StyleContext;
213
- getStyleSelectorAST: (rule: StyleRule) => SelectorRoot;
214
- styleNodeLoc: (node: Node) => Partial<SourceLocation >;
215
- styleNodeRange: (node: Node) => [number | undefined, number | undefined];
216
- styleSelectorNodeLoc: (node: SelectorNode) => Partial<SourceLocation >;
213
+ getStyleSelectorAST? : (rule: StyleRule) => SelectorRoot;
214
+ styleNodeLoc? : (node: Node) => Partial<SourceLocation >;
215
+ styleNodeRange? : (node: Node) => [number | undefined, number | undefined];
216
+ styleSelectorNodeLoc? : (node: SelectorNode) => Partial<SourceLocation >;
217
217
svelteParseContext?: {
218
218
/**
219
219
* Whether to use Runes mode.
You can’t perform that action at this time.
0 commit comments