npm.io
0.19.2 • Published 2 years ago

@rhino-project/eslint-plugin-rhino

Licence
MIT
Version
0.19.2
Deps
1
Size
140 kB
Vulns
0
Weekly
0
Stars
12

eslint-plugin-rhino

Eslint plugin for rhino-project

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install @rhino-project/eslint-plugin-rhino:

npm install @rhino-project/eslint-plugin-rhino --save-dev
Usage

Add eslint-plugin-rhino to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["@rhino-project/rhino"]
}

To use the recommended configuration, extend it in your .eslintrc file:

{
  "extends": ["plugin:@rhino-project/rhino/recommended"]
}

All recommend rules will be set to error by default. You can however disable some rules by setting turning them off in your .eslintrc file or by setting them to warn in your .eslintrc.

all

To use the all configuration, extend it in your .eslintrc file:

{
  "extends": ["plugin:@rhino-project/rhino/all"]
}