ESLint equivalent? #209
Unanswered
recursive-franciscop
asked this question in
Q&A
Replies: 1 comment 3 replies
-
@recursive-franciscop I make prettier run in CI on my repositories. Originally I had made it throw an error if there were any modified files, but eventually (in a controlled environment) I made prettier automatically commit the changes to the repo (to the PR, more specifically). It's an automatic change that keeps everything in sync so there's no need to nag the Engineer! (I also do this for auto-fixable eslint errors too). |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I love this plugin and I'm trying to use it in a project, however we already have a eslint enabled that checks for the sorting. So those two are in conflict now; also I don't want to fully remove the eslint (since it's good for the CI), so I'm looking into replacing my current eslint for some that is compatible with
@ianvs/prettier-plugin-sort-imports
.That way when I save, the imports get sorted automatically. And when the eslint runs, the imports are as expected. Is there any recommended eslint that is compatible with the
@ianvs/prettier-plugin-sort-imports
default sorting?For reference we are using
perfectionist/sort-imports
and it's no compatible by default with@ianvs/prettier-plugin-sort-imports
, they try to apply different rules.Beta Was this translation helpful? Give feedback.
All reactions