Skip to content

YongHao0/eslint-plugin-restricted-callee

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published