Bump eslint-plugin-import to avoid vulnerability in dependency
This commit is contained in:
parent
10695e6a20
commit
ed9506bbaf
1660 changed files with 67726 additions and 27926 deletions
6
node_modules/eslint-plugin-import/docs/rules/no-namespace.md
generated
vendored
6
node_modules/eslint-plugin-import/docs/rules/no-namespace.md
generated
vendored
|
|
@ -1,5 +1,9 @@
|
|||
# import/no-namespace
|
||||
|
||||
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
|
||||
|
||||
<!-- end auto-generated rule header -->
|
||||
|
||||
Enforce a convention of not using namespace (a.k.a. "wildcard" `*`) imports.
|
||||
|
||||
+(fixable) The `--fix` option on the [command line] automatically fixes problems reported by this rule, provided that the namespace object is only used for direct member access, e.g. `namespace.a`.
|
||||
|
|
@ -22,7 +26,7 @@ import defaultExport, { a, b } from './foobar'
|
|||
```
|
||||
|
||||
```js
|
||||
/* eslint import/no-namespace: ["error", {ignore: ['*.ext']] */
|
||||
/* eslint import/no-namespace: ["error", {ignore: ['*.ext']}] */
|
||||
import * as bar from './ignored-module.ext';
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue