File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,11 @@ import type { BaseNode } from "./base";
4
4
export type ESLintCompatiblePostCSSNode < PostCSSNode extends Node = Node > =
5
5
BaseNode &
6
6
( PostCSSNode extends Container < infer Child >
7
- ? Omit < Container < ESLintCompatiblePostCSSNode < Child > > , "walk" > & {
7
+ ? Omit <
8
+ Container < ESLintCompatiblePostCSSNode < Child > > ,
9
+ "parent" | "walk"
10
+ > & {
11
+ parent : BaseNode ;
8
12
walk (
9
13
callback : (
10
14
node : ESLintCompatiblePostCSSNode < Child > ,
Original file line number Diff line number Diff line change @@ -157,6 +157,7 @@ export function convertSvelteRoot(
157
157
style . body ?. walk ( ( node : ESLintCompatiblePostCSSNode < ChildNode > ) =>
158
158
convertPostCSSNodeToESLintNode ( node , style . loc , contentRange )
159
159
) ;
160
+ style . body . parent = style ;
160
161
delete style . body . source ?. input . file ;
161
162
}
162
163
ctx . addToken ( "HTMLText" , contentRange ) ;
You can’t perform that action at this time.
0 commit comments