{"library":"eslint-plugin-graphql","type":"library","category":null,"description":"An ESLint plugin that validates GraphQL query strings in JavaScript tagged template literals and .graphql files against a GraphQL schema. Version 4.0.0 supports Node >=10.0 and peer dependency graphql ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0. Maintained under the Apollo GraphQL ecosystem. Provides built-in client profiles for Apollo, Relay, Lokka, and FraQL. Unlike graphql-schema-linter (which validates schema definitions), this plugin focuses on linting query usage in application code. Release cadence is irregular; latest release (4.0.0) was published in 2020.","language":"javascript","status":"active","version":"4.0.0","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install eslint-plugin-graphql","imports":["module.exports = {\n  plugins: ['graphql'],\n  rules: {\n    'graphql/template-strings': ['error', { env: 'apollo', schemaJson: {} }]\n  }\n}","import gql from 'fake-tag';\nconst query = gql`{ __typename }`","rules: {\n  'graphql/template-strings': ['error', {\n    env: 'apollo',\n    schemaJson: require('./schema.json')\n  }]\n}"]},{"cmd":"yarn add eslint-plugin-graphql","imports":[]},{"cmd":"pnpm add eslint-plugin-graphql","imports":[]}],"homepage":"https://www.apollographql.com/docs/devtools/eslint-plugin/","github":"https://github.com/apollostack/eslint-plugin-graphql","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/eslint-plugin-graphql","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/eslint-plugin-graphql/compatibility"}}