mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
418 B
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
// foo.js
import foo from './foo';
const foo = require('./foo');
// index.js
import index from '.';
const index = require('.');
Pass
// foo.js
import bar from './bar';
const bar = require('./bar');