forked from moodle/moodlenet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
31 lines (31 loc) · 797 Bytes
/
.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
{
"extends": [".eslintrc-base"],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"@typescript-eslint/ban-ts-comment": [
"error",
{
// "^\\s+ts\\(\\d+\\)\\s+because .+$"
"ts-ignore": { "descriptionFormat": "^\\s+because .+$" },
"ts-nocheck": { "descriptionFormat": "^\\s+because .+$" },
"ts-expect-error": { "descriptionFormat": "^\\s+because .+$" }
}
],
"@typescript-eslint/consistent-type-imports": [
"error",
{
"prefer": "type-imports",
"disallowTypeAnnotations": true,
"fixStyle": "separate-type-imports"
}
],
"@typescript-eslint/consistent-type-exports": [
"error",
{
"fixMixedExportsWithInlineTypeSpecifier": true
}
]
}
}