r/webdev•
RedLibra

Do you use eslint and/or prettier?

If you use prettier and eslint, prettier rules have higher priority than eslint. So you'll end up ignoring a lot of eslint rules. Eslint can also auto-format code on save. That's pretty much the reason I only use eslint.

Then I came to realize that it probably shouldn't matter if some eslint rules gets ignored by prettier as long as the styling in the entire codebase is consistent.

EDIT: I know that there's a plugin when using prettier and eslint. That plugin disables eslint rules that will conflict with the prettier therefore you're not using eslint at 100%, I might as well just use prettier alone or is there a difference?

View Poll

Posted May 4, 2022, 2:01 AM UTC · edited

02
Loading comments…