File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
packages/eslint-plugin-svelte/src Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ function findClassesInPostCSSNode(
111111) : string [ ] {
112112 if ( node . type === 'rule' ) {
113113 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 ) ) ) ;
115115 return classes ;
116116 }
117117 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 {
210210 isSvelteScript?: boolean;
211211 getSvelteHtmlAst?: () => unknown;
212212 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 >;
217217 svelteParseContext?: {
218218 /**
219219 * Whether to use Runes mode.
You can’t perform that action at this time.
0 commit comments