mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-24 13:01:24 +01:00
merge completed... now to fix all the bugs...
This commit is contained in:
commit
87c4d80fbc
3472 changed files with 466748 additions and 6517 deletions
41
node_modules/eslint-plugin-import/docs/rules/no-namespace.md
generated
vendored
Normal file
41
node_modules/eslint-plugin-import/docs/rules/no-namespace.md
generated
vendored
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
# import/no-namespace
|
||||
|
||||
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`.
|
||||
The `--fix` functionality for this rule requires ESLint 5 or newer.
|
||||
|
||||
### Options
|
||||
|
||||
This rule supports the following options:
|
||||
|
||||
- `ignore`: array of glob strings for modules that should be ignored by the rule.
|
||||
|
||||
## Rule Details
|
||||
|
||||
Valid:
|
||||
|
||||
```js
|
||||
import defaultExport from './foo'
|
||||
import { a, b } from './bar'
|
||||
import defaultExport, { a, b } from './foobar'
|
||||
```
|
||||
|
||||
```js
|
||||
/* eslint import/no-namespace: ["error", {ignore: ['*.ext']}] */
|
||||
import * as bar from './ignored-module.ext';
|
||||
```
|
||||
|
||||
Invalid:
|
||||
|
||||
```js
|
||||
import * as foo from 'foo';
|
||||
```
|
||||
|
||||
```js
|
||||
import defaultExport, * as foo from 'foo';
|
||||
```
|
||||
|
||||
## When Not To Use It
|
||||
|
||||
If you want to use namespaces, you don't want to use this rule.
|
||||
Loading…
Add table
Add a link
Reference in a new issue