Plugin for import multilines waring.
Currently having only one rule, the imports-multiline which will throw error in case of more than 5 imports in a line, and if its multiline already it will throw error if there is not only one in a line
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install @zsoltszavo/eslint-plugin-import-lines
:
$ npm install @zsoltszavo/eslint-plugin-import-lines --save-dev
Add @zsoltszavo/import-lines
to the plugins section of your .eslintrc
configuration file.
{
"plugins": [
"@zsoltszavo/import-lines"
]
}
Then add the rule in the rules section.
{
"rules": {
"@zsoltszavo/import-lines/imports-multiline": "error"
}
}