forked from jafari-dev/oop-expert-with-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
64 lines (64 loc) · 1.85 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
62
63
64
{
"root": true,
"env": { "es2020": true, "node": true },
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"],
"ignorePatterns": ["node_modules/**/*"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint/eslint-plugin"],
"rules": {
"eqeqeq": ["error", "always", { "null": "ignore" }],
"quotes": ["error", "double"],
"no-undef": "error",
"no-unsafe-negation": "error",
"default-case": "error",
"no-useless-return": "error",
"object-shorthand": "error",
"no-cond-assign": "error",
"no-empty": ["error", { "allowEmptyCatch": true }],
"yoda": "error",
"no-negated-condition": "error",
"max-params": ["error", 3],
"prefer-const": "error",
"prefer-spread": "error",
"prefer-template": "error",
"no-useless-call": "error",
"no-useless-catch": "error",
"no-useless-computed-key": "error",
"no-useless-concat": "error",
"no-useless-constructor": "off",
"padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": ["const", "let"],
"next": "*"
},
{
"blankLine": "any",
"prev": ["const", "let"],
"next": ["const", "let"]
},
{
"blankLine": "always",
"prev": "*",
"next": "function"
},
{
"blankLine": "always",
"prev": "function",
"next": "*"
},
{
"blankLine": "always",
"prev": "*",
"next": "return"
}
],
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off",
"prettier/prettier": "error"
}
}