1.0.3 • Published 8 years ago

eslint-plugin-func-call v1.0.3

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

eslint-plugin-func-call

Eslint plugin to control function call code style

Build Status Coverage Status

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-func-call:

npm install eslint-plugin-func-call --save-dev

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

Usage

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

{
    "plugins": [
        "func-call"
    ]
}

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

{
    "rules": {
        "func-call/opening-newline": ["error", 1]
    }
}

Supported Rules

  • opening-newline - prohibits insertion of newline after opening brace when function is called with number or less arguments (1 by default)

License

MIT