prettier / eslint-config-prettier

Turns off all rules that are unnecessary or might conflict with Prettier.
MIT License
5.4k stars 254 forks source link

Prettier configured with tabs conflicts with no-mixed-spaces-and-tabs #185

Closed jf908 closed 3 years ago

jf908 commented 3 years ago

When Prettier is configured with tabs, it mixes spaces and tabs for alignment. There is an ESLint rule that allows this:

'no-mixed-spaces-and-tabs': ['error', 'smart-tabs']

but it doesn't seem to be configured by eslint-config-prettier.

lydell commented 3 years ago

Hi! eslint-config-prettier turns off that rule here: https://github.com/prettier/eslint-config-prettier/blob/56213e4f454fbe6c187d15b52a2c91df8b414b3c/index.js#L56

You can use the CLI helper tool to find problems with your configuration: https://github.com/prettier/eslint-config-prettier#cli-helper-tool

jf908 commented 3 years ago

Thanks!

Just a silly problem on my end where the project had eslint:recommended after plugin:prettier/recommended in the extends list.