-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.json
47 lines (47 loc) · 1.35 KB
/
.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
"root": true,
"plugins": ["eslint-plugin-expect-type", "prefer-arrow", "jest"],
"parserOptions": {
// Required by eslint-plugin-expect-type.
"project": "./tsconfig.json"
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/base",
"plugin:@typescript-eslint/eslint-recommended",
"prettier",
"plugin:eslint-plugin-expect-type/recommended",
"plugin:eslint-comments/recommended"
],
"rules": {
// Rules that prevent unused code.
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{ "ignoreRestSiblings": true }
],
"eslint-comments/no-unused-disable": "error",
"no-useless-rename": "error",
"object-shorthand": "error",
"no-constant-condition": "off",
"@typescript-eslint/no-unnecessary-condition": [
"error",
{ "allowConstantLoopConditions": true }
],
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"jest/no-disabled-tests": "error",
"jest/no-focused-tests": "error",
// Consistency rules.
"prefer-arrow/prefer-arrow-functions": "error",
"arrow-body-style": "error",
"no-restricted-syntax": [
"error",
{
"selector": "ExportDefaultDeclaration",
"message": "Prefer named exports"
}
],
"curly": "error"
}
}