eslint-plugin-prefer-optional-chaining
v0.0.1
Published
Prefer optional chaining over a sequence of validations
Downloads
10,625
Maintainers
Readme
eslint-plugin-prefer-optional-chaining
Prefer optional chaining over a sequence of validations
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-prefer-optional-chaining
:
$ npm install eslint-plugin-prefer-optional-chaining --save-dev
Usage
Add prefer-optional-chaining
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"prefer-optional-chaining"
]
}
Supported Rules
- prefer-optional-chaining: Prefer optional chaining over a sequence of validations