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

benmosher / eslint-plugin-import / 3682
81%
master: 94%

Build:
Build:
LAST BUILD BRANCH: flowtype-wrong-import
DEFAULT BRANCH: master
Ran 17 Feb 2020 08:37PM UTC
Jobs 26
Files 49
Run time 16min
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
3682

Pull #1660

travis-ci

web-flow
no-unused-modules: support dynamic imports

This is still work in progress but I'd like to receive initial thoughts
on this implementation before I proceed.

This introduces support of dynamic imports for a rule
`no-unused-modules`.

So far only "await" form is implemented:

```js
const a = await import("a")
```
is equivalent to default import
```js
import a from "a"
```

```js
const {a,b,c} = await import("a")
```
is equivalent to named imports
```js
import {a,b,c} from "a"
```

Support import('name').then(a) and import('name').then({a,b,c}) to be
addded soon.

TODO/Open questions

- [ ] Existing code is relying on the fact that all imports/reexports
happen at top level of the file while dynamic import can happen anywhere -
that's why I had to implement visitor against visitor keys of the parser
myself not very happy about it - but couldn't figure out quickly how to
use existing visitor (if any?) supplied by a parser.
I also learned that different parsers have visitor keys defined in
different places so this has to be dealt with as well.
Pull Request #1660: no-unused-modules: support dynamic imports

1572 of 1685 branches covered (93.29%)

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

2244 of 2297 relevant lines covered (97.69%)

1041.02 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3682.1 (ESLINT_VERSION=6) 17 Feb 2020 08:37PM UTC 0
95.17
Travis Job 3682.1
2 3682.2 (ESLINT_VERSION=5) 17 Feb 2020 08:37PM UTC 0
95.25
Travis Job 3682.2
3 3682.3 (ESLINT_VERSION=4) 17 Feb 2020 08:37PM UTC 0
93.47
Travis Job 3682.3
6 3682.6 (ESLINT_VERSION=6) 17 Feb 2020 08:39PM UTC 0
95.17
Travis Job 3682.6
7 3682.7 (ESLINT_VERSION=5) 17 Feb 2020 08:39PM UTC 0
95.25
Travis Job 3682.7
8 3682.8 (ESLINT_VERSION=4) 17 Feb 2020 08:39PM UTC 0
93.47
Travis Job 3682.8
11 3682.11 (ESLINT_VERSION=6) 17 Feb 2020 08:40PM UTC 0
95.17
Travis Job 3682.11
12 3682.12 (ESLINT_VERSION=5) 17 Feb 2020 08:40PM UTC 0
95.25
Travis Job 3682.12
13 3682.13 (ESLINT_VERSION=4) 17 Feb 2020 08:40PM UTC 0
93.47
Travis Job 3682.13
16 3682.16 (ESLINT_VERSION=6) 17 Feb 2020 08:42PM UTC 0
95.17
Travis Job 3682.16
17 3682.17 (ESLINT_VERSION=5) 17 Feb 2020 08:42PM UTC 0
95.25
Travis Job 3682.17
18 3682.18 (ESLINT_VERSION=4) 17 Feb 2020 08:42PM UTC 0
93.47
Travis Job 3682.18
21 3682.21 (ESLINT_VERSION=5) 17 Feb 2020 08:43PM UTC 0
95.25
Travis Job 3682.21
22 3682.22 (ESLINT_VERSION=4) 17 Feb 2020 08:44PM UTC 0
93.47
Travis Job 3682.22
28 3682.28 (PACKAGE=resolvers/node) 17 Feb 2020 08:45PM UTC 0
94.74
Travis Job 3682.28
29 3682.29 (PACKAGE=resolvers/node) 17 Feb 2020 08:46PM UTC 0
94.74
Travis Job 3682.29
30 3682.30 (PACKAGE=resolvers/node) 17 Feb 2020 08:46PM UTC 0
94.74
Travis Job 3682.30
31 3682.31 (PACKAGE=resolvers/node) 17 Feb 2020 08:46PM UTC 0
94.74
Travis Job 3682.31
32 3682.32 (PACKAGE=resolvers/node) 17 Feb 2020 08:47PM UTC 0
94.74
Travis Job 3682.32
34 3682.34 (PACKAGE=resolvers/webpack) 17 Feb 2020 08:47PM UTC 0
93.6
Travis Job 3682.34
35 3682.35 (PACKAGE=resolvers/webpack) 17 Feb 2020 08:47PM UTC 0
93.6
Travis Job 3682.35
36 3682.36 (PACKAGE=resolvers/webpack) 17 Feb 2020 08:47PM UTC 0
93.6
Travis Job 3682.36
37 3682.37 (PACKAGE=resolvers/webpack) 17 Feb 2020 08:48PM UTC 0
93.6
Travis Job 3682.37
39 3682.39 (ESLINT_VERSION=5) 17 Feb 2020 08:50PM UTC 0
95.39
Travis Job 3682.39
40 3682.40 (ESLINT_VERSION=5) 17 Feb 2020 08:50PM UTC 0
95.39
Travis Job 3682.40
41 3682.41 (ESLINT_VERSION=4) 17 Feb 2020 08:54PM UTC 0
93.6
Travis Job 3682.41
Source Files on build 3682
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3682
  • Pull Request #1660
  • PR Base - master (#3681)
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