Skip to content

Commit 8e40946

Browse files
fix ESLint couldn't find the config "./configs/base", add tslib to dependencies (#1344)
* fix ESLint couldn't find the config "./configs/base" add `tslib` to dependencies * chore(dependencies): updated changesets for modified dependencies * pnpm i * try * fix * Update .changeset/heavy-pots-kiss.md Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 15f8c81 commit 8e40946

17 files changed

+43
-30
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@graphql-eslint/eslint-plugin": patch
3+
---
4+
dependencies updates:
5+
- Added dependency [`tslib@^2.4.1` ↗︎](https://www.npmjs.com/package/tslib/v/2.4.1) (to `dependencies`)

.changeset/heavy-pots-kiss.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 `schema-all`/`operations-all` configs error - ESLint couldn't find the config "./configs/base"
6+
add `tslib` to dependencies

docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
2626
[known-fragment-names](rules/known-fragment-names.md)|A GraphQL document is only valid if all `...Fragment` fragment spreads refer to fragments defined in the same document.|![recommended][]|📦|🔮|
2727
[known-type-names](rules/known-type-names.md)|A GraphQL document is only valid if referenced types (specifically variable definitions and fragment conditions) are defined by the type schema.|![recommended][]|📄 📦|🔮|💡
2828
[lone-anonymous-operation](rules/lone-anonymous-operation.md)|A GraphQL document that contains an anonymous operation (the `query` short-hand) is only valid if it contains only that one operation definition.|![recommended][]|📦|🔮|
29-
[lone-executable-definition](rules/lone-executable-definition.md)|Require all queries, mutations, subscriptions and fragments to be located in separate files.|![all][]|📦|🚀|
29+
[lone-executable-definition](rules/lone-executable-definition.md)|Require queries, mutations, subscriptions or fragments to be located in separate files.|![all][]|📦|🚀|
3030
[lone-schema-definition](rules/lone-schema-definition.md)|A GraphQL document is only valid if it contains only one schema definition.|![recommended][]|📄|🔮|
3131
[match-document-filename](rules/match-document-filename.md)|This rule allows you to enforce that the file name should match the operation name.|![all][]|📦|🚀|
3232
[naming-convention](rules/naming-convention.md)|Require names to follow specified conventions.|![recommended][]|📄 📦|🚀|💡
@@ -59,7 +59,7 @@ Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs
5959
[require-description](rules/require-description.md)|Enforce descriptions in type definitions and operations.|![recommended][]|📄|🚀|
6060
[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][]|📄|🚀|
6161
[require-id-when-available](rules/require-id-when-available.md)|Enforce selecting specific fields when they are available on the GraphQL type.|![recommended][]|📦|🚀|💡
62-
[require-nullable-fields-with-oneof](rules/require-nullable-fields-with-oneof.md)|Require are `input` or `type` fields be non nullable with `@oneOf` directive.|![all][]|📄|🚀|
62+
[require-nullable-fields-with-oneof](rules/require-nullable-fields-with-oneof.md)|Require `input` or `type` fields to be non-nullable with `@oneOf` directive.|![all][]|📄|🚀|
6363
[require-type-pattern-with-oneof](rules/require-type-pattern-with-oneof.md)|Enforce types with `@oneOf` directive have `error` and `ok` fields.|![all][]|📄|🚀|
6464
[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][]|📦|🔮|💡
6565
[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][]|📦|🚀|💡

docs/rules/lone-executable-definition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
- Requires GraphQL Operations: `false`
77
[ℹ️](../../README.md#extended-linting-rules-with-siblings-operations)
88

9-
Require all queries, mutations, subscriptions and fragments to be located in separate files.
9+
Require queries, mutations, subscriptions or fragments to be located in separate files.
1010

1111
## Usage Examples
1212

docs/rules/require-nullable-fields-with-oneof.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
- Requires GraphQL Operations: `false`
77
[ℹ️](../../README.md#extended-linting-rules-with-siblings-operations)
88

9-
Require are `input` or `type` fields be non nullable with `@oneOf` directive.
9+
Require `input` or `type` fields to be non-nullable with `@oneOf` directive.
1010

1111
## Usage Examples
1212

packages/plugin/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@
4444
"fast-glob": "^3.2.12",
4545
"graphql-config": "^4.4.0",
4646
"graphql-depth-limit": "^1.1.0",
47-
"lodash.lowercase": "^4.3.0"
47+
"lodash.lowercase": "^4.3.0",
48+
"tslib": "^2.4.1"
4849
},
4950
"devDependencies": {
5051
"@types/babel__code-frame": "7.0.3",

packages/plugin/src/configs/base.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.

packages/plugin/src/configs/operations-all.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55
export default {
6-
extends: ['./configs/base', './configs/operations-recommended'],
6+
extends: './configs/operations-recommended',
77
rules: {
88
'@graphql-eslint/alphabetize': [
99
'error',

packages/plugin/src/configs/operations-recommended.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
*/
44

55
export default {
6-
extends: './configs/base',
6+
parser: '@graphql-eslint/eslint-plugin',
7+
plugins: ['@graphql-eslint'],
78
rules: {
89
'@graphql-eslint/executable-definitions': 'error',
910
'@graphql-eslint/fields-on-correct-type': 'error',

packages/plugin/src/configs/relay.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export default {
2-
extends: './configs/base',
2+
parser: '@graphql-eslint/eslint-plugin',
3+
plugins: ['@graphql-eslint'],
34
rules: {
45
'@graphql-eslint/relay-arguments': 'error',
56
'@graphql-eslint/relay-connection-types': 'error',

0 commit comments

Comments
 (0)