1.5.0 • Published 6 years ago
@sensuapp/eslint-config-apollo v1.5.0
@sensuapp/eslint-config-apollo
This package provides Sensu's Apollo GraphQL ESLint settings as an extensible configuration.
Usage
First, add the package to your project.
yarn add --dev eslint @sensuapp/eslint-config-apollo
# or with npm
npm install --save-dev eslint @sensuapp/eslint-config-apolloIf you did not already have an .eslintrc file you can add one.
./node_modules/.bin/eslint --initFinally, add the following to your .eslintrc.
{
"extends": [
"@sensuapp/eslint-config",
"@sensuapp/eslint-config-apollo",
]
}graphql-config
The plugin assumes that you have a .graphqlrc file present. See
graphql-config for more
details on it's options.
{
"schemaPath": "schema.graphql",
"includes": ["*.graphql"],
"excludes": ["tmp/**"]
}