-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
62 lines (62 loc) · 1.83 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
{
"root": true,
"env": {
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "prettier"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"rules": {
"no-promise-executor-return": ["error"],
"no-template-curly-in-string": ["error"],
"require-atomic-updates": ["error"],
"accessor-pairs": ["error"],
"array-callback-return": ["error"],
"class-methods-use-this": ["error"],
"consistent-return": ["error"],
"curly": ["error", "all"],
"default-case": ["error"],
"default-case-last": ["error"],
"default-param-last": ["error"],
"dot-location": ["error", "property"],
"dot-notation": ["error"],
"eqeqeq": ["error"],
"max-classes-per-file": ["error", 1],
"no-alert": ["error"],
// TODO: log using pino and enable this rule later on
"no-console": ["error"],
"no-constructor-return": ["error"],
"no-else-return": ["error"],
"no-empty-function": ["error"],
"no-empty-pattern": ["error"],
"no-magic-numbers": ["warn"],
"no-multi-spaces": ["error"],
"no-multi-str": ["error"],
"no-new": ["error"],
"no-return-assign": ["error"],
"no-return-await": ["error"],
"no-self-compare": ["error"],
"no-unused-expressions": ["error"],
"no-useless-concat": ["error"],
"no-useless-return": ["error"],
"require-await": ["error"],
"no-label-var": ["error"],
"no-undefined": ["error"],
"no-use-before-define": ["error"],
"no-duplicate-imports": ["error"],
"no-useless-computed-key": ["error"],
"no-useless-constructor": ["error"],
"no-var": ["error"],
"object-shorthand": ["error"],
"prefer-const": ["error"],
"prefer-template": ["error"]
}
}