generated from okp4/template-oss
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
56 lines (56 loc) · 1.41 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
{
"extends": ["@okp4"],
"plugins": ["import"],
"settings": {
"import/extensions": [".ts", ".tsx"],
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {},
"alias": {
"map": [["@", "./src"]]
}
}
},
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"react/react-in-jsx-scope": 0,
"import/no-unresolved": ["error"],
"import/default": 0,
"import/extensions": [
"warn",
"never",
{
"svg": "always",
"json": "always"
}
],
"import/no-restricted-paths": [
"error",
{
"zones": [
{
"target": "./src/util",
"from": ".",
"except": ["./src/util", "./node_modules"],
"message": "Package 'util' is not allowed to import from any path except 'util' itself."
},
{
"target": "./src/domain",
"from": ".",
"except": ["./src/domain", "./src/util", "./src/shared", "./node_modules"],
"message": "Package 'domain' is not allowed to import from any path except 'util', 'shared' or itself."
},
{
"target": "./src/ui",
"from": "./src/domain/**/entity.ts",
"message": "Package 'ui' is not allowed to import entities from 'domain'."
}
]
}
]
}
}