PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/eslint-plugin-import/docs/rules

Просмотр файла: no-self-import.md

# import/no-self-import

<!-- end auto-generated rule header -->

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');
```

Выполнить команду


Для локальной разработки. Не используйте в интернете!