1.0.1 • Published 7 years ago

eslint-plugin-no-literal-arguments v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

eslint-plugin-no-literal-arguments

eslint plugin to disallow calling method with inline literals as arguments

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-no-literal-arguments:

$ npm install eslint-plugin-no-literal-arguments --save-dev

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

Usage

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

{
    "plugins": [
        "no-literal-arguments"
    ]
}

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

{
    "rules": {
        "no-literal-arguments/no-literal-arguments": 2
    }
}

Supported Rules