forked from theintern/intern
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
38 lines (38 loc) · 1.39 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["./tsconfig.json"]
},
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"prettier/@typescript-eslint"
],
"rules": {
// TODO: enable this later
"@typescript-eslint/explicit-function-return-type": "off",
// TODO: enable this later
"@typescript-eslint/consistent-type-assertions": "off",
// TODO: enable this later
"@typescript-eslint/no-explicit-any": "off",
// Unwanted (for now)
"@typescript-eslint/no-use-before-define": "off",
// TODO: turn this back on if we add a polyfill or stop supporting IE
"@typescript-eslint/prefer-includes": "off",
// TODO: turn this back on if we add polyfill or stop supporting IE
"@typescript-eslint/prefer-string-starts-ends-with": "off",
// TODO: turn this back on when we're ready to fix all the usages
"@typescript-eslint/no-non-null-assertion": "off",
// The whole point of ts-ignore is to purposefully ignore errors...
"@typescript-eslint/ban-ts-ignore": "off",
// It's OK to return values and ignore them
"@typescript-eslint/no-misused-promises": [
"error",
{ "checksVoidReturn": false }
]
}
}