-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
executable file
·61 lines (60 loc) · 1.55 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
{
"env": {
"es2021": true,
"es6": true,
"node": true,
"jest": true
},
"extends": ["standard", "plugin:promise/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"overrides": [
{
"files": ["*.ts", "*.tsx"], // Your TypeScript files extension
"parserOptions": { "project": "./tsconfig.json" }
}
],
"globals": {
"NodeJS": true
},
"plugins": ["@typescript-eslint", "unused-imports", "promise"],
"rules": {
"semi": ["warn", "always"],
"quotes": ["warn", "double", { "avoidEscape": true }],
"comma-dangle": "off",
"no-trailing-spaces": "off",
"no-multiple-empty-lines": "off",
"no-unused-expressions": "off",
"padded-blocks": "off",
"keyword-spacing": "off",
"camelcase": "off",
"require-await": "error",
"no-case-declarations": "off",
"object-curly-spacing": "off",
"space-before-function-paren": "off",
"no-useless-constructor": "off",
"@typescript-eslint/explicit-function-return-type": "error",
"eslint-no-use-before-defining": "off",
"no-use-before-define": "off",
"no-var": "error",
"no-unused-vars": "warn",
"no-void": "off",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "interface",
"format": ["PascalCase"],
"custom": {
"regex": "^I[A-Z]",
"match": true
}
}
],
"indent": "off",
"no-new": "off"
}
}