eslint-plugin-vue-storefront

ESLint rules for Vue Storefront

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
eslint-plugin-vue-storefront
0.0.14 years ago4 years agoMinified + gzip package size for eslint-plugin-vue-storefront in KB

Readme

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