Update checked-in dependencies
This commit is contained in:
parent
67f7ac2add
commit
02c45745e3
174 changed files with 2781 additions and 5722 deletions
9
node_modules/eslint-plugin-import/docs/rules/no-unassigned-import.md
generated
vendored
9
node_modules/eslint-plugin-import/docs/rules/no-unassigned-import.md
generated
vendored
|
|
@ -3,12 +3,13 @@
|
|||
<!-- end auto-generated rule header -->
|
||||
|
||||
With both CommonJS' `require` and the ES6 modules' `import` syntax, it is possible to import a module but not to use its result. This can be done explicitly by not assigning the module to as variable. Doing so can mean either of the following things:
|
||||
- The module is imported but not used
|
||||
- The module has side-effects (like [`should`](https://www.npmjs.com/package/should)). Having side-effects, makes it hard to know whether the module is actually used or can be removed. It can also make it harder to test or mock parts of your application.
|
||||
|
||||
- The module is imported but not used
|
||||
- The module has side-effects (like [`should`](https://www.npmjs.com/package/should)). Having side-effects, makes it hard to know whether the module is actually used or can be removed. It can also make it harder to test or mock parts of your application.
|
||||
|
||||
This rule aims to remove modules with side-effects by reporting when a module is imported but not assigned.
|
||||
|
||||
### Options
|
||||
## Options
|
||||
|
||||
This rule supports the following option:
|
||||
|
||||
|
|
@ -16,7 +17,6 @@ This rule supports the following option:
|
|||
|
||||
Note that the globs start from the where the linter is executed (usually project root), but not from each file that includes the source. Learn more in both the pass and fail examples below.
|
||||
|
||||
|
||||
## Fail
|
||||
|
||||
```js
|
||||
|
|
@ -28,7 +28,6 @@ import '../styles/app.css'
|
|||
// {"allow": ["styles/*.css"]}
|
||||
```
|
||||
|
||||
|
||||
## Pass
|
||||
|
||||
```js
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue