Skip to content

Replace prettier plugin with prettier config in eslint #12051

@LukasHirt

Description

@LukasHirt

In our eslint config, we're using the prettier plugin which is discouraged. Generally it tends to have poor performance due to the difference in how eslint and prettier are running. Also, it turns out it does not play well with IDE as e.g. I am often getting prettier errors by eslint that are conflicting with the prettier itself causing problems with my automatic formatting. I would suggest we move to the recommended eslint prettier config instead. This would disable conflicting rules in eslint and would leave the formatting to prettier which is what should be used for it. Some more context on all of this https://prettier.io/docs/en/integrating-with-linters.html

Ref:

import eslintConfigPrettier from 'eslint-plugin-prettier/recommended'

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions