Skip to content

Instantly share code, notes, and snippets.

@crisu83
Last active December 8, 2020 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crisu83/6b508c9d800a550876187453509187f2 to your computer and use it in GitHub Desktop.
Save crisu83/6b508c9d800a550876187453509187f2 to your computer and use it in GitHub Desktop.
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