Skip to content

Commit b9384a1

Browse files
committed
refactor: adjust tslint to allow leading underscores and trailing semicolons
1 parent 4cba111 commit b9384a1

File tree

1 file changed

+12
-42
lines changed

1 file changed

+12
-42
lines changed

tslint.json

+12-42
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,25 @@
11
{
22
"extends": "tslint:recommended",
3-
"rulesDirectory": [
4-
"codelyzer"
5-
],
3+
"rulesDirectory": ["codelyzer"],
64
"rules": {
75
"align": {
8-
"options": [
9-
"parameters",
10-
"statements"
11-
]
6+
"options": ["parameters", "statements"]
127
},
138
"array-type": false,
149
"arrow-parens": false,
1510
"arrow-return-shorthand": true,
1611
"deprecation": {
1712
"severity": "warning"
1813
},
19-
"import-blacklist": [
20-
true,
21-
"rxjs/Rx"
22-
],
14+
"import-blacklist": [true, "rxjs/Rx"],
2315
"curly": true,
2416
"interface-name": false,
2517
"max-classes-per-file": false,
2618
"eofline": true,
27-
"max-line-length": [
28-
true,
29-
140
30-
],
19+
"max-line-length": [true, 140],
3120
"import-spacing": true,
3221
"indent": {
33-
"options": [
34-
"spaces"
35-
]
22+
"options": ["spaces"]
3623
},
3724
"member-access": false,
3825
"member-ordering": [
@@ -47,33 +34,17 @@
4734
}
4835
],
4936
"no-consecutive-blank-lines": false,
50-
"no-console": [
51-
true,
52-
"debug",
53-
"info",
54-
"time",
55-
"timeEnd",
56-
"trace"
57-
],
37+
"no-console": [true, "debug", "info", "time", "timeEnd", "trace"],
5838
"no-empty": false,
59-
"no-inferrable-types": [
60-
true,
61-
"ignore-params"
62-
],
39+
"no-inferrable-types": [true, "ignore-params"],
6340
"no-non-null-assertion": true,
6441
"no-redundant-jsdoc": true,
6542
"no-switch-case-fall-through": true,
6643
"no-var-requires": false,
67-
"object-literal-key-quotes": [
68-
true,
69-
"as-needed"
70-
],
44+
"object-literal-key-quotes": [true, "as-needed"],
7145
"object-literal-sort-keys": false,
7246
"ordered-imports": false,
73-
"quotemark": [
74-
true,
75-
"single"
76-
],
47+
"quotemark": [true, "single"],
7748
"trailing-comma": false,
7849
"component-class-suffix": true,
7950
"contextual-lifecycle": true,
@@ -86,9 +57,7 @@
8657
"no-output-on-prefix": true,
8758
"no-output-rename": true,
8859
"semicolon": {
89-
"options": [
90-
"always"
91-
]
60+
"options": ["always", "ignore-bound-class-methods"]
9261
},
9362
"space-before-function-paren": {
9463
"options": {
@@ -126,7 +95,8 @@
12695
"options": [
12796
"ban-keywords",
12897
"check-format",
129-
"allow-pascal-case"
98+
"allow-pascal-case",
99+
"allow-leading-underscore"
130100
]
131101
},
132102
"whitespace": {

0 commit comments

Comments
 (0)