简体   繁体   中英

Prettier doesn't work for CSS

I just implemented ESLint and Prettier in my project. Linting of JavaScript files works perfectly. However, for CSS files, things like adding missing semicolon don't work. Isn't it that Prettier should support CSS too?

Has any one used Prettier to format CSS?

According to prettier repository it is support

javascript · flow · typescript · css · scss · less · jsx · vue · graphql · json · markdown · yaml

And I been use it with vscode and indeed format css file.

If you are using ESLint, integrating Prettier to your workflow is straightforward.

There are two different ways you might want to integrate Prettier into ESLint. You may enable either one separately, or both.

Happy Coding.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM