Skip to content

Commit 5586809

Browse files
authored
feat: support postcss (#600)
1 parent 10a218c commit 5586809

10 files changed

+1050
-0
lines changed

.changeset/silver-swans-build.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"svelte-eslint-parser": patch
3+
---
4+
5+
feat: support postcss

src/parser/style-context.ts

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export function parseStyleContext(
5656
let parseFn: Parser<Root>, sourceAst: Root;
5757
switch (sourceLang) {
5858
case "css":
59+
case "postcss":
5960
parseFn = postcss.parse;
6061
break;
6162
case "scss":
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<style lang="postcss">
2+
body {
3+
colour: white;
4+
background-colour: grey;
5+
}
6+
</style>

0 commit comments

Comments
 (0)