eslint-plugin-parens-indent
This plugin contains parens-proper-indent
rule which forces proper indent for lines containing closing parens )}]
.
Enforced rule is: indent of line containing closing paren must match indent of line with corresponding opening paren.
Example of incorrect code:
const names = [
'alex',
'peter'];
Example of correct code:
const names = [
'alex',
'peter'
];
Installation
npm i @urchick/eslint-plugin-parens-indent --save-dev
in .eslintrc.yaml
add lines:
plugins:
- '@urchick/parens-indent'
rules:
'@urchick/parens-indent/parens-proper-indent': 2