I think eslint-config-prettier was created just for this purpose: https://prettier.io/docs/en/eslint.html#turn-off-eslint-s-formatting-rules
Basically it turns off all rules that have to do with code styling because prettier
will take care of it anyway.
So you just install this config along with any other desired eslint config (like eslint-config-airbnb
) and in your eslint configuration file you just add it to the extends
field. For example:
{
"extends": ["airbnb", "prettier"]
}