-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
60 lines (60 loc) · 1.32 KB
/
.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
module.exports = {
extends: [
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint',
'plugin:prettier/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 2018,
sourceType: 'module',
},
plugins: [
'react',
'react-hooks',
'simple-import-sort',
'sort-destructure-keys',
],
root: true,
rules: {
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/explicit-function-return-type': [
'error',
{
allowExpressions: true,
allowHigherOrderFunctions: true,
allowTypedFunctionExpressions: true,
},
],
'@typescript-eslint/no-use-before-define': 'off',
'no-console': [
'error',
{
allow: ['info', 'error'],
},
],
'react-hooks/exhaustive-deps': 'warn',
'react/display-name': 'off',
'react/jsx-sort-props': [
'error',
{
ignoreCase: false,
},
],
'react/prop-types': 'off',
'simple-import-sort/exports': 'error',
'simple-import-sort/imports': 'error',
'sort-destructure-keys/sort-destructure-keys': 'error',
'sort-keys': 'error',
'sort-vars': 'error',
},
settings: {
react: {
version: '17',
},
},
}