From fce655e7cfd3b45a0aa673269dc5c56578df0f3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Fri, 12 Jul 2024 07:44:29 +0200 Subject: [PATCH 1/2] fix: make it work with `--cache` --- index.js | 10 +++++++++- package.json | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 19bb3d8..a5b05d8 100644 --- a/index.js +++ b/index.js @@ -7,7 +7,15 @@ export default [ '@graphql-eslint': graphqlEslint, }, languageOptions: { - parser: graphqlEslint, + parser: { + ...graphqlEslint, + // Necessary to avoid an error when ESLint is run with --cache. + // https://github.com/dimaMachina/graphql-eslint/issues/2178 + // TODO: remove this when fixed in the package. + meta: { + name: '@graphql-eslint', + }, + }, }, rules: { '@graphql-eslint/alphabetize': 'off', diff --git a/package.json b/package.json index 2d6e617..7fadb15 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "license": "MIT", "repository": "https://github.com/zakodium/eslint-config-graphql", "scripts": { - "eslint": "eslint .", + "eslint": "eslint . --cache", "eslint-fix": "npm run eslint -- --fix", "prettier": "prettier --check .", "prettier-write": "prettier --write .", From aa1b02b6e160f6f69c6474b183461b8cc1999bf9 Mon Sep 17 00:00:00 2001 From: Zakodium <72201612+zakodium-bot@users.noreply.github.com> Date: Fri, 12 Jul 2024 07:45:39 +0200 Subject: [PATCH 2/2] chore(main): release 6.0.1 (#24) --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bae73ea..cf0e150 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [6.0.1](https://github.com/zakodium/eslint-config-graphql/compare/v6.0.0...v6.0.1) (2024-07-12) + + +### Bug Fixes + +* make it work with `--cache` ([fce655e](https://github.com/zakodium/eslint-config-graphql/commit/fce655e7cfd3b45a0aa673269dc5c56578df0f3c)) + ## [6.0.0](https://github.com/zakodium/eslint-config-graphql/compare/v5.1.0...v6.0.0) (2024-07-11) diff --git a/package.json b/package.json index 7fadb15..12a7bbb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@zakodium/eslint-config-graphql", - "version": "6.0.0", + "version": "6.0.1", "description": "ESLint config for GraphQL files", "type": "module", "exports": {