eslint-plugin-vue-storefront

0.0.1 • Public • Published

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

Package Sidebar

Install

npm i eslint-plugin-vue-storefront

Weekly Downloads

3,040

Version

0.0.1

License

MIT

Unpacked Size

46.5 kB

Total Files

12

Last publish

Collaborators

  • davidrouyer