-
Notifications
You must be signed in to change notification settings - Fork 2
/
tslint.json
40 lines (40 loc) · 1.44 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
{
"extends": ["tslint:latest", "tslint-config-prettier"],
"rules": {
"no-var-requires": false,
"ordered-imports": false, // already done on save
"no-this-assignment": [
true,
{
"allowed-names": ["^self$"],
"allow-destructuring": true
}
],
"prefer-const": [
true,
{
"destructuring": "all"
}
],
"triple-equals": [true, "allow-undefined-check"],
"max-classes-per-file": false,
"no-implicit-dependencies": false, // fails sometimes
"interface-name": [true, "never-prefix"], // a personal preference
"member-ordering": false, // annoying and not so useful
"no-console": [true, "debug", "info", "time", "timeEnd", "trace"],
"no-submodule-imports": [true, "mz", "@material-ui", "lodash", "asmcrypto.js", "src"],
"object-literal-shorthand": false, // annoying and not so useful
"object-literal-sort-keys": false, // annoying and not so useful
"one-variable-per-declaration": false, // annoying and not so useful
"variable-name": [
true,
"check-format",
"ban-keywords",
"allow-leading-underscore", // for private variables
"allow-pascal-case" // for react components
],
"prefer-conditional-expression": false, // let people write it as they want
"array-type": [true, "array"], // a personal preference
"member-access": [true, "no-public"] // there's no point on writing public if it is the default
}
}