mrm
mrm copied to clipboard
fix(eslint): add prettier rules if installed without TS
The problem
Currently, the task will only add the prettier rules if Typescript is also installed.
What was changed
- [x] add
eslint-config-prettier
if prettier is installed, regardless of TS
why this is not merged yet?
The problem is, not everyone needs this thing (even for TypeScript, so we need a way to disable this behavior).
this can be as a question in interactive
mode.
Also I would suggest to add https://github.com/prettier/eslint-plugin-prettier Currently prettier can help eslint to autofix styling issues.
this can be as a question in interactive mode.
Yep.
Also I would suggest to add https://github.com/prettier/eslint-plugin-prettier Currently prettier can help eslint to autofix styling issues.
I believe you can already define it in your config but we won't have it by default (or even with an option) because of the very bed developer experience it creates. We shouldn't treat unformatted code as an error and distract developers but format it silently on commit.
All major IDE has built-in ability fix eslint issues on save and this is not bad expanse for fast developing