Skip to content

Instantly share code, notes, and snippets.

@avaly
Created March 28, 2022 11:06
Show Gist options
  • Save avaly/674f8bc818b2493ff54260090e9f73aa to your computer and use it in GitHub Desktop.
Save avaly/674f8bc818b2493ff54260090e9f73aa to your computer and use it in GitHub Desktop.
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]
}
};
type Foo {
id: ID!
}
{
"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