This repository has been archived by the owner on Apr 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.js
54 lines (52 loc) · 1.6 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
49
50
51
52
53
54
module.exports = {
extends: 'tslint-xo',
rules: {
// off
radix: false,
'no-import-side-effect': false,
'no-non-null-assertion': false,
'only-arrow-functions': false,
'newline-before-return': false,
'type-literal-delimiter': false,
'no-http-string': false,
'underscore-consistent-invocation': false,
'await-promise': false,
'no-redundant-jsdoc': false,
'interface-over-type-literal': false,
'no-string-based-set-interval': false,
'early-exit': false,
// on
indent: [true, 'spaces', 2],
semicolon: [true, 'never'],
'max-line-length': [true, 100],
'comment-format': [true, 'check-space'],
'variable-name': [true, 'ban-keywords'],
'object-curly-spacing': [true, 'always'],
'trailing-comma': [true, {
'multiline': {
'objects': 'always',
'arrays': 'always',
'imports': 'always',
'exports': 'always',
'functions': 'always',
'typeLiterals': 'never',
},
'esSpecCompliant': true,
}],
'space-before-function-paren': [true, {
'anonymous': 'never',
'asyncArrow': 'always',
'named': 'never',
'constructor': 'never',
'method': 'never',
}],
// warning
'no-parameter-reassignment': { severity: 'warning' },
'no-unnecessary-type-assertion': { severity: 'warning' },
'promise-function-async': { severity: 'warning' },
'restrict-plus-operands': { severity: 'warning' },
'no-require-imports': { severity: 'warning' },
'no-floating-promises': { severity: 'warning' },
'promise-must-complete': { severity: 'warning' },
},
}