Skip to content

Instantly share code, notes, and snippets.

@ofcRS
Created July 7, 2020 10:34
Show Gist options
  • Select an option

  • Save ofcRS/612e5b970f7ddb4c7f9975f61c23b666 to your computer and use it in GitHub Desktop.

Select an option

Save ofcRS/612e5b970f7ddb4c7f9975f61c23b666 to your computer and use it in GitHub Desktop.
module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'prettier',
'plugin:import/errors',
'plugin:import/warnings',
],
parserOptions: {
ecmaVersion: 10,
sourceType: 'module',
},
overrides: [
{
files: ['*.ts*'],
plugins: ['react-hooks', 'prettier', 'unused-imports'],
rules: {
'@typescript-eslint/explicit-function-return-type': 'off',
'react-hooks/rules-of-hooks': ['error'],
'react-hooks/exhaustive-deps': ['warn'],
'prettier/prettier': ['error'],
'react/prop-types': 'off',
quotes: ['warn', 'single'],
'import/no-unresolved': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'unused-imports/no-unused-imports-ts': 'error',
'unused-imports/no-unused-vars-ts': [
'warn',
{
vars: 'all',
varsIgnorePattern: '^_',
args: 'after-used',
argsIgnorePattern: '^_',
},
],
},
},
],
settings: {
react: {
version: 'detect',
},
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment