Created
July 7, 2020 10:34
-
-
Save ofcRS/612e5b970f7ddb4c7f9975f61c23b666 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 = { | |
| 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