Sha256: a676f39acdf3162803228b242beec47e1f24b8d34211fa58986e7cdfab82aac1
Contents?: true
Size: 417 Bytes
Versions: 53
Compression:
Stored size: 417 Bytes
Contents
# 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'); ```
Version data entries
53 entries across 53 versions & 3 rubygems