Initial CSS support (#1636)
I wanted to see how hard it would be to add support for CSS inside of prettier. Turns out, it's not that hard. I spent a few hours printing post-css values and getting all the stylefmt unit tests to not throw.
This commit is contained in:
1 parent
0adeadb16e
commit
78ba808322
146 files changed
+2429
-208
No files matched your search
+6
-1
@@ -90,7 +90,12 @@ function getParserOption() {
|
||||
return "flow";
|
||||
}
|
||||
|
||||
if (value === "flow" || value === "babylon" || value === "typescript") {
|
||||
if (
|
||||
value === "flow" ||
|
||||
value === "babylon" ||
|
||||
value === "typescript" ||
|
||||
value === "postcss"
|
||||
) {
|
||||
return value;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user