# Enforce consistent format style in query block ex) <page-query>,<static-query>(gridsome/format-query-block)

# 📖 Rule Details

👎 Examples of incorrect code for this rule:

<page-query>
  query Blog { allWordPressPost (limit: 5) { edges { node { id title } }} }
</page-query>
<static-query>
  query Example { example: examplePage(path: "/docs/example") { content }}
</static-query>

👍 Examples of correct code for this rule:

<page-query>
  query Blog { allWordPressPost(limit: 5) { edges { node { id title } } } }
</page-query>
<static-query>
  query Example { example: examplePage(path: "/docs/example") { content } }
</static-query>

# 🔧 Options

{
  "gridsome/format-query-block": [
    "warn",
    {
      "overridePrettierOption": {
        "tabWidth": 4,
        "vueIndentScriptAndStyle": true
      }
    }
  ]
}