-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
105 lines (105 loc) · 3.02 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nrwl/nx"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nrwl/nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
]
}
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nrwl/nx/typescript"],
"rules": {
"@typescript-eslint/explicit-member-accessibility": [
"error",
{
"overrides": {
"constructors": "no-public",
"methods": "no-public",
"accessors": "no-public"
}
}
],
"@typescript-eslint/explicit-function-return-type": [
"error",
{
"allowExpressions": true,
"allowTypedFunctionExpressions": true,
"allowHigherOrderFunctions": true,
"allowDirectConstAssertionInArrowFunctions": true
}
],
"@typescript-eslint/no-unused-vars": ["error"],
"@typescript-eslint/prefer-readonly": 2,
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/comma-dangle": ["error", "always-multiline"],
"@typescript-eslint/explicit-module-boundary-types": ["error"],
"@typescript-eslint/member-ordering": ["error"],
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "variableLike",
"format": ["strictCamelCase"]
},
{
"selector": "property",
"modifiers": ["static"],
"format": ["UPPER_CASE"],
"leadingUnderscore": "forbid"
},
{
"selector": "variable",
"types": ["boolean"],
"format": ["PascalCase"],
"prefix": ["is", "should", "has", "can", "did", "will", "are"]
},
{
"selector": "interface",
"format": ["PascalCase"],
"custom": {
"regex": "^[A-Z]Interface$",
"match": false
}
},
{
"selector": "variable",
"modifiers": ["const"],
"format": ["StrictPascalCase", "strictCamelCase"]
}
]
}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nrwl/nx/javascript"],
"rules": {}
},
{
"files": ["*.test.ts"],
"rules": {
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-unused-vars": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/naming-convention": 0,
"@typescript-eslint/member-ordering": 0,
"@typescript-eslint/ban-types": 0,
"@typescript-eslint/explicit-module-boundary-types": 0
}
}
]
}