forked from oxen-io/session-desktop
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tslint.json
101 lines (101 loc) · 3.29 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
{
"defaultSeverity": "error",
"extends": ["tslint:recommended", "tslint-react", "tslint-microsoft-contrib"],
"jsRules": {},
"rules": {
"use-simple-attributes": false,
"align": false,
"newline-per-chained-call": false,
"array-type": [true, "generic"],
"arrow-parens": [true, "ban-single-arg-parens"],
"import-spacing": false,
"indent": [true, "spaces", 2],
"interface-name": [true, "never-prefix"],
"jsx-no-multiline-js": false,
"jsx-no-lambda": false,
"react-this-binding-issue": false,
"linebreak-style": [true, "LF"],
"max-line-length": false,
"mocha-avoid-only": true,
"mocha-no-side-effect-code": false,
"mocha-unneeded-done": true,
"no-angle-bracket-type-assertion": true,
"no-consecutive-blank-lines": [true, 2],
"no-submodule-imports": false,
"object-literal-key-quotes": [true, "as-needed"],
"object-literal-sort-keys": false,
"no-async-without-await": true,
"ordered-imports": [
true,
{
"import-sources-order": "any",
"named-imports-order": "case-insensitive"
}
],
"quotemark": [true, "single", "jsx-double", "avoid-template", "avoid-escape"],
"semicolon": [true, "always", "ignore-bound-class-methods"],
"trailing-comma": [
true,
{
"singleline": "never",
"multiline": {
"objects": "always",
"arrays": "always",
"functions": "never",
"typeLiterals": "always"
},
"esSpecCompliant": true
}
],
"variable-name": [true, "check-format", "allow-leading-underscore", "allow-pascal-case"],
"function-name": [
true,
{
"function-regex": "^(TEST_)?(_)?[a-z][\\w\\d]+$",
"method-regex": "^(TEST_)?(_)?[a-z][\\w\\d]+$",
"private-method-regex": "^(TEST_)?(_)?[a-z][\\w\\d]+$",
"protected-method-regex": "^(TEST_)?(_)?[a-z][\\w\\d]+$",
"static-method-regex": "^[a-zA-Z][\\w\\d]+$"
}
],
"no-implicit-dependencies": [true, ["electron"]],
"completed-docs": false,
"export-name": false,
"no-any": false,
"no-increment-decrement": false,
"no-object-literal-type-assertion": false,
"no-relative-imports": false,
"no-unsafe-any": false,
"typedef": false,
"possible-timing-attack": false,
"no-null-keyword": false,
"import-name": false,
"missing-jsdoc": false,
"no-reserved-keywords": false,
"no-single-line-block-comment": false,
"no-use-before-declare": false,
"prefer-array-literal": false,
"prefer-method-signature": false,
"prefer-type-cast": false,
"strict-boolean-expressions": false,
"no-promise-as-boolean": true,
"await-promise": true,
"no-suspicious-comment": false,
"no-backbone-get-set-outside-model": false,
"underscore-consistent-invocation": false,
"newline-before-return": false,
"number-literal-format": false,
"no-unnecessary-local-variable": false,
"no-unnecessary-type-assertion": false,
"react-no-dangerous-html": [
true,
{
"file": "ts/components/session/SessionHTMLRenderer.tsx",
"method": "<unknown>",
"comment": "Usage has been approved by Maxim on 13 Dec 2019"
}
],
"max-func-body-length": [true, 150]
},
"rulesDirectory": ["node_modules/tslint-microsoft-contrib"]
}