-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.eslintrc.json
52 lines (51 loc) · 1.53 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
{
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nx"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allowCircularSelfDependency": true,
"banTransitiveDependencies": true,
"allow": [
// Exception due to issue in tailwind alias import with Nx structure
// https://github.com/tailwindlabs/tailwindcss/issues/11097
"../ui/src/tailwind-preset",
// `@/domain` imports are used as a library but exists inside the `backend` application.
// We explicitely allow our front apps to be allowed to reference it.
"@/domain"
],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
],
"@typescript-eslint/no-unused-vars": [
"error",
// var { foo, ...rest } = data;
// 'foo' is ignored because it have a rest property sibling.
// https://eslint.org/docs/latest/rules/no-unused-vars#ignorerestsiblings
{ "ignoreRestSiblings": true }
]
}
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nx/typescript"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nx/javascript"],
"rules": {}
}
]
}