-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
55 lines (55 loc) · 1.27 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
{
"root": true,
"ignorePatterns": [
"node_modules/*",
"tmp/*",
"dist/*",
"coverage/*",
".nx/*"
],
"parser": "@typescript-eslint/parser",
"plugins": ["@nx", "eslint-plugin-import", "simple-import-sort"],
"extends": ["airbnb", "plugin:@typescript-eslint/recommended", "prettier"],
"rules": {
"@nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
],
// prefer ts rules
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"no-unused-vars": "off",
"no-use-before-define": "off",
// import
"import/no-extraneous-dependencies": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error"
},
"settings": {
"import/resolver": {
"typescript": {
"extensions": [".js", ".jsx", ".ts", ".tsx"],
"project": "**/tsconfig.json"
}
}
}
}