-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
117 lines (114 loc) · 2.54 KB
/
.eslintrc.json
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{
"extends": [
"prettier",
"eslint:recommended",
"plugin:import/typescript",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:jest/recommended"
],
"plugins": [
"prettier",
"jest",
"import",
"more"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"tsconfigRootDir": "./",
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
},
"settings": {
"import/resolver": {
"typescript": {}
},
"import/ignore": [
"node_modules"
]
},
"rules": {
"curly": "error",
"eqeqeq": "error",
"import/no-duplicates": "error",
"import/no-named-as-default": 0,
"import/order": [
"error",
{
"alphabetize": {
"caseInsensitive": false,
"order": "asc"
},
"newlines-between": "always"
}
],
"jest/no-focused-tests": "error",
"jest/no-disabled-tests": "error",
"jest/no-restricted-matchers": [
"error",
{
"toThrowErrorMatchingSnapshot": "Use `toThrowErrorMatchingInlineSnapshot() or toThrow()` instead."
}
],
"jest/prefer-to-have-length": "error",
"more/force-native-methods": "error",
"more/no-then": "error",
"no-console": "warn",
"no-constant-condition": "error",
"no-irregular-whitespace": "error",
"no-process-env": "error",
"no-prototype-builtins": "off",
"no-return-await": "error",
"no-unneeded-ternary": [
"error",
{
"defaultAssignment": false
}
],
"no-unused-vars": "off",
"object-curly-spacing": ["error", "always"],
"object-shorthand": ["error", "properties"],
"prefer-arrow-callback": "off",
"prettier/prettier": ["error", { "singleQuote": true }],
"quotes": [
"error",
"single",
{
"allowTemplateLiterals": false,
"avoidEscape": true
}
],
"semi": ["error", "always"],
"sort-imports": [
"error",
{
"ignoreCase": false,
"ignoreDeclarationSort": true,
"ignoreMemberSort": false
}
],
"sort-keys": "off",
"import/no-named-as-default-member": 0,
"jest/no-deprecated-functions": 0,
"max-len": [
"error",
{
"code": 120,
"comments": 200,
"ignoreStrings": true,
"ignoreUrls": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}
]
},
"env": {
"commonjs": true,
"node": true,
"es6": true,
"jest": true
}
}