-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc.js
34 lines (34 loc) · 833 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
32
33
34
module.exports = {
env: {
browser: true,
node: true,
},
parser: '@typescript-eslint/parser',
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:prettier/recommended',
'plugin:react/jsx-runtime',
'prettier',
],
plugins: ['react', 'prettier', 'unused-imports', 'simple-import-sort'],
settings: {
react: {
version: 'detect',
},
},
overrides: [
{
files: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)'],
extends: ['plugin:testing-library/react'],
},
],
rules: {
'prettier/prettier': 'warn',
'unused-imports/no-unused-imports': 'warn',
'simple-import-sort/imports': 'warn',
'simple-import-sort/exports': 'warn',
},
};