This repository has been archived by the owner on Oct 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.eslintrc.json
53 lines (53 loc) · 1.63 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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"env": {
"node": true,
"es6": true
},
"rules": {
"curly": ["error", "multi-line"],
"eol-last": ["error", "always"],
"eqeqeq": ["error", "always", { "null": "ignore" }],
"no-console": "off",
"no-redeclare": ["error", { "builtinGlobals": true }],
"no-return-await": "error",
"no-unsafe-finally": "error",
"no-unused-expressions": "error",
"no-use-before-define": ["error", { "functions": false, "classes": false }],
"no-var": "error",
"one-var-declaration-per-line": "error",
"prefer-const": "error",
"spaced-comment": ["error", "always", { "markers": ["/"] }],
"space-infix-ops": ["error"],
"use-isnan": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-function-return-type": [
"warn",
{ "allowExpressions": true, "allowTypedFunctionExpressions": true }
],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "interface",
"format": ["PascalCase"]
},
{
"selector": "class",
"format": ["PascalCase"]
}
],
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-useless-constructor": "error",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-var-requires": "off"
}
}