Skip to content

Commit fce655e

Browse files
committed
fix: make it work with --cache
1 parent 6b9bbe0 commit fce655e

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

index.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,15 @@ export default [
77
'@graphql-eslint': graphqlEslint,
88
},
99
languageOptions: {
10-
parser: graphqlEslint,
10+
parser: {
11+
...graphqlEslint,
12+
// Necessary to avoid an error when ESLint is run with --cache.
13+
// https://github.com/dimaMachina/graphql-eslint/issues/2178
14+
// TODO: remove this when fixed in the package.
15+
meta: {
16+
name: '@graphql-eslint',
17+
},
18+
},
1119
},
1220
rules: {
1321
'@graphql-eslint/alphabetize': 'off',

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"license": "MIT",
1010
"repository": "https://github.com/zakodium/eslint-config-graphql",
1111
"scripts": {
12-
"eslint": "eslint .",
12+
"eslint": "eslint . --cache",
1313
"eslint-fix": "npm run eslint -- --fix",
1414
"prettier": "prettier --check .",
1515
"prettier-write": "prettier --write .",

0 commit comments

Comments
 (0)