@strv/eslint-config-graphql
v2.0.0
Published
STRV's ESLint config for javascript applications that use GraphQL and Apollo client.
Downloads
4
Readme
@strv/eslint-config-graphql
Installation
npm install -D @strv/eslint-config-graphql
Usage
// eslint.config.mjs
import graphql from '@strv/eslint-config-graphql'
/** @type {Array<import("eslint").Linter.FlatConfig>} */
const config = [{
// Perhaps also apply other configs?
{ files: ['**/*.js'], ...graphql },
}]
export default config
Additionally don't forget to have .graphqlconfig
file:
{
// ...
"schemaPath": "schema.json"
// ...
}
License
See the LICENSE file for information.