-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
30 lines (30 loc) · 834 Bytes
/
.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
{
"plugins": ["@typescript-eslint"],
"extends": ["plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"],
"parser": "@typescript-eslint/parser",
"reportUnusedDisableDirectives": true,
"rules": {
"no-confusing-arrow": "error",
"arrow-body-style": ["error", "as-needed"],
"no-useless-constructor": "error",
"no-dupe-class-members": "error",
"no-iterator": "error",
"no-restricted-properties": [
2,
{
"object": "require"
}
],
"prefer-const": "error",
"one-var": ["error", "never"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"no-else-return": "error",
"@typescript-eslint/consistent-type-imports": [
"error",
{
"prefer": "type-imports",
"disallowTypeAnnotations": true
}
]
}
}