Re:EditorConfig – file format for defining coding styles and...
by lytedev on Thursday July 20, 2017 @06:39PM
(#14816849)
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!
[ Parent
| on HN ]
Re:EditorConfig – file format for defining coding styles and...
by nmstoker on Thursday July 20, 2017 @07:14PM
(#14816985)
It's the simple cross editor convenience this brings that really appeals to me.
Re:EditorConfig – file format for defining coding styles and...
by qntmfred on Thursday July 20, 2017 @10:48PM
(#14817713)
and now we have https://prettier.io/docs/en/why-prettier.html we can automatically enforce and fix all these style rules
Re:EditorConfig – file format for defining coding styles and...
by andreineculau on Friday July 21, 2017 @01:36AM
(#14818295)
I haven't used prettier but eslint can also fix style
Re:EditorConfig – file format for defining coding styles and...
by manveru on Friday July 21, 2017 @07:23AM
(#14819542)
And of course there's https://github.com/prettier/prettier-eslint to fix it using both :)
Re:EditorConfig – file format for defining coding styles and...
by Siilwyn on Friday July 21, 2017 @04:04AM
(#14818852)
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.