-
-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v4 - Drop support for eslint 5/6, prettier 1, node 6/8 (#429)
* Update required versions of eslint and prettier Now requires node 12, eslint >7.28.0 and prettier > 2.0.0 - prettier v2 changed some defaults, so tests needed to be slightly tweaked - dropping support for old eslint/node means we remove them from CI test matrixes and always run the graphql plugin tests * Enable trailing commas in prettier * Rework graphql test - No need to check if the depenency is installed anymore - Move it into its own ruletester - Add invalid test * Remove check that is unneeded now we only support prettier v2 * Use getPhysicalFilename
- Loading branch information
Showing
12 changed files
with
1,087 additions
and
187 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,21 @@ | ||
# editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 2 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
# Markdown syntax specifies that trailing whitespaces can be meaningful, | ||
# so let’s not trim those. e.g. 2 trailing spaces = linebreak (<br />) | ||
# See https://daringfireball.net/projects/markdown/syntax#p | ||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
# Disable trailing whitespace removal in diff files, | ||
# where whitespace is meaningful | ||
[*.diff] | ||
trim_trailing_whitespace = false |
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,11 +1,11 @@ | ||
CODE: | ||
var a = { | ||
b: 1 | ||
b: 1, | ||
}; | ||
|
||
OUTPUT: | ||
var a = { | ||
b: 1 | ||
b: 1, | ||
}; | ||
|
||
OPTIONS: | ||
|
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
CODE: | ||
type Query { | ||
foo: String! | ||
} | ||
|
||
OUTPUT: | ||
type Query { | ||
foo: String! | ||
} | ||
|
||
OPTIONS: | ||
[] | ||
|
||
ERRORS: | ||
[ | ||
{ | ||
message: 'Insert `··`', | ||
line: 2, column: 1, endLine: 2, endColumn: 1, | ||
}, | ||
] |
Oops, something went wrong.