-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
53 lines (52 loc) · 2.19 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
{
"env": {
"es2021": true,
"node": true,
"jest/globals": true
},
"ignorePatterns": ["*.json", "node_modules/", "dist/", ".eslintrc.json", "nodemon.json", ".lintstagedrc.json", "package*.json", "src/migrations/**"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:@typescript-eslint/recommended-requiring-type-checking", "plugin:prettier/recommended"],
"plugins": ["@typescript-eslint", "prettier", "jest"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module",
"project": "./tsconfig.json"
},
"rules": {
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
],
"@typescript-eslint/no-misused-promises": [
"error",
{
"checksVoidReturn": false
}
],
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_", "caughtErrors": "all", "ignoreRestSiblings": true }],
"@typescript-eslint/no-explicit-any": "warn",
"no-console": "off",
"prefer-const": "error",
"@typescript-eslint/explicit-module-boundary-types": "warn",
"@typescript-eslint/no-non-null-assertion": "warn",
"no-var": "error",
"prefer-template": "error",
"@typescript-eslint/no-unsafe-call": "warn",
"@typescript-eslint/no-unsafe-return": "warn",
"@typescript-eslint/require-await": "warn",
"require-await": "off",
"@typescript-eslint/explicit-function-return-type": ["warn", { "allowExpressions": true }],
"@typescript-eslint/no-use-before-define": ["error", { "functions": false, "classes": true, "variables": true, "typedefs": true }],
"curly": "error",
"eqeqeq": ["error", "always"],
"no-unused-expressions": "error",
"no-useless-return": "error",
"no-magic-numbers": ["warn", { "ignore": [0, 1] }],
"@typescript-eslint/no-unsafe-assignment": "error",
"@typescript-eslint/prefer-nullish-coalescing": "error",
"no-path-concat": "error"
}
}