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

What is the difference between Prettier, StandardJS and ESLint? #2364

Closed
jitendravyas opened this Issue Jun 30, 2017 · 8 comments

Comments

Projects
None yet
4 participants
@jitendravyas

jitendravyas commented Jun 30, 2017

I understand that Prettier is code formatter only, not linter but I don't understand well that how StandardJS is different from Prettier and how StandardsJS and ESlint are different.

@vjeux

This comment has been minimized.

Show comment
Hide comment
@vjeux

vjeux Jun 30, 2017

Collaborator

Standard is a set of eslint rules, some of them with autofix. When you do not comply it's going to warn you.

Collaborator

vjeux commented Jun 30, 2017

Standard is a set of eslint rules, some of them with autofix. When you do not comply it's going to warn you.

@vjeux vjeux closed this Jun 30, 2017

@vjeux vjeux reopened this Jun 30, 2017

@jitendravyas

This comment has been minimized.

Show comment
Hide comment
@jitendravyas

jitendravyas Jun 30, 2017

Standard is a set of eslint rules, some of them with autofix

But should not I use Eslint then, as it has --fix option too?

jitendravyas commented Jun 30, 2017

Standard is a set of eslint rules, some of them with autofix

But should not I use Eslint then, as it has --fix option too?

@vjeux

This comment has been minimized.

Show comment
Hide comment
@vjeux

vjeux Jun 30, 2017

Collaborator

Sorry misclick. Prettier takes your code and reprints it from scratch. So there's only one way code can be printed, not many.

In your workflow, with prettier you can just write code in one line and press format, and you've got it printed. With standard if you do that, you'll be warned but it won't actually reformat it in most cases.

Collaborator

vjeux commented Jun 30, 2017

Sorry misclick. Prettier takes your code and reprints it from scratch. So there's only one way code can be printed, not many.

In your workflow, with prettier you can just write code in one line and press format, and you've got it printed. With standard if you do that, you'll be warned but it won't actually reformat it in most cases.

@lydell

This comment has been minimized.

Show comment
Hide comment
@lydell

lydell Jun 30, 2017

Collaborator

Is the action here to add a little note about standard in the readme?

Collaborator

lydell commented Jun 30, 2017

Is the action here to add a little note about standard in the readme?

@jitendravyas

This comment has been minimized.

Show comment
Hide comment
@jitendravyas

jitendravyas Jul 1, 2017

Yes and and example would be better too

jitendravyas commented Jul 1, 2017

Yes and and example would be better too

@azz

This comment has been minimized.

Show comment
Hide comment
@azz

azz Jul 1, 2017

Member

There's already explanation in the readme and links to standard tools in Related Projects. I don't think it should be prettier's responsibility to explain what standard is.

Member

azz commented Jul 1, 2017

There's already explanation in the readme and links to standard tools in Related Projects. I don't think it should be prettier's responsibility to explain what standard is.

@jitendravyas

This comment has been minimized.

Show comment
Hide comment
@jitendravyas

jitendravyas Jul 1, 2017

You are right that it's not a prettier's responsibility to explain what standard is but for some people, it's not easy to know the difference between these tools.
Standard is the only tool which looks similar to Prettier so an explanation would be good to have, not must to have.

jitendravyas commented Jul 1, 2017

You are right that it's not a prettier's responsibility to explain what standard is but for some people, it's not easy to know the difference between these tools.
Standard is the only tool which looks similar to Prettier so an explanation would be good to have, not must to have.

@jitendravyas

This comment has been minimized.

Show comment
Hide comment
@jitendravyas

jitendravyas Jul 1, 2017

I liked how this project shows comparison with similar tools https://www.npmjs.com/package/file-name-linter

jitendravyas commented Jul 1, 2017

I liked how this project shows comparison with similar tools https://www.npmjs.com/package/file-name-linter

@lydell lydell closed this Jul 1, 2017

@lock lock bot locked as resolved and limited conversation to collaborators Jul 7, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.