We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
no-useless-path-segments
from rule's doc, it is described that it works with both import and require statements, but it actually work only with import statements
doc
Given the following folder structure:
my-project ├── app.js └── pages ├── about.js ├── contact.js └── index.js
tested code
/** * in my-project/app.js */ require('./../pages/about.js');
Expectation: example pattern should be considered problem. Actual: it's not.
You may also resolve this issue by amend the doc, but I hope you don't do it this way. 😛
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
from rule's
doc
, it is described that it works with both import and require statements, but it actually work only with import statementsGiven the following folder structure:
tested code
Expectation: example pattern should be considered problem.
Actual: it's not.
You may also resolve this issue by amend the doc, but I hope you don't do it this way. 😛
The text was updated successfully, but these errors were encountered: