1.0.0 • Published 1 year ago

eslint-plugin-restricted-callee v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

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'
                    ]
                }
            ]
        ]
    }
}
1.0.0

1 year ago