Last active
December 8, 2020 16:35
-
-
Save crisu83/6b508c9d800a550876187453509187f2 to your computer and use it in GitHub Desktop.
ESLint config based on google/gts https://github.com/google/gts/blob/master/.eslintrc.json
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 = { | |
extends: ['./node_modules/gts'], | |
overrides: [ | |
{ | |
extends: ['plugin:react/recommended', 'plugin:react-hooks/recommended'], | |
files: ['*.ts', '*.tsx'], | |
rules: { | |
'@typescript-eslint/no-explicit-any': 'off', | |
'react-hooks/exhaustive-deps': 'warn', | |
'react-hooks/rules-of-hooks': 'error', | |
'react/prop-types': 'off', | |
}, | |
}, | |
{ | |
files: ['*.graphql'], | |
parser: '@graphql-eslint/eslint-plugin', | |
plugins: ['@graphql-eslint'], | |
rules: { | |
'eol-last': 'off', | |
'prettier/prettier': 'off', | |
}, | |
}, | |
], | |
settings: { | |
react: { | |
version: 'detect', | |
}, | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment