-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.eslintrc.json
52 lines (52 loc) · 1.25 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
{
"env": {
"browser": false,
"es2021": true
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["tsconfig.eslint.json"],
"ecmaVersion": 2022
},
"rules": {
"@typescript-eslint/no-floating-promises": "warn",
"class-methods-use-this": "warn",
"complexity": ["warn", { "max": 10 }],
"consistent-this": "warn",
"eqeqeq": "error",
"max-depth": ["warn", { "max": 3 }],
"max-nested-callbacks": ["warn", { "max": 4 }],
"max-params": ["warn", { "max": 4 }],
"max-statements": ["warn", { "max": 20 }, { "ignoreTopLevelFunctions": true }],
"no-invalid-this": "warn"
},
"overrides": [
{
"files": ["*.test.ts"],
"rules": {
"max-nested-callbacks": ["warn", { "max": 8 }]
}
},
{
"files": ["*.ts"],
"excludedFiles": "*.test.ts",
"rules": {
"@typescript-eslint/explicit-function-return-type": "warn"
}
}
],
"plugins": ["@typescript-eslint"],
"ignorePatterns": [
"src/templates",
"node_modules",
"dist",
"hack",
"pepr-test-module",
"build.mjs",
"journey",
"__mocks__",
"integration/testroot"
],
"root": true
}