eslint-plugin-safe-arguments

0.1.1 • Public • Published

eslint-plugin-safe-arguments

NPM version NPM downloads

check function arguments

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-safe-arguments:

$ npm install eslint-plugin-safe-arguments --save-dev

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

Usage

Add safe-arguments to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "safe-arguments"
    ]
}

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

{
    "rules": {
        "safe-arguments/rule-name": 2
    }
}

Supported Rules

  • Fill in provided rules here

Package Sidebar

Install

npm i eslint-plugin-safe-arguments

Weekly Downloads

5

Version

0.1.1

License

ISC

Unpacked Size

6.85 kB

Total Files

5

Last publish

Collaborators

  • daiqingyun