Skip to content

Commit 4bcee4a

Browse files
authored
fix: surface the original error while loading schema in ESLint server (#999)
* fix: surface the original error while loading schema in ESLint server * add the-guild-org/shared-config:renovate
1 parent 7251269 commit 4bcee4a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+296
-409
lines changed

.changeset/cuddly-papayas-try.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@graphql-eslint/eslint-plugin': patch
3+
---
4+
5+
fix: surface the original error while loading schema in ESLint server\
6+
fix: clarify error message for outdated version of `graphql` package

.changeset/ninety-seas-beg.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,9 @@
22
'@graphql-eslint/eslint-plugin': minor
33
---
44

5-
feat: add `relay-connection-types`, `relay-edge-types`, `relay-page-info` and `relay-arguments` rules
5+
feat: new rule `relay-connection-types`\
6+
feat: new rule `relay-edge-types`\
7+
feat: new rule `relay-page-info`\
8+
feat: new rule `relay-arguments`\
9+
feat: new config `plugin:@graphql-eslint/relay`\
10+
fix: adjust suggestion fix location for code-files

.github/renovate.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": ["github>the-guild-org/shared-config:renovate"]
4+
}

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 Dotan Simha
3+
Copyright (c) 2022 Dimitri POSTOLOV
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Name            &nbs
5454
[require-field-of-type-query-in-mutation-result](rules/require-field-of-type-query-in-mutation-result.md)|Allow the client in one round-trip not only to call mutation but also to get a wagon of data to update their application.|![all][]|🚀|
5555
[require-id-when-available](rules/require-id-when-available.md)|Enforce selecting specific fields when they are available on the GraphQL type.|![recommended][]|🚀|💡
5656
[scalar-leafs](rules/scalar-leafs.md)|A GraphQL document is valid only if all leaf fields (fields without sub selections) are of scalar or enum types.|![recommended][]|🔮|
57-
[selection-set-depth](rules/selection-set-depth.md)|Limit the complexity of the GraphQL operations solely by their depth. Based on [graphql-depth-limit](https://github.com/stems/graphql-depth-limit).|![recommended][]|🚀|💡
57+
[selection-set-depth](rules/selection-set-depth.md)|Limit the complexity of the GraphQL operations solely by their depth. Based on [graphql-depth-limit](https://npmjs.com/package/graphql-depth-limit).|![recommended][]|🚀|💡
5858
[strict-id-in-types](rules/strict-id-in-types.md)|Requires output types to have one unique identifier unless they do not have a logical one. Exceptions can be used to ignore output types that do not have unique identifiers.|![recommended][]|🚀|
5959
[unique-argument-names](rules/unique-argument-names.md)|A GraphQL field or directive is only valid if all supplied arguments are uniquely named.|![recommended][]|🔮|
6060
[unique-directive-names](rules/unique-directive-names.md)|A GraphQL document is only valid if all defined directives have unique names.|![recommended][]|🔮|

docs/rules/selection-set-depth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
- Requires GraphQL Schema: `false` [ℹ️](../../README.md#extended-linting-rules-with-graphql-schema)
1010
- Requires GraphQL Operations: `true` [ℹ️](../../README.md#extended-linting-rules-with-siblings-operations)
1111

12-
Limit the complexity of the GraphQL operations solely by their depth. Based on [graphql-depth-limit](https://github.com/stems/graphql-depth-limit).
12+
Limit the complexity of the GraphQL operations solely by their depth. Based on [graphql-depth-limit](https://npmjs.com/package/graphql-depth-limit).
1313

1414
## Usage Examples
1515

package.json

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,8 @@
6262
"graphql": "16.3.0"
6363
},
6464
"lint-staged": {
65-
"{packages,scripts}/**/*.{ts,tsx,js,jsx,cjs,mjs}": [
66-
"eslint --fix",
67-
"yarn generate:configs",
68-
"git add packages/plugin/src/rules/index.ts",
69-
"git add packages/plugin/src/configs",
70-
"yarn generate:docs",
71-
"git add docs"
72-
],
73-
"*.{ts,tsx,js,jsx,cjs,mjs,gql,graphql,yml,yaml,json}": [
65+
"**/*": [
66+
"eslint",
7467
"prettier --write"
7568
]
7669
}

0 commit comments

Comments
 (0)