Skip to content

Commit

Permalink
chore: adds graphql linter
Browse files Browse the repository at this point in the history
  • Loading branch information
EverlastingBugstopper committed Jul 15, 2021
1 parent a16f4f7 commit 363110e
Show file tree
Hide file tree
Showing 14 changed files with 5,199 additions and 39 deletions.
60 changes: 60 additions & 0 deletions crates/rover-client/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"root": true,
"overrides": [
{
"files": ["*.graphql"],
"parser": "@graphql-eslint/eslint-plugin",
"plugins": ["@graphql-eslint"],
"parserOptions": {
"schema": "./.schema/schema.graphql",
"operations": ["./src/operations/**/*.graphql"]
},
"rules": {
"@graphql-eslint/avoid-duplicate-fields": 2,
"@graphql-eslint/avoid-operation-name-prefix": 2,
"@graphql-eslint/avoid-typename-prefix": 2,
"@graphql-eslint/description-style": 2,
"@graphql-eslint/executable-definitions": 2,
"@graphql-eslint/fields-on-correct-type": 2,
"@graphql-eslint/fragments-on-composite-type": 2,
"@graphql-eslint/input-name": 2,
"@graphql-eslint/known-argument-names": 2,
"@graphql-eslint/known-directives": 2,
"@graphql-eslint/known-fragment-names": 2,
"@graphql-eslint/known-type-names": 2,
"@graphql-eslint/lone-anonymous-operation": 2,
"@graphql-eslint/no-anonymous-operations": 2,
"@graphql-eslint/no-case-insensitive-enum-values-duplicates": 2,
"@graphql-eslint/no-deprecated": 2,
"@graphql-eslint/no-fragment-cycles": 2,
"@graphql-eslint/no-hashtag-description": 2,
"@graphql-eslint/no-undefined-variables": 2,
"@graphql-eslint/no-unused-fields": 2,
"@graphql-eslint/no-unused-fragments": 2,
"@graphql-eslint/no-unused-variables": 2,
"@graphql-eslint/one-field-subscriptions": 2,
"@graphql-eslint/overlapping-fields-can-be-merged": 2,
"@graphql-eslint/possible-fragment-spread": 2,
"@graphql-eslint/possible-type-extension": 2,
"@graphql-eslint/provided-required-arguments": 2,
"@graphql-eslint/require-deprecation-reason": 2,
"@graphql-eslint/scalar-leafs": 2,
"@graphql-eslint/strict-id-in-types": 2,
"@graphql-eslint/unique-argument-names": 2,
"@graphql-eslint/unique-directive-names": 2,
"@graphql-eslint/unique-directive-names-per-location": 2,
"@graphql-eslint/unique-enum-value-names": 2,
"@graphql-eslint/unique-field-definition-names": 2,
"@graphql-eslint/unique-fragment-name": 2,
"@graphql-eslint/unique-input-field-names": 2,
"@graphql-eslint/unique-operation-name": 2,
"@graphql-eslint/unique-operation-types": 2,
"@graphql-eslint/unique-type-names": 2,
"@graphql-eslint/unique-variable-names": 2,
"@graphql-eslint/value-literals-of-correct-type": 2,
"@graphql-eslint/variables-are-input-types": 2,
"@graphql-eslint/variables-in-allowed-position": 2
}
}
]
}
Loading

0 comments on commit 363110e

Please sign in to comment.