-
Notifications
You must be signed in to change notification settings - Fork 19
/
.eslintrc
93 lines (93 loc) · 2.29 KB
/
.eslintrc
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"import",
"jest",
"prettier",
"react",
"react-hooks",
"simple-import-sort",
"sonarjs",
"sort-destructure-keys",
"typescript-sort-keys",
"unicorn",
"node"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:sonarjs/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:jest/recommended",
"plugin:react/recommended",
"plugin:unicorn/recommended",
"plugin:node/recommended"
],
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"ecmaFeatures": {
"modules": true
}
},
"rules": {
"import/default": "off",
"import/named": "off",
"import/namespace": "off",
"import/no-default-export": "error",
"import/prefer-default-export": "off",
"jest/no-jest-import": "off",
"prettier/prettier": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"sort-destructure-keys/sort-destructure-keys": "error",
"typescript-sort-keys/interface": "error",
"typescript-sort-keys/string-enum": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
],
"node/no-unsupported-features/es-syntax": "off",
"node/no-missing-import": "off",
"unicorn/filename-case": "off",
"unicorn/prefer-node-protocol": "off",
"unicorn/no-useless-undefined": "off",
"unicorn/prevent-abbreviations": [
"error",
{
"allowList": {
"FotingoProps": true,
"MessageProps": true,
"MessagesProps": true,
"props": true,
"RequestProps": true,
"SelectRequestProps": true
}
}
],
"unicorn/no-fn-reference-in-iterator": "off"
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true
}
},
"react": {
"version": "detect"
}
}
}