0.0.3 • Published 5 years ago
eslint-plugin-eslint-hub v0.0.3
eslint-plugin-eslint-hub
Eslint plugin to give warnings about various ArcGIS Hub-related things; initially: uses of glyphicons.
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-eslint-hub
:
$ npm install eslint-plugin-eslint-hub --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-eslint-hub
globally.
Usage
Add eslint-hub
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"eslint-hub"
]
}
Then configure the rules you want to use under the rules section. In this example, the violations of the rule are classified as warnings (1
).
{
"rules": {
"eslint-hub/no-glyphicons": 1,
}
}
Supported Rules
- no-glyphicons -- flags literals that contain the string
glyphicon
.