eslint-plugin-func-call

1.0.3 • Public • Published

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

Package Sidebar

Install

npm i eslint-plugin-func-call

Weekly Downloads

5

Version

1.0.3

License

MIT

Last publish

Collaborators

  • titarenko