-
Notifications
You must be signed in to change notification settings - Fork 78
/
Copy pathtslint.json
122 lines (122 loc) · 3.26 KB
/
tslint.json
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
{
"extends": [
"tslint:latest",
"tslint-react",
"tslint-microsoft-contrib/recommended_ruleset",
"tslint-require-connnect-typing",
"tslint-config-prettier"
],
"rulesDirectory": [
"node_modules/tslint-microsoft-contrib",
"node_modules/tslint-require-connnect-typing"
],
"rules": {
"import-blacklist": [true, ["^antd$", "^antd/es.*"]],
"react-no-dangerous-html": [
true,
[
{
"file": "src/shared/wallet/download-keystore-form.tsx",
"method": "render",
"comment": "Usage has been approved by Tian on 2019-04-30 19:10"
},
{
"file": "src/shared/wallet/new-wallet.tsx",
"method": "renderSaveMnemonic",
"comment": "Usage has been approved by Tian on 2019-08-30 15:56"
}
]
],
"no-object-literal-type-assertion": false,
"no-null-keyword": false,
"no-for-in-array": [false],
"restrict-plus-operands": [false],
"no-floating-promises": false,
"promise-function-async": false,
"no-unnecessary-qualifier": false,
"no-void-expression": false,
"await-promise": false,
"no-require-imports": false,
"no-duplicate-imports": false,
"no-shadowed-variable": false,
"no-import-side-effect": false,
"no-reserved-keywords": false,
"react-this-binding-issue": false,
"no-submodule-imports": false,
"quotemark": [true, "double", "jsx-double"],
"max-classes-per-file": false,
"interface-name": false,
"missing-jsdoc": false,
"no-unused-variable": false,
"no-default-export": false,
"no-relative-imports": false,
"no-empty-interfaces": false,
"import-name": false,
"export-name": false,
"react-tsx-curly-spacing": [
true,
"never",
{
"allowMultiline": true
}
],
"array-type": [true, "generic"],
"prefer-array-literal": [
true,
{
"allow-type-parameters": true
}
],
"prefer-for-of": false,
"no-increment-decrement": false,
"no-backbone-get-set-outside-model": false,
"prefer-type-cast": false,
"no-angle-bracket-type-assertion": true,
"no-empty-interface": false,
"variable-name": [
true,
"check-format",
"allow-pascal-case",
"ban-keywords",
"allow-snake-case"
],
"function-name": [
true,
{
"function-regex": "^[a-z][\\w\\d]+|[A-Z][\\w\\d]+$",
"static-method-regex": "^[a-z][\\w\\d]+$"
}
],
"space-before-function-paren": [
true,
{
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}
],
"typedef": [
true,
"call-signature",
"parameter",
"property-declaration",
"member-variable-declaration"
],
"member-ordering": false,
"strict-boolean-expressions": false,
"no-unsafe-any": false,
"completed-docs": false,
"newline-before-return": false,
"match-default-export-name": false,
"no-implicit-dependencies": false,
"no-suspicious-comment": false,
"no-use-before-declare": false,
"react-unused-props-and-state": false,
"jsx-no-lambda": false
},
"jsRules": {
"quotemark": [true, "double", "jsx-double"],
"max-classes-per-file": false,
"no-unused-variable": false
}
}