-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
48 lines (48 loc) · 1.17 KB
/
index.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
module.exports = {
extends: 'standard-with-typescript',
rules: {
// Take advantage of type inference
'@typescript-eslint/explicit-function-return-type': 'off',
// Temporarily disable this rule
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/no-unused-vars': 'error',
// Forbids `any` in _falsy_ expressions
'@typescript-eslint/strict-boolean-expressions': [
'error',
{
allowAny: false,
allowNullableBoolean: true,
allowNullableNumber: true,
allowNullableObject: true,
allowNullableString: true,
allowNumber: true,
allowString: true,
},
],
'@typescript-eslint/switch-exhaustiveness-check': 'error',
'comma-dangle': [
'error',
'always-multiline',
],
'max-len': [
'error',
{
code: 120,
ignoreComments: true,
ignoreRegExpLiterals: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
ignoreUrls: true,
tabWidth: 4,
},
],
'no-unused-vars': 'off',
'sort-keys': [
'error',
'asc',
{
caseSensitive: false,
},
],
},
}