Skip to content

Commit cff5d41

Browse files
committed
Merge branch 'master' into add-custom-css-class-to-whitelist
2 parents 4e8288a + 08dbe4d commit cff5d41

File tree

194 files changed

+4000
-3596
lines changed

Some content is hidden

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

194 files changed

+4000
-3596
lines changed

.changeset/breezy-seals-sparkle.md

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+
5+
fix caching issues for `no-unreachable-types` / `no-unused-fields` rules for multi projects

.changeset/chilly-ants-exist.md

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+
5+
fix compatibility with Node.js v22

.changeset/curly-socks-boil.md

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+
5+
fix `require is not defined` in flat configs for Vue/Svelte projects
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
'@graphql-eslint/eslint-plugin': patch
3+
---
4+
5+
- rename flat configs exports
6+
7+
```diff
8+
-graphql.flatConfigs['schema-recommended']
9+
+graphql.configs['flat/schema-recommended']
10+
-graphql.flatConfigs['schema-relay']
11+
+graphql.configs['flat/schema-relay']
12+
-graphql.flatConfigs['schema-all']
13+
+graphql.configs['flat/schema-all']
14+
-graphql.flatConfigs['operations-recommended']
15+
+graphql.configs['flat/operations-recommended']
16+
-graphql.flatConfigs['operations-all']
17+
+graphql.configs['flat/operations-all']
18+
```
19+
20+
- fix with programmatic usage when passing large schema as string causes `pattern too long` error
21+
22+
- fix loading ESM `graphql.config.js` configs

.changeset/lovely-laws-hide.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+
add `meta` object with `name` and `version` to `parser` and `processor` to be compatible with ESLint
6+
9

.changeset/pre.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,16 @@
1717
"changesets": [
1818
"@graphql-eslint_eslint-plugin-1792-dependencies",
1919
"@graphql-eslint_eslint-plugin-1813-dependencies",
20+
"breezy-seals-sparkle",
21+
"chilly-ants-exist",
22+
"curly-socks-boil",
2023
"dull-scissors-destroy",
2124
"few-mails-sparkle",
25+
"friendly-singers-rush",
2226
"itchy-ads-compete",
27+
"lovely-laws-hide",
2328
"rare-planes-love",
29+
"real-coins-share",
2430
"strong-needles-compare"
2531
]
2632
}

.changeset/real-coins-share.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphql-eslint/eslint-plugin': major
3+
---
4+
5+
exposing GraphQLESTreeNode type

.eslintrc.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ module.exports = {
3636
files: ['**/rules/*.ts'],
3737
extends: ['plugin:eslint-plugin/rules-recommended'],
3838
rules: {
39-
'eslint-plugin/require-meta-docs-description': ['error', { pattern: '.+\\.$' }], // force to put a point at the end
4039
'eslint-plugin/require-meta-docs-url': [
4140
'error',
4241
{ pattern: 'https://the-guild.dev/graphql/eslint/rules/{{name}}' },
@@ -52,6 +51,7 @@ module.exports = {
5251
extends: ['plugin:eslint-plugin/tests-recommended'],
5352
rules: {
5453
'eslint-plugin/test-case-shorthand-strings': 'error',
54+
'import/extensions': 'off',
5555
},
5656
},
5757
{

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
runs-on: ubuntu-latest
2222
strategy:
2323
matrix:
24-
graphql_version: [15, 16]
24+
graphql_version: [16]
2525

2626
steps:
2727
- name: Checkout Master
@@ -39,13 +39,13 @@ jobs:
3939
run: pnpm build
4040

4141
test:
42-
name: Node.js v${{matrix.node_version}} / GraphQL v${{matrix.graphql_version}} / ESLint v8
42+
name: Node.js v${{matrix.node_version}} / GraphQL v${{matrix.graphql_version}} / ESLint v9
4343
timeout-minutes: 60
4444
runs-on: ubuntu-latest
4545
needs: [typecheck]
4646
strategy:
4747
matrix:
48-
node_version: [18, 20.7]
48+
node_version: [18, 20, 22]
4949
graphql_version: [16]
5050

5151
steps:

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![GraphQLConf 2024 Banner: September 10-12, San Francisco. Hosted by the GraphQL Foundation](https://github.com/user-attachments/assets/bdb8cd5d-5186-4ece-b06b-b00a499b7868)](https://graphql.org/conf/2024/?utm_source=github&utm_medium=graphql_eslint&utm_campaign=readme)
2+
13
# GraphQL-ESLint
24

35
[![npm version](https://badge.fury.io/js/%40graphql-eslint%2Feslint-plugin.svg)](https://badge.fury.io/js/%40graphql-eslint%2Feslint-plugin)

0 commit comments

Comments
 (0)