0.0.1 • Published 6 years ago
eslint-plugin-i-bem-js v0.0.1
ESLint environments for i-bem.js
Install
You'll first need to install ESLint
:
$ npm install eslint --save-dev
Note: You may install ESLint globally using the -g
flag.
Next, install eslint-plugin-i-bem-js
:
$ npm install eslint-plugin-i-bem-js --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-i-bem-js
globally.
A globally-installed instance of ESLint can only use globally-installed ESLint plugins. A locally-installed ESLint can make use of both locally- and globally- installed ESLint plugins.
Usage
Add i-bem-js
to the plugins section of your .eslintrc
configuration file.
{
"plugins": [
"i-bem-js"
]
}
Note: We omitted the eslint-plugin-
prefix since it is automatically assumed by ESLint.
Add the i-bem-js
environment to .eslintrc
:
{
"env": {
"i-bem-js": true
}
}
License
MIT © Roman Ganin
0.0.1
6 years ago