npm.io
1.0.1 • Published 5 years ago

@urchick/eslint-plugin-parens-indent

Licence
ISC
Version
1.0.1
Deps
0
Size
3 kB
Vulns
0
Weekly
0

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

Keywords