-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
conflict with prettier? #133
Comments
Hi! Prettier does not sort imports (unless you install a plugin to it that sorts imports). You need to provide steps to reproduce that do not involve using VSCode for me to be able to do anything. |
Not something I can do at this point, when I can isolate a repro, i'll reopen. Thanks |
Installed https://github.com/trivago/prettier-plugin-sort-imports and enabled import sorting on save, enabled lint sorting as well. Now VS Code throws an error |
@lydell ^^ |
@dileep8014 Use one of the Prettier plugin and this ESLint plugin, not both. Otherwise you get conflicts (and waste time checking the same things twice). |
I have the following import statements:
In vscode, I have lint on save enable, with a default formatter set to prettier. When doing so, I can see simple-import-sort/imports reordering to put 'react' on the top line. The conflict means 'react' and (node_modules) 'payload/components/forms' switch back.
The text was updated successfully, but these errors were encountered: