Skip to content

titarenko/eslint-plugin-func-call

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Eslint plugin to control function call code style

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published