@graphql-eslint/eslint-plugin 3.4.0-alpha-d7fc26d.0 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
- Category: `Schema`
|
4
4
|
- Rule name: `@graphql-eslint/unique-enum-value-names`
|
5
|
-
- Requires GraphQL Schema: `
|
5
|
+
- Requires GraphQL Schema: `false` [ℹ️](../../README.md#extended-linting-rules-with-graphql-schema)
|
6
6
|
- Requires GraphQL Operations: `false` [ℹ️](../../README.md#extended-linting-rules-with-siblings-operations)
|
7
7
|
|
8
8
|
A GraphQL enum type is only valid if all its values are uniquely named.
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
- Category: `Schema`
|
6
6
|
- Rule name: `@graphql-eslint/unique-field-definition-names`
|
7
|
-
- Requires GraphQL Schema: `
|
7
|
+
- Requires GraphQL Schema: `false` [ℹ️](../../README.md#extended-linting-rules-with-graphql-schema)
|
8
8
|
- Requires GraphQL Operations: `false` [ℹ️](../../README.md#extended-linting-rules-with-siblings-operations)
|
9
9
|
|
10
10
|
A GraphQL complex type is only valid if all its fields are uniquely named.
|
package/index.js
CHANGED
@@ -340,7 +340,7 @@ function validateDocument(context, schema = null, documentNode, rule) {
|
|
340
340
|
try {
|
341
341
|
const validationErrors = schema
|
342
342
|
? graphql.validate(schema, documentNode, [rule])
|
343
|
-
: validate.validateSDL(documentNode,
|
343
|
+
: validate.validateSDL(documentNode, null, [rule]);
|
344
344
|
for (const error of validationErrors) {
|
345
345
|
/*
|
346
346
|
* TODO: Fix ESTree-AST converter because currently it's incorrectly convert loc.end
|
package/index.mjs
CHANGED
@@ -334,7 +334,7 @@ function validateDocument(context, schema = null, documentNode, rule) {
|
|
334
334
|
try {
|
335
335
|
const validationErrors = schema
|
336
336
|
? validate(schema, documentNode, [rule])
|
337
|
-
: validateSDL(documentNode,
|
337
|
+
: validateSDL(documentNode, null, [rule]);
|
338
338
|
for (const error of validationErrors) {
|
339
339
|
/*
|
340
340
|
* TODO: Fix ESTree-AST converter because currently it's incorrectly convert loc.end
|