-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc
58 lines (58 loc) · 1023 Bytes
/
.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
{
"parser": "@typescript-eslint/parser",
"env": {
"es6": true,
"node": true,
"jest/globals": true
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2019,
"project": "tsconfig.json"
},
"extends": [
"airbnb-base",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"
],
"plugins": [
"prettier",
"jest"
],
"rules": {
"no-console": 0,
"prettier/prettier": "error",
"no-underscore-dangle": [
"error",
{
"allow": [
"__get__",
"__set__"
]
}
],
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"@typescript-eslint/no-this-alias": [
"error",
{
"allowedNames": [
"self"
] // Allow `const self = this`; `[]` by default
}
]
}
}