-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy path.eslintrc
111 lines (111 loc) · 3.12 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
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
106
107
108
109
110
111
{
"env": {
"browser": true,
"es6": true,
"mocha": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"airbnb-base",
"plugin:prettier/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"project": "./tsconfig.json",
"createDefaultProgram": true
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/indent": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"import/extensions": "off",
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": "off",
"import/order": [
"error",
{
"groups": [
"builtin",
"external",
"internal",
["parent", "sibling", "index"]
],
"newlines-between": "always-and-inside-groups"
}
],
"class-methods-use-this": "off",
"max-len": "off",
"no-unused-vars": "error",
"no-console": "error",
"no-undef": "error",
"no-underscore-dangle": "off",
"no-useless-constructor": "off",
"no-empty-function": "off"
},
"settings": {
"import/resolver": {
"node": {
"paths": ["src", "test"],
"extensions": [
".ts"
]
}
},
"import/parsers": {
"@typescript-eslint/parser": [
".ts"
]
}
},
"overrides": [
{
"files": [ "src/ui/**/*" ],
"rules": {
"no-restricted-imports": ["error", {
"patterns": ["dependency", "infrastructure"]
}]
}
},
{
"files": [ "src/infrastructure/**/*" ],
"rules": {
"no-restricted-imports": ["error", {
"patterns": ["dependency", "ui"]
}]
}
},
{
"files": [ "src/core/**/*" ],
"rules": {
"no-restricted-imports": ["error", {
"patterns": ["dependency", "ui", "infrastructure"]
}]
}
},
{
"files": [ "src/core/domainServices/**/*" ],
"rules": {
"no-restricted-imports": ["error", {
"patterns": ["dependency", "ui", "infrastructure", "applicationServices"]
}]
}
},
{
"files": [ "src/core/domain/**/*" ],
"rules": {
"no-restricted-imports": ["error", {
"patterns": ["dependency", "ui", "infrastructure", "applicationServices", "domainServices"]
}]
}
}
]
}