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:
Christopher Chedeau authored and GitHub committed 2017-05-24 10:52:12 -07:00
1 parent 0adeadb16e
commit 78ba808322
146 files changed
+2429 -208

No files matched your search

+6 -1
View File
@@ -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;
}