1.0.3 • Published 9 years ago
eslint-plugin-func-call v1.0.3
eslint-plugin-func-call
Eslint plugin to control function call code style
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-func-call:
npm install eslint-plugin-func-call --save-devNote: 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 withnumberor less arguments (1 by default)
License
MIT