0.0.3 • Published 4 years ago
eslint-plugin-empye v0.0.3
eslint-plugin-empye
ESLint rules for Vue Storefront
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-empye
:
$ npm install eslint-plugin-empye --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-empye
globally.
Usage
Add eslint-plugin-empye
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"empye"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"empye/no-corecomponent-import": "error",
"empye/no-corecomponent": "error",
"empye/no-corepage-import": "error",
"empye/no-corepage": "error"
}
}
Supported Rules
- no-corecomponent-import
- no-corecomponent
- no-corepage-import
- no-corepage