mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-25 13:31: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
30
node_modules/eslint-plugin-import/docs/rules/no-self-import.md
generated
vendored
Normal file
30
node_modules/eslint-plugin-import/docs/rules/no-self-import.md
generated
vendored
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# Forbid a module from importing itself (`import/no-self-import`)
|
||||
|
||||
Forbid a module from importing itself. This can sometimes happen during refactoring.
|
||||
|
||||
## Rule Details
|
||||
|
||||
### Fail
|
||||
|
||||
```js
|
||||
// foo.js
|
||||
import foo from './foo';
|
||||
|
||||
const foo = require('./foo');
|
||||
```
|
||||
|
||||
```js
|
||||
// index.js
|
||||
import index from '.';
|
||||
|
||||
const index = require('.');
|
||||
```
|
||||
|
||||
### Pass
|
||||
|
||||
```js
|
||||
// foo.js
|
||||
import bar from './bar';
|
||||
|
||||
const bar = require('./bar');
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue