-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
61 lines (59 loc) · 1.72 KB
/
.eslintrc
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
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"env": {
"node": true
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:prettier/recommended"
],
"parserOptions": {
"project": [
"packages/backend/tsconfig.json",
"packages/frontend/tsconfig.json"
]
}
}
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/no-empty-interface": 2,
"@typescript-eslint/no-redundant-type-constituents": 2,
"@typescript-eslint/no-unsafe-assignment": 2,
"@typescript-eslint/no-unsafe-call": 2,
"@typescript-eslint/no-unsafe-member-access": 2,
"@typescript-eslint/no-unsafe-return": 2,
"@typescript-eslint/no-useless-empty-export": 2,
"@typescript-eslint/no-var-requires": 2,
"@typescript-eslint/prefer-nullish-coalescing": 2,
"@typescript-eslint/prefer-optional-chain": 2,
"@typescript-eslint/no-explicit-any": 2,
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
"@typescript-eslint/no-confusing-non-null-assertion": 2,
"@typescript-eslint/no-require-imports": 2,
"camelcase": "off",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "memberLike",
"modifiers": ["private"],
"format": ["camelCase"],
"leadingUnderscore": "require"
},
{
"selector": "typeLike",
"format": ["PascalCase"]
}
]
}
}