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.

[import/no-extraneous-dependencies] 2.20.1 regression - false negatives

See original GitHub issue

The rule stopped working for me in 2.20.1.

Rule config:

    "import/no-extraneous-dependencies": [
      "error",
      {
        "devDependencies": ["server/**", "tests/**"],
        "optionalDependencies": false,
        "peerDependencies": false
      }
    ],

devDependencies in package.json:

...
"ember-qunit": "^4.4.1",
"qunit-dom": "^1.0.0",
...

In my tests:

import { module, test } from "qunit";

Actual result: no warnings from import/no-extraneous-dependencies.

Expected result: there should be a warning from import/no-extraneous-dependencies saying that I have an extraneous qunit dependency.

Environment info:

OS: Win 10 x64 Node: v12.15.0 npm: 6.13.4

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
EvgenyOrekhovcommented, Oct 11, 2020

The issue is no longer reproducible on 2.22.1.

0reactions
cattermocommented, Feb 18, 2020

I also have problem with 2.20.1 version. In my case I use eslint-import-resolver-webpack to resolve aliases. From version 2.20.1 I get the import/no-extraneous-dependencies error for all my imports of react event though it is aliased in webpack.config.js (this is working in version 2.20.0).

OSX 10.14.6 Node v10.17.0 Npm 6.11.3

Read more comments on GitHub >

github_iconTop Results From Across the Web

False-negative results of initial RT-PCR assays for COVID-19
We calculated the proportion of false-negative test results using a multilevel mixed-effect logistic regression model. The certainty of the ...
Read more >
True vs. False and Positive vs. Negative | Machine Learning
A false positive is an outcome where the model incorrectly predicts the positive class. And a false negative is an outcome where the...
Read more >
At-Home COVID-19 Antigen Tests-Take Steps to Reduce Your ...
The FDA recommends repeat testing following a negative result to reduce ... Your Risk of False Negative Results: FDA Safety Communication.
Read more >
False Positives, False Negatives, and False Analyses
To test for bias in form as a function of race, we calculated a series of logistic regression mod els predicting each of...
Read more >
Practices of Science: False Positives and False Negatives
All tests have a chance of resulting in false positive and false negative errors. They are an unavoidable problem in scientific testing. This...
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