Skip to content

Commit

Permalink
fix: make it work with --cache
Browse files Browse the repository at this point in the history
  • Loading branch information
targos committed Jul 12, 2024
1 parent 6b9bbe0 commit fce655e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Check warning on line 14 in index.js

View workflow job for this annotation

GitHub Actions / nodejs / lint-eslint

Unexpected 'todo' comment: 'TODO: remove this when fixed in the...'
meta: {
name: '@graphql-eslint',
},
},
},
rules: {
'@graphql-eslint/alphabetize': 'off',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 .",
Expand Down

0 comments on commit fce655e

Please sign in to comment.