npm install -D @strv/eslint-config-graphql// eslint.config.mjs
import graphql from '@strv/eslint-config-graphql'
/** @type {Array<import("eslint").Linter.Config>} */
const config = [{
// Perhaps also apply other configs?
{ files: ['**/*.js'], ...graphql },
}]
export default configAdditionally don't forget to have .graphqlconfig file:
{
// ...
"schemaPath": "schema.json"
// ...
}See the LICENSE file for information.