Skip to content

Instantly share code, notes, and snippets.

@crisu83

crisu83/.eslintrc.js

Last active Dec 8, 2020
Embed
What would you like to do?
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