1 | {
|
2 | "extends": "./tslint.tslint-folders.json",
|
3 | "rules": {
|
4 | "adjacent-overload-signatures": true,
|
5 | "ban-types": false,
|
6 | "member-access": [true, "no-public"],
|
7 | "member-ordering": [true, "static-before-instance"],
|
8 | "no-any": false,
|
9 | "no-empty-interface": true,
|
10 | "no-import-side-effect": false,
|
11 | "no-inferrable-types": false,
|
12 | "no-internal-module": true,
|
13 | "no-magic-numbers": false,
|
14 | "no-namespace": false,
|
15 | "no-non-null-assertion": false,
|
16 | "no-parameter-reassignment": true,
|
17 | "no-reference": true,
|
18 | "no-unnecessary-type-assertion": false, // false positives?
|
19 | "no-var-requires": false,
|
20 | "only-arrow-functions": false,
|
21 | "prefer-for-of": true,
|
22 | "promise-function-async": false,
|
23 | "typedef": false,
|
24 | "unified-signatures": false,
|
25 |
|
26 | // Behaviour:
|
27 | "await-promise": true,
|
28 | "ban-comma-operator": true,
|
29 | "ban": [true, "/node_modules", "/dist"],
|
30 | "curly": [true, "ignore-same-line"],
|
31 | "forin": false,
|
32 | "import-blacklist": false,
|
33 | "label-position": true,
|
34 | "no-arg": true,
|
35 | "no-bitwise": true,
|
36 | "no-conditional-assignment": true,
|
37 | "no-console": false,
|
38 | "no-construct": false,
|
39 | "no-debugger": true,
|
40 | "no-duplicate-super": true,
|
41 | "no-duplicate-switch-case": true,
|
42 | "no-duplicate-variable": true,
|
43 | "no-dynamic-delete": true,
|
44 | "no-empty": true,
|
45 | "no-eval": true,
|
46 | "no-floating-promises": false,
|
47 | "no-for-in-array": true,
|
48 | "no-implicit-dependencies": false,
|
49 | "no-inferred-empty-object-type": true,
|
50 | "no-invalid-template-strings": true,
|
51 | "no-invalid-this": false,
|
52 | "no-misused-new": true,
|
53 | "no-null-keyword": false,
|
54 | "no-object-literal-type-assertion": true,
|
55 | "no-return-await": false,
|
56 | "no-shadowed-variable": true,
|
57 | "no-sparse-arrays": true,
|
58 | "no-string-literal": false,
|
59 | "no-string-throw": true,
|
60 | "no-switch-case-fall-through": true,
|
61 | "no-this-assignment": [true, "allow-destructuring"],
|
62 | "no-unbound-method": false,
|
63 | "no-unnecessary-class": true,
|
64 | "no-unsafe-any": false,
|
65 | "no-unsafe-finally": true,
|
66 | "no-unused-expression": false,
|
67 | "no-unused-variable": false, // buggy in tslint?
|
68 | "no-use-before-declare": false,
|
69 | "no-var-keyword": true,
|
70 | "strict-type-predicates": true,
|
71 | "switch-default": true,
|
72 | "triple-equals": true,
|
73 | "typeof-compare": false, // obsolete
|
74 | "use-default-type-parameter": true,
|
75 | "use-isnan": true,
|
76 |
|
77 | // Code style:
|
78 | "prefer-switch": true,
|
79 | "prefer-template": [true, "allow-single-concat"],
|
80 | "quotemark": [true, "double", "jsx-double", "avoid-escape"],
|
81 |
|
82 | "semicolon": [true, "always", "ignore-bound-class-methods"],
|
83 |
|
84 | "type-literal-delimiter": true,
|
85 | "variable-name": [
|
86 | true,
|
87 | "check-format",
|
88 | "allow-leading-underscore",
|
89 | "ban-keywords"
|
90 | ],
|
91 | "whitespace": [true]
|
92 | }
|
93 | }
|