npm install @lmc-eu/eslint-config-graphql -D
Create a .eslintrc.js file with the following contents:
module.exports = {
extends: [
// ... (base eslint config)
'@lmc-eu/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: