eslint-plugin-func-call
v1.0.3
Published
Eslint plugin to control function call code style
Downloads
85
Maintainers
Readme
eslint-plugin-func-call
Eslint plugin to control function call code style
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 withnumber
or less arguments (1 by default)
License
MIT