Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transition from stylelint to prettier #357

Open
Cronus1007 opened this issue Mar 11, 2021 · 2 comments
Open

Transition from stylelint to prettier #357

Cronus1007 opened this issue Mar 11, 2021 · 2 comments

Comments

@Cronus1007
Copy link

Discussion 馃棧

Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary; Stylelint: A mighty, modern CSS linter. A mighty, modern CSS linter that helps you enforce consistent conventions and avoid errors in your stylesheets.

Context

Pros of Prettier

  • Atom/VSCode package
  • Follows the Ruby Style Guide by default
  • Customizable
  • Runs offline
  • Open Source

Tools integrated with Prettier

  • JS
  • TS
  • REactjs
  • Angularjs
  • Vuejs
  • CSS
  • Less
  • SCSS
  • markdown

Detailed Description

@irmerk
Copy link
Member

irmerk commented Mar 11, 2021

Could you provide more context of where Stylelint is used, how it is not achieving what it should be achieving in our repositories, where Prettier would need to be setup, and how this relates to ESLint?

@Cronus1007
Copy link
Author

Cronus1007 commented Mar 11, 2021

The Stylelint is used in all the packages of the Web Components Repository. It doesn't relates to ESLint. Both prettier and eslint are linting formatters.
Have a look upon this for more info regarding stylelint vs prettier https://stackshare.io/stackups/prettier-vs-stylelint#:~:text=opinionated%20code%20formatter.-,Prettier%20is%20an%20opinionated%20code%20formatter.,A%20mighty%2C%20modern%20CSS%20linter.

@irmerk irmerk transferred this issue from accordproject/technical-steering-committee Mar 26, 2021
@irmerk irmerk removed their assignment Mar 26, 2021
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

2 participants