-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy path.eslintrc
60 lines (60 loc) · 1.64 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
{
"env": {
"es6": true,
"jest": true
},
"ignorePatterns": ["dist", "node_modules", "**/*.js"],
"rules": {
"@typescript-eslint/no-floating-promises": ["error"],
"@typescript-eslint/no-require-imports": ["error"],
"@typescript-eslint/no-explicit-any": ["error"],
"@typescript-eslint/no-non-null-assertion": ["error"],
"curly": ["error"],
"no-void": ["error", { "allowAsStatement": true }],
"max-lines": ["error", 100],
"no-plusplus": ["error"],
"import/order": ["error"],
"prefer-template": ["error"],
"import/no-extraneous-dependencies": ["error"],
"import/extensions": [
"error",
"ignorePackages",
{ "js": "never", "ts": "never", "tsx": "never" }
],
"no-restricted-imports": [
"error",
{
"patterns": [
{
"group": ["**/dist/**", "!/**/*.css"],
"message": "Don't import from `dist` directories"
},
{
"group": [
"**/web/src/**",
"**/api/src/**",
"**/shared/src/**",
"**/database/src/**",
"!@hangar/shared"
],
"message": "Don't import across packages; Move to @hangar/shared if necessary"
}
]
}
],
"object-curly-newline": ["off"],
"operator-linebreak": ["off"],
"import/prefer-default-export": ["off"],
"no-await-in-loop": ["off"]
},
"overrides": [
{
"files": ["**/tests/**/*"],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"max-lines": "off"
}
}
]
}