StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics
https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
418 B
30 lines
418 B
# 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');
|
|
```
|
|
|