eslint-plugin-restricted-callee
v1.0.0
Published
Provides rule configurations to organize specific method executions within designated directories
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-devNext, install eslint-plugin-restricted-callee:
npm install eslint-plugin-restricted-callee --save-devUsage
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'
]
}
]
]
}
}