Created
March 28, 2022 11:06
-
-
Save avaly/674f8bc818b2493ff54260090e9f73aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
root: true, | |
parser: '@typescript-eslint/parser', | |
plugins: [ | |
'@typescript-eslint', | |
], | |
overrides: [ | |
{ | |
files: ['*.graphql'], | |
extends: ['plugin:@graphql-eslint/schema-recommended'], | |
parser: '@graphql-eslint/eslint-plugin', | |
parserOptions: { | |
extraFileExtensions: ['.graphql'], | |
schema: './*.graphql' | |
}, | |
plugins: ['@graphql-eslint'], | |
}, | |
], | |
rules: { | |
'@typescript-eslint/prefer-optional-chain': [2] | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Foo { | |
id: ID! | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "eslint-bugs", | |
"version": "1.0.0", | |
"main": "index.js", | |
"license": "MIT", | |
"volta": { | |
"node": "14.18.1" | |
}, | |
"devDependencies": { | |
"@graphql-eslint/eslint-plugin": "3.9.1", | |
"@typescript-eslint/eslint-plugin": "5.16.0", | |
"@typescript-eslint/parser": "5.16.0", | |
"eslint": "8.11.0", | |
"typescript": "4.6.2" | |
}, | |
"dependencies": { | |
"graphql": "16.3.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment