This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@20minutes/eslint-plugin-graphql

6.0.0 • Public • Published

@20minutes/eslint-plugin-graphql

Node CI

An ESLint plugin that checks tagged query strings inside JavaScript, or queries inside .graphql files, against a GraphQL schema.

This is exactly the same plugin as eslint-plugin-graphql but with dependencies up to date.

yarn add --dev @20minutes/eslint-plugin-graphql

Requirements:

  • requires Node 12+
  • requires GraphQL 15+

Configuration is the same but you need to use @20minutes/graph instead of graph in some places.

// In a file called .eslintrc.js
module.exports = {
  parser: '@babel/eslint-parser',
  rules: {
    "@20minutes/graphql/template-strings": [/* ... */],
    "@20minutes/graphql/no-deprecated-fields": [/* ... */],
    "@20minutes/graphql/required-fields": [/* ... */],
  },
  plugins: [
    '@20minutes/graphql'
  ]
}

Readme

Keywords

none

Package Sidebar

Install

npm i @20minutes/eslint-plugin-graphql

Weekly Downloads

218

Version

6.0.0

License

MIT

Unpacked Size

45.8 kB

Total Files

10

Last publish

Collaborators

  • j0k3r
  • webtech20minutes