Update checked-in dependencies
This commit is contained in:
parent
67f7ac2add
commit
02c45745e3
174 changed files with 2781 additions and 5722 deletions
4
node_modules/eslint-plugin-import/docs/rules/no-duplicates.md
generated
vendored
4
node_modules/eslint-plugin-import/docs/rules/no-duplicates.md
generated
vendored
|
|
@ -7,7 +7,6 @@
|
|||
<!-- end auto-generated rule header -->
|
||||
|
||||
Reports if a resolved path is imported more than once.
|
||||
+(fixable) The `--fix` option on the [command line] automatically fixes some problems reported by this rule.
|
||||
|
||||
ESLint core has a similar rule ([`no-duplicate-imports`](https://eslint.org/docs/rules/no-duplicate-imports)), but this version
|
||||
is different in two key ways:
|
||||
|
|
@ -18,6 +17,7 @@ is different in two key ways:
|
|||
## Rule Details
|
||||
|
||||
Valid:
|
||||
|
||||
```js
|
||||
import SomeDefaultClass, * as names from './mod'
|
||||
// Flow `type` import from same module is fine
|
||||
|
|
@ -53,6 +53,7 @@ Config:
|
|||
```
|
||||
|
||||
And then the following code becomes valid:
|
||||
|
||||
```js
|
||||
import minifiedMod from './mod?minify'
|
||||
import noCommentsMod from './mod?comments=0'
|
||||
|
|
@ -60,6 +61,7 @@ import originalMod from './mod'
|
|||
```
|
||||
|
||||
It will still catch duplicates when using the same module and the exact same query string:
|
||||
|
||||
```js
|
||||
import SomeDefaultClass from './mod?minify'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue