eslint-plugin-restricted-callee
v1.0.0
Published
Provides rule configurations to organize specific method executions within designated directories
Downloads
2
Maintainers
Readme
eslint-plugin-restricted-callee
Provides rule configurations to organize specific method executions within designated directories
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-restricted-callee
:
npm install eslint-plugin-restricted-callee --save-dev
Usage
Add restricted-callee
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"restricted-callee"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"restricted-callee/limit-callee": [
"error",
[
{
limitCallee: 'provide',
limitDir: [
'/src/views/house-detail'
]
}
]
]
}
}