Skip to content
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

Add rule S6859 (eslint-plugin-import/no-absolute-path): Imports should not use absolute paths #4439

Merged
merged 2 commits into from
Nov 28, 2023

Conversation

ilia-kebets-sonarsource
Copy link
Contributor

Fixes #4432

@ilia-kebets-sonarsource
Copy link
Contributor Author

@yassin-kammoun-sonarsource Could you please run rule-api?
We can merge this without squashing so we can highlight how we add a new plugin.

package.json Outdated Show resolved Hide resolved
@@ -28,6 +28,7 @@ const quickFixMessages = new Map<string, string>([
['comma-dangle', 'Remove this trailing comma'],
['eol-last', 'Add a new line at the end of file'],
['jsx-no-useless-fragment', 'Remove redundant fragment'],
['no-absolute-path', 'Do not import modules using an absolute path'],

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
['no-absolute-path', 'Do not import modules using an absolute path'],
['no-absolute-path', 'Replace with a relative path'],

Copy link

@ilia-kebets-sonarsource ilia-kebets-sonarsource merged commit ff4900a into master Nov 28, 2023
15 checks passed
@ilia-kebets-sonarsource ilia-kebets-sonarsource deleted the issue-4432-S6859-absolute-path-import branch November 28, 2023 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create rule S6859: Imports should not use absolute paths
2 participants