-
Notifications
You must be signed in to change notification settings - Fork 19
/
.eslintrc.json
104 lines (104 loc) · 2.4 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
{
"root": true,
"plugins": ["@nx"],
"extends": ["plugin:@nx/react"],
"parserOptions": {
"sourceType": "module",
"allowImportExportEverywhere": true
},
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"no-var": 2,
"no-console": [1, { "allow": ["warn", "error", "info"] }],
"no-debugger": 2,
"no-empty": [2],
"no-extra-boolean-cast": 2,
"no-extra-semi": 1,
"no-inner-declarations": [2, "functions"],
"no-undef": 2,
"no-unneeded-ternary": 1,
"no-unsafe-negation": 2,
"prefer-const": [1, { "destructuring": "all" }],
"no-unused-vars": 0,
"@typescript-eslint/no-unused-vars": [
1,
{ "ignoreRestSiblings": true }
],
"no-use-before-define": 0,
"@typescript-eslint/no-use-before-define": [
"error",
{
"functions": false,
"classes": false,
"variables": false
}
],
"@nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
]
}
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nx/typescript"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nx/javascript"],
"rules": {}
},
{
"files": [
"**/cypress/**/*.ts",
"**/cypress/**/*.tsx",
"**/cypress/**/*.js",
"**/cypress/**/*.jsx"
],
"extends": ["plugin:cypress/recommended"],
"plugins": ["cypress", "no-only-tests", "@typescript-eslint"],
"env": {
"cypress/globals": true
},
"rules": {
"cypress/unsafe-to-chain-command": 0,
"no-only-tests/no-only-tests": [
1,
{
"fix": true
}
]
}
},
{
"files": [
"*.spec.ts",
"*.spec.tsx",
"*.spec.js",
"*.spec.jsx",
"*.test.ts",
"*.test.tsx",
"*.test.js",
"*.test.jsx"
],
"env": {
"jest": true
},
"rules": {
"@typescript-eslint/no-unused-expressions": 0
}
}
]
}