forked from sgohlke/stryker-log-ignorer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
70 lines (70 loc) · 2.28 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
65
66
67
68
69
70
{
"env": {
"node": true,
"commonjs": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:unicorn/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:security/recommended-legacy"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"project": "**/tsconfig.json"
},
"plugins": [
"@typescript-eslint/eslint-plugin",
"unicorn",
"import",
"deprecation"
],
"rules": {
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/class-literal-property-style": "error",
"@typescript-eslint/consistent-indexed-object-style": "error",
"@typescript-eslint/naming-convention": "error",
"@typescript-eslint/consistent-type-definitions": [
"error",
"interface"
],
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/no-confusing-non-null-assertion": "error",
"@typescript-eslint/no-non-null-asserted-nullish-coalescing": "error",
"@typescript-eslint/parameter-properties": "error",
"@typescript-eslint/non-nullable-type-assertion-style": "error",
"@typescript-eslint/prefer-includes": "error",
"@typescript-eslint/require-await": "error",
"no-await-in-loop": "error",
"multiline-comment-style": ["error", "starred-block"],
"no-inline-comments": "error",
"unicorn/filename-case": [
"error",
{
"case": "pascalCase",
"ignore": ["GraphQL", "\\.config\\.ts$", "\\.test\\.ts$"]
}
],
"unicorn/custom-error-definition": "error",
"unicorn/no-unsafe-regex": "error",
"unicorn/no-unused-properties": "error",
"unicorn/prefer-at": "error",
"import/no-internal-modules": [
"error",
{
"allow": ["graphql/**"]
}
],
"import/no-unresolved": 0,
"deprecation/deprecation": "error"
}
}