4 ms·
Some things overlooked in that blog post for others to take into consideration: - eslint only works on javascript + typescript (eslint + typescript needs _more
by c-hendricks 3y ago
Some things overlooked in that blog post for others to take into consideration:
- eslint only works on javascript + typescript (eslint + typescript needs _more_ configuration than eslint + prettier), while prettier works on https://github.com/prettier/prettier/blob/03ebc7869dc9e8f2fc9810ca33f288152243c598/docs/index.md?plain=1#L8-L20 https://github.com/prettier/prettier/blob/03ebc7869dc9e8f2fc...
- eslint + prettier doesn't need lots of configuration from the user. You add eslint-plugin-prettier and say `"extends": ["plugin:prettier/recommended"]`
- thenbe 3y agoBy default, eslint only lints files with a .js extension[1]. Eslint plugins are what allow eslint to support more languages. A list can be found here[2]. For the record, prettier can also be extended to support more languages[3]. [1] https://eslint.org/docs/latest/use/command-line-interface#--ext https://eslint.org/docs/latest/use/command-line-interface#--... [2] https://github.com/dustinspecker/awesome-eslint#plugins https://github.com/dustinspecker/awesome-eslint#plugins [3] https://prettier.io/docs/en/plugins#official-plugins https://prettier.io/docs/en/plugins#official-plugins