@strv/eslint-config-graphql

2.0.0 • Public • Published

@strv/eslint-config-graphql

Installation

npm install -D @strv/eslint-config-graphql

Usage

// eslint.config.mjs
import graphql from '@strv/eslint-config-graphql'

/** @type {Array<import("eslint").Linter.FlatConfig>} */
const config = [{
  // Perhaps also apply other configs?
  { files: ['**/*.js'], ...graphql },
}]

export default config

Additionally don't forget to have .graphqlconfig file:

{
  // ...
  "schemaPath": "schema.json"
  // ...
}

License

See the LICENSE file for information.

Package Sidebar

Install

npm i @strv/eslint-config-graphql

Weekly Downloads

1

Version

2.0.0

License

BSD-3-Clause

Unpacked Size

6.6 kB

Total Files

5

Last publish

Collaborators

  • lucasconstantino
  • strvuser
  • robertrossmann
  • xhudec