0.1.1 • Published 4 years ago

eslint-plugin-force-func-param v0.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

eslint-plugin-force-func-param

this plugin provides a new rule which enforce every param in function must have a default value

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-force-func-param:

$ npm install eslint-plugin-force-func-param --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-force-func-param globally.

Usage

Add force-func-param to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "force-func-param"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "force-func-param/rule-name": 2
    }
}

Supported Rules

force-default-params