# User Guide

# 💿Installation

npm install eslint eslint-plugin-gridsome vue-eslint-parser -D

TIP

There is a reason to install vue-eslint-parser.
eslint-plugin-gridsome has been using vue-eslint-parser over the ^6.0.4 version.
If you want to use other eslint plugin package, be careful vue-eslint-parser's version.

# 💻Usage

# plugins

Example .eslintrc.js:

module.exports = {
  parser: "vue-eslint-parser",
  plugins: ["gridsome"],
  rules: {
    "gridsome/format-query-block": "error"
    ...
  },
};

# extends

You also can use extends (opens new window).

module.exports = {
  parser: "vue-eslint-parser",
+ extends: ["plugin:gridsome/recommended"],
- plugins: ["gridsome"],
- rules: {
-   "gridsome/format-query-block": "error"
-    ...
- },
};

Available extends: