• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

benmosher / eslint-plugin-import / 2352
94%

Build:
DEFAULT BRANCH: master
Ran 04 Nov 2017 06:43AM UTC
Jobs 12
Files 104
Run time 9min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
2352

push

travis-ci

ljharb
[patch] make no-extraneous-dependencies include only paths that can be resolved,
as only resolved paths can be reliably tested if they live in a `node_modules` folder.

Up until now, this rule assumed, that every package that lives in a `node_modules` folder
or *cannot be resolved* is an external package.
This happens because of [that line](https://github.com/benmosher/eslint-plugin-import/blob/master/src/core/importType.js#L32).

If project uses aliasing, or transforms imports, this assumption is wrong,
as they may not be resolvable by import plugin, but also, they should not be defined in package.json.

Changing `isExternalPath` will make any ordering lints unstable
(order may change depending if you ran `npm install` or not).

Using `import/ignore` setting does not make sense too, as it's used to ignore imports unknown to the plugin,
like .css files. But still, you may import a css file from a dependency, and this rule should check that.

929 of 1039 branches covered (89.41%)

3 of 3 new or added lines in 1 file covered. (100.0%)

1965 of 2045 relevant lines covered (96.09%)

679.65 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
src/rules/no-extraneous-dependencies.js
Jobs
ID Job ID Ran Files Coverage
1 2352.1 (ESLINT_VERSION=2) 04 Nov 2017 06:43AM UTC 0
94.82
Travis Job 2352.1
2 2352.2 (ESLINT_VERSION=3) 04 Nov 2017 06:44AM UTC 0
94.82
Travis Job 2352.2
3 2352.3 (ESLINT_VERSION=4) 04 Nov 2017 06:43AM UTC 0
94.82
Travis Job 2352.3
4 2352.4 (ESLINT_VERSION=2) 04 Nov 2017 06:43AM UTC 0
94.82
Travis Job 2352.4
5 2352.5 (ESLINT_VERSION=3) 04 Nov 2017 06:44AM UTC 0
94.82
Travis Job 2352.5
6 2352.6 (ESLINT_VERSION=4) 04 Nov 2017 06:47AM UTC 0
94.82
Travis Job 2352.6
7 2352.7 (ESLINT_VERSION=2) 04 Nov 2017 06:45AM UTC 0
94.82
Travis Job 2352.7
8 2352.8 (ESLINT_VERSION=3) 04 Nov 2017 06:45AM UTC 0
94.82
Travis Job 2352.8
9 2352.9 (ESLINT_VERSION=4) 04 Nov 2017 06:46AM UTC 0
94.82
Travis Job 2352.9
10 2352.10 (ESLINT_VERSION=2) 04 Nov 2017 06:49AM UTC 0
96.09
Travis Job 2352.10
11 2352.11 (ESLINT_VERSION=3) 04 Nov 2017 06:50AM UTC 0
96.09
Travis Job 2352.11
12 2352.12 (ESLINT_VERSION=4) 04 Nov 2017 06:52AM UTC 0
96.09
Travis Job 2352.12
Source Files on build 2352
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2352
  • ae373187 on github
  • Prev Build on master
  • Next Build on master (#27)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc