-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
43 lines (43 loc) · 1.2 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
{
"root": true,
"ignorePatterns": ["dist"],
"parserOptions": {
"ecmaVersion": 2020
},
"plugins": ["jest", "prettier"],
"extends": [
"eslint:recommended",
"plugin:jest/recommended",
"plugin:jest/style",
"plugin:prettier/recommended"
],
"env": {
"node": true,
"shelljs": true,
"jest": true
},
"rules": {
"no-console": ["warn"],
"no-duplicate-imports": ["error"],
"sort-imports": ["error", { "ignoreDeclarationSort": true }]
},
"overrides": [
{
"files": ["*.ts"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint"],
"extends": ["plugin:@typescript-eslint/recommended"],
"rules": {
"@typescript-eslint/explicit-function-return-type": ["error", { "allowExpressions": true }],
"@typescript-eslint/explicit-member-accessibility": ["error"],
"@typescript-eslint/member-ordering": ["error"],
"@typescript-eslint/no-use-before-define": ["error", { "functions": false }],
"@typescript-eslint/promise-function-async": ["error"],
"@typescript-eslint/require-await": ["error"]
}
}
]
}