-
Notifications
You must be signed in to change notification settings - Fork 16
/
.eslintrc.js
62 lines (62 loc) · 2.02 KB
/
.eslintrc.js
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
61
62
module.exports = {
parser: `@typescript-eslint/parser`,
parserOptions: {
ecmaVersion: 12,
project: [`./tsconfig.json`],
},
env: {
browser: false,
mocha: true,
node: true,
},
plugins: [`@typescript-eslint`, `prettier`],
extends: [
// "standard",
`eslint:recommended`,
`plugin:node/recommended`,
`plugin:@typescript-eslint/recommended`,
`plugin:@typescript-eslint/recommended-requiring-type-checking`,
`plugin:prettier/recommended`, // prettier must be last
],
root: true,
rules: {
"prettier/prettier": `error`,
"arrow-body-style": `off`,
"prefer-arrow-callback": `off`,
quotes: [`error`, `backtick`],
"node/no-unsupported-features/es-syntax": `off`,
"node/no-extraneous-import": `off`,
"node/no-missing-import": `off`,
"node/no-unpublished-import": `off`,
"@typescript-eslint/restrict-template-expressions": `off`,
"@typescript-eslint/explicit-function-return-type": `error`,
"@typescript-eslint/no-unsafe-assignment": `off`,
"@typescript-eslint/no-unsafe-call": `off`,
"@typescript-eslint/no-unsafe-member-access": `off`,
"@typescript-eslint/no-unsafe-argument": `off`,
"@typescript-eslint/no-unsafe-return": `off`,
"@typescript-eslint/no-floating-promises": [
`error`,
{
ignoreIIFE: true,
ignoreVoid: true,
},
],
"@typescript-eslint/no-inferrable-types": `off`,
"@typescript-eslint/no-unused-vars": [
`warn`,
{
argsIgnorePattern: `_`,
varsIgnorePattern: `_`,
},
],
"@typescript-eslint/unbound-method": `off`,
"@typescript-eslint/no-misused-promises": [
`error`,
{
checksVoidReturn: false,
},
],
"@typescript-eslint/no-non-null-assertion": `off`,
},
};