@urchick/eslint-plugin-parens-indent

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @urchick/eslint-plugin-parens-indent

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

2.71 kB

Total Files

3

Last publish

Collaborators

  • urchick