-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Downgrade eslint-plugin-import to ~2.26.0 #231
Conversation
Updated dependencies detected. Learn more about Socket for GitHub ↗︎
|
@@ -55,7 +55,7 @@ | |||
"depcheck": "^1.4.3", | |||
"eslint": "^8.44.0", | |||
"eslint-config-prettier": "^8.8.0", | |||
"eslint-plugin-import": "^2.27.5", | |||
"eslint-plugin-import": "~2.26.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we go ahead and bump to ^2.29.0
? It looks like there is a fix for something in 2.28.1, but I'm not sure if it's what you're referring to: https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md#fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked 2.29.0
but it does not fix the issue. There are several open issues about it:
- Regression in nested group order after v2.26 import-js/eslint-plugin-import#2909
- [import/order] Regression in
type
behavior withparent
andsibling
import-js/eslint-plugin-import#2683 - import/order relative import sorting order changed in 2.27.0 import-js/eslint-plugin-import#2682
- And more...
It looks like this PR will fix it: import-js/eslint-plugin-import#2721
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. Thanks for following up!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Versions >=2.27.0 of
eslint-plugin-import
have a regression, causing the import order to change. The recommended version in the ESLint config is~2.26.0
for now.