-
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update eslint, various improvements (#513)
- Loading branch information
Dimitri POSTOLOV
committed
Jul 2, 2021
1 parent
5a7e9a7
commit 4348dcc
Showing
13 changed files
with
114 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@graphql-eslint/eslint-plugin': patch | ||
--- | ||
|
||
update eslint, various improvements |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,23 @@ | ||
diff --git a/node_modules/eslint/lib/rule-tester/rule-tester.js b/node_modules/eslint/lib/rule-tester/rule-tester.js | ||
index 905f341..6ba6ae7 100644 | ||
index cac81bc..3a3dbbe 100644 | ||
--- a/node_modules/eslint/lib/rule-tester/rule-tester.js | ||
+++ b/node_modules/eslint/lib/rule-tester/rule-tester.js | ||
@@ -851,9 +851,19 @@ class RuleTester { | ||
@@ -905,7 +905,17 @@ class RuleTester { | ||
"Expected no autofixes to be suggested" | ||
); | ||
} else { | ||
- assert.strictEqual(result.output, item.output, "Output is incorrect."); | ||
+ if (item.output.includes('# normalize graphql')) { | ||
+ const graphql = require('graphql'); | ||
+ | ||
+ function normalize(value) { | ||
+ return graphql.print(graphql.parse(value.replace('# normalize graphql', ''))); | ||
+ } | ||
+ | ||
+ assert.strictEqual(normalize(result.output), normalize(item.output), "Output is incorrect."); | ||
+ | ||
+ assert.strictEqual(normalize(result.output), normalize(item.output), 'Output is incorrect.'); | ||
+ } else { | ||
+ assert.strictEqual(result.output, item.output, "Output is incorrect."); | ||
+ assert.strictEqual(result.output, item.output, 'Output is incorrect.'); | ||
+ } | ||
} | ||
- } else { | ||
+ } | ||
+ else { | ||
} else { | ||
assert.strictEqual( | ||
result.output, | ||
item.code, |
Oops, something went wrong.