This repository has been archived by the owner on Aug 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
strict.js
50 lines (42 loc) · 1.69 KB
/
strict.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
module.exports = {
'extends': ['./tslint'],
'rulesDirectory': [
"./dist"
],
'rules': {
// ------
// TSLint
// ------
// Overridden from default rules
'arrow-parens': [true, 'ban-single-arg-parens'],
'one-variable-per-declaration': true,
'trailing-comma': [true, { 'multiline': { 'objects': 'always', 'arrays': 'always', 'functions': 'never', 'typeLiterals': 'always' }, 'singleline': 'never' }],
'ordered-imports': { 'options': { 'grouped-imports': true, 'import-sources-order': 'lowercase-last', 'named-imports-order': 'lowercase-last' } },
// Overridden from default rules that were re-accepted from recommended (see
// https://github.com/palantir/tslint/blob/2b8a7374cf0fa28e85d95beb40aafd7cb011d157/src/configs/recommended.ts#L18-L204)
'curly': true,
'forin': true,
'no-conditional-assignment': true,
'no-consecutive-blank-lines': true,
'no-console': true,
'no-empty-interface': true,
'no-floating-promises': true,
'no-null-keyword': true,
'no-redundant-jsdoc': true,
'no-unnecessary-type-assertion': true,
'no-unused-expression': true,
'prefer-for-of': true,
'prefer-object-spread': true,
'strict-type-predicates': true,
'await-promise': true,
'strict-boolean-conditions': [true, 'allow-null-union', 'allow-undefined-union', 'allow-boolean-or-undefined']
// TODO: https://github.com/palantir/tslint/issues/3375
// 'no-implicit-dependencies': [true, 'optional'],
// TODO: look at these later
// 'newline-before-return': true,
// 'no-unsafe-any': true,
// 'prefer-method-signature': true,
// 'restrict-plus-operands': true,
// 'strict-type-predicates': true,
},
};