Skip to content

Any plan for StyleLint? #836

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
gucong3000 opened this issue Aug 4, 2017 · 5 comments
Open

Any plan for StyleLint? #836

gucong3000 opened this issue Aug 4, 2017 · 5 comments

Comments

@gucong3000
Copy link
Contributor

gucong3000 commented Aug 4, 2017

I have a new parser for PostCSS/StyleLint, postcss-html.
features about vue:

  • Compatible with vue component
  • Support automatically fixes of StyleLint.
  • Support syntax definded in <style lang="*">
  • Syntax detection by file extensions for non vue component file.

Usage:

stylelint "**/*.{vue,html,css,sss,less,scss,sass}" --custom-syntax postcss-html

Related:

/CC @dan-gamble

@ai
Copy link

ai commented Aug 4, 2017

Stylelint is used by Facebook, Wikipedia and GitHub.

create-react-app will support it in 2.0.

Right now it is the most popular CSS linter.

@maxmilton
Copy link

Stylelint is great! I've been adding it to all my frontend projects. I'd love to see support out of the box in the template.

@iFwu
Copy link

iFwu commented Sep 6, 2017

A temporary solution is separate your html, (s)css and js files to let PostCSS's plugin stylelint to process.

An elegant way to separate these file is using vue-separate-files-loader.

@gucong3000
Copy link
Contributor Author

A temporary solution is separate your html, (s)css and js files to let PostCSS's plugin stylelint to process.

I used another solution, postcss-html for stylelint CLI

stylelint "**/*.{vue,htm,html,css,sss,less,scss,sass}" --custom-syntax postcss-html

@EliazTray
Copy link

@gucong3000 it‘s nice to deal with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants