eslint-plugin-import
eslint-plugin-import copied to clipboard
Add setting to `import/named` to disabled error on specific identifiers
It is not uncommon to import something that is provided by a babel-plugin. One such example is babel-plugin-rewire. It provides __Rewire__ and __ResetDependency__ to "override" local variables.
I purpose adding options to import/named to disable the the error on specific identifiers. Here is an example.
rules: {
'named/import': [2, {allowedNames: ["__Rewire__", "__RestDependency__"]}]
}
If approved, I can make an MR.