question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: "import/*" not applied

See original GitHub issue

Tell us about your environment

  • ESLint Version: ^6.2.1
  • Node Version: v10.16.3
  • yarn Version: 1.15.2

What parser (default, Babel-ESLint, etc.) are you using? default

Please show your full configuration:

Configuration
{
  "root": true,
  "extends": ["airbnb-base"],
  "env": {"es6": true, "node": true},
  "plugins": []
}

What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.

test-project.zip

Run . debug.sh (tested on Ubuntu 16.04)

What did you expect to happen?

Error report for rule import/no-useless-path-segments since index.js is in violation and the rule shows as active (see generated debug.json)

What actually happened? Please include the actual, raw output from ESLint.

Only a console warning was generated. The rule shows as active but seem to not have been run

Are you willing to submit a pull request to fix this bug?

I’m honestly not involved enough in eslint to even understand what is going on here. However if this is an easy fix I’d be very happy to do a PR.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
simlucommented, Aug 22, 2019

Separately, please do file an issue or PR to document the option in eslint-plugin-import 😃

Done here

This is not an eslint issue, so closing.

1reaction
simlucommented, Aug 22, 2019

@ljharb Ah!! Finally I understand what is going on. What a journey to get here 😃

I’ll do follow ups as necessary now.

Thank you very much for all the assist

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bug: Import not working · Issue #400 · nocodb ... - GitHub
Case 1: If it is not allowed to import to the same project. It may show some useful message instead of "some internal...
Read more >
Eclipse error: "The import XXX cannot be resolved"
solves the issue, or go to Project > Properties > Java Build Path > Order and Export > make a meaningless order change...
Read more >
"Unnecessary imports should be removed" not working (java ...
Unused imports are not detected by sonarqube in a Java project. ... BUG] Rule: "Unnecessary imports should be removed" not working (java).
Read more >
Marketing Cloud - Error: 'Import Failed' during Import Activity
This typically is an error that indicates an intermittent failure has occurred or that an import falls into a bucket that does not...
Read more >
Data Import error message reference - Analytics Help
Message Meaning So... Empty column header at column number X. The upload file is missing a column header. Ed... Multiple errors occurred: List of multiple...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found