2.2.9 • Published 2 years ago

@ghadyani-eslint/eslint-plugin-arrow-body-parens v2.2.9

Weekly downloads
12
License
ISC
Repository
-
Last release
2 years ago

Originally copied straight from https://github.com/BerkeleyTrue/eslint-plugin-arrow-body-parens and modified.

@ghadyani-eslint/eslint-plugin-arrow-body-parens

Rule to require parenthesis in arrow function body expressions.

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install @ghadyani-eslint/eslint-plugin-arrow-body-parens:

$ npm install @ghadyani-eslint/eslint-plugin-arrow-body-parens --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-arrow-body-parens globally.

Usage

Add @ghadyani-eslint/arrow-body-parens to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": [
    "@ghadyani-eslint/arrow-body-parens"
  ]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "@ghadyani-eslint/arrow-body-parens/parens": [ "error" ]
  }
}

Supported Rules

  • parens - ensure arrow expression bodies are wrapped in parenthesis and that the opening parenthesis starts on the same line as the arrow.
2.2.9

2 years ago

2.2.8

2 years ago

2.2.3-alpha.1

2 years ago

2.2.3-alpha.0

2 years ago

2.2.3

2 years ago

2.2.4

2 years ago

2.2.3-alpha.2

2 years ago

2.2.7

2 years ago

2.2.6

2 years ago

2.2.2-alpha.0

4 years ago

2.2.1

4 years ago

2.2.0

4 years ago

2.1.0

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago