-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
31 lines (31 loc) · 906 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'testing-library', 'prettier'],
extends: [
'airbnb',
'airbnb/hooks',
'airbnb-typescript',
'plugin:@typescript-eslint/recommended',
'prettier',
],
rules: {
'react/prop-types': 'off',
'react/react-in-jsx-scope': 'off',
'import/prefer-default-export': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'react/function-component-definition': 'off',
'react/jsx-pascal-case': 0,
'@typescript-eslint/naming-convention': 'off',
'no-underscore-dangle': 'off',
},
parserOptions: {
project: './tsconfig.json',
},
overrides: [
{
files: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)'],
extends: ['plugin:testing-library/react'],
},
],
ignorePatterns: ['node_modules/', 'build', '**/*.js', 'setupTests.ts'],
};