-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtslint.js
75 lines (73 loc) · 2 KB
/
tslint.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
63
64
65
66
67
68
69
70
71
72
73
74
75
const path = require('path');
module.exports = {
rules: {
typedef: [
true,
"call-signature",
"arrow-call-signature",
"parameter",
"arrow-parameter",
"property-declaration",
"member-variable-declaration",
"object-destructuring",
"array-destructuring"
],
"unified-signatures": true,
"no-internal-module": true,
"no-namespace": true,
"no-reference": true,
"no-this-assignment": true,
"no-var-requires": true,
"prefer-for-of": true,
"prefer-readonly": true,
"promise-function-async": true,
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace",
},
{
"call-signature": "onespace",
"index-signature": "onespace",
"parameter": "onespace",
"property-declaration": "onespace",
"variable-declaration": "onespace",
},
],
"unified-signatures": true,
"max-classes-per-file": [true, 1],
"semicolon": [true, "always"],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-module",
"check-separator",
"check-type",
"check-typecast",
"check-preblock",
"check-type-operator",
"check-rest-spread",
],
"eofline": true,
"no-consecutive-blank-lines": true,
"quotemark": [true, "single", "jsx-single"],
"curly": [true, "ignore-same-line"],
"no-duplicate-switch-case": true,
"no-duplicate-super": true,
"triple-equals": [true, "allow-undefined-check", "allow-null-check"],
"prefer-const": [true, {"destructuring": "all"}],
"arrow-parens": true,
"arrow-return-shorthand": [true, "multiline"],
"class-name": true,
"no-trailing-whitespace": [true, "ignore-comments", "ignore-jsdoc", "ignore-blank-lines", "ignore-template-strings"]
},
rulesDirectory: [
path.join(path.dirname(require.resolve('tslint-config-airbnb')), './')
],
};