Closed AnmolMago closed 5 years ago
This error is occurring because rules configured in plugins are overridden by rules configured in your ESLint config.
Yes, the rules you specify under rules
always win over configs in extends
. So the solution is simple – remove all conflicting rules, such as indent
! You can use the CLI helper tool to find them all.
As specified by https://prettier.io/docs/en/eslint.html I used
with
and eslintrc
The problem is that eslint's
indent
rule expects a tab and prettier's recommended configuration expects two spaces. This leads to a conflict. To be clear, the eslint website specifies only the use of"extends": ["plugin:prettier/recommended"]
only. When removing this and usingprettier
extension withairbnb
it works just fine.