-
Notifications
You must be signed in to change notification settings - Fork 57
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
chore: Use correct eslint deps #5034
Conversation
Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.29.1 to 2.30.0. - [Release notes](https://github.com/import-js/eslint-plugin-import/releases) - [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md) - [Commits](import-js/eslint-plugin-import@v2.29.1...v2.30.0) --- updated-dependencies: - dependency-name: eslint-plugin-import dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
This reverts commit e4b3e66.
'import/no-useless-path-segments': [ | ||
'error', | ||
{ | ||
noUselessIndex: true |
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'm surprised this isn't the default
packages/odata-v4/package.json
Outdated
@@ -47,7 +47,7 @@ | |||
}, | |||
"devDependencies": { | |||
"@sap-cloud-sdk/test-services-odata-v4": "^3.21.0", | |||
"nock": "^14.0.0-beta.6", | |||
"nock": "^14.0.0-beta.14", |
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 assume this change is not directly related to the PR?
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.
LGTM, just have another look at the few exceptions for no-internal-modules to make sure they should still be excluded after all the changes.
We currently use the eslint import plugin incorrectly without the correct resolver and typescript eslint plugin. According to the documentation this is required: https://github.com/import-js/eslint-plugin-import/tree/main?tab=readme-ov-file#typescript
When adjusting the config many of the rules did report errors. I fixed them all except some that would otherwise fail the circular dependency check (@ZhongpinWang please take a look at this, maybe you remember some hidden issues that were not tested, but I hope we have everything covered by tests).
I also removed the "no-relative-parent-imports" rule because this actually breaks to many things and it has likely never really worked. If we would like to keep that rule we would need to make major changes to the code.
I found this because I thought there was an incorrect report for one specific dependency in the import plugin: import-js/eslint-plugin-import#3069