npm install @alma-oss/eslint-config-graphql -DCreate a .eslintrc.js file with the following contents:
module.exports = {
extends: [
// ... (base eslint config)
'@alma-oss/eslint-config-graphql',
],
};The shareable config can be customized in your eslint configuration file.
Additionally don’t forget to have .graphqlconfig file:
{
// ...
"schemaPath": "schema.json"
// ...
}This configuration uses the following plugins:
Licensed under the MIT.