forked from ionic-team/ionic-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtslint.js
More file actions
39 lines (37 loc) · 1.45 KB
/
tslint.js
File metadata and controls
39 lines (37 loc) · 1.45 KB
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
module.exports = {
"extends": "tslint-ionic-rules",
"rules": {
"adjacent-overload-signatures": true,
"array-type": [true, "array"],
"arrow-parens": [true, "ban-single-arg-parens"],
"arrow-return-shorthand": true,
"deprecation": { "options": true, "severity": "warning" },
"import-spacing": true,
"interface-over-type-literal": true,
"member-access": [true, "no-public"],
"no-consecutive-blank-lines": true,
"no-console": true,
"no-implicit-dependencies": [true, "optional"],
"no-irregular-whitespace": true,
"no-multi-spaces": true,
"no-null-keyword": true,
"no-redundant-jsdoc": true,
"no-reference": true,
"no-return-await": true,
"one-line": [true, "check-catch", "check-finally", "check-else"],
"one-variable-per-declaration": true,
"prefer-object-spread": true,
"space-within-parens": 0,
"trailing-comma": [true, { "multiline": { "objects": "always", "arrays": "always", "functions": "never", "typeLiterals": "always" }, "singleline": "never" }],
// https://github.com/ionic-team/tslint-ionic-rules/commit/065e3e9937104f6ec03e594adf762002616353df
"no-conditional-assignment": true,
"no-unnecessary-type-assertion": true,
"prefer-for-of": true,
// TODO: look at these later
// "newline-before-return": true,
// "no-unsafe-any": true,
// "prefer-method-signature": true,
// "restrict-plus-operands": true,
// "strict-type-predicates": true,
}
};