Hacker News new | ask | show | jobs
by lytedev 3260 days ago
At least in the JavaScript world, this was a lovely thing to have. Now we have linters which are even better! Still nice to include this so that all collaborators don't need to modify their editors to jump in!
3 comments

It's the simple cross editor convenience this brings that really appeals to me.
and now we have https://prettier.io/docs/en/why-prettier.html we can automatically enforce and fix all these style rules
I haven't used prettier but eslint can also fix style
And of course there's https://github.com/prettier/prettier-eslint to fix it using both :)
Do not compare it to linters they serve a different purpose. Editorconfig is for using the right editor settings, linters are for programmatically checking and formatting code. So Editorconfig and a linter should be used together.