If your ESLint preset has formatting rules, they may conflict with Prettier. We recommend to disable all formatting rules in your ESLint preset using eslint-config-prettier
so that ESLint is only used for catching logical mistakes. If you want to enforce that files are formatted before a pull request is merged, use prettier --check
for your continuous integration.
Last active
January 29, 2023 18:53
-
-
Save codenickycode/9b26538bb03813134c91c449c46b68c1 to your computer and use it in GitHub Desktop.
[React: ESLint vs. Prettier] React docs best practice when ESLint conflicts with Prettier #eslint #lint #prettier #formatting #react
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment