eslint-plugin-vue-storefront
ESLint rules for Vue Storefront
39,292
| Install | |
|---|---|
npm install eslint-plugin-vue-storefront |
|
| Latest Version: | 0.0.1 |
| License: | MIT |
| Last Updated: | May 16, 2018 |
| Links: | npm |
Maintainer: davidrouyer
eslint-plugin-vue-storefront
ESLint rules for Vue Storefront
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-vue-storefront:
$ npm install eslint-plugin-vue-storefront --save-dev
Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-vue-storefront globally.
Usage
Add eslint-plugin-vue-storefront to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"vue-storefront"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"vue-storefront/no-corecomponent-import": "error",
"vue-storefront/no-corecomponent": "error",
"vue-storefront/no-corepage-import": "error",
"vue-storefront/no-corepage": "error"
}
}
Supported Rules
- no-corecomponent-import
- no-corecomponent
- no-corepage-import
- no-corepage
Related Packages
eslint-plugin-test-id
This checks is data-test-id prop is present, on some tags which are useful for e...
10,384
17
Version History
| Version | Released | License |
|---|---|---|
| 0.0.1 | MIT |