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

@scayle/eslint-plugin-vue-composable

Rules to avoid unpleasant composable problems

207,394 4
@component-hook/eslint-plugin

ESLint config for component hook

8,834 4
@cloudflight/eslint-plugin-vue

Cloudflight eslint-plugin & eslint-config for vue

38,060
eslint-plugin-test-id

This checks is data-test-id prop is present, on some tags which are useful for e...

10,384 17
eslint-plugin-vueunused

a eslint plugin for detecting unused code in vue single file component

939

Version History

Version Released License
0.0.1 MIT