eslint-plugin-no-require-self-ref
v1.0.3
Published
Disabling the ability to require require-self-ref
Downloads
3
Maintainers
Readme
eslint-plugin-no-require-self-ref
require-self-ref
should only be used in certain directories of projects. It is not recommended to
ship npm packages that are using require-self-ref
.
Installation
npm install eslint-plugin-no-require-self-ref --save-dev
Usage
my-proj/.eslintrc
{
"plugins": [
"no-require-self-ref"
],
"rules": {
"no-require-self-ref/no-require-self-ref": "error"
}
}
If you want to use require-self-ref
in your tests, simply disable this rule
in your test folder:
{
"plugins": [
"no-require-self-ref"
],
"rules": {
"no-require-self-ref/no-require-self-ref": "off"
}
}