Skip to content

Commit 956381c

Browse files
authored
Merge pull request #337 from whyboris/codelyzer-bump
bump tslint & codelyzer versions, update tslint rules & alphabetize
2 parents acf0d4f + 096e7a9 commit 956381c

File tree

2 files changed

+25
-65
lines changed

2 files changed

+25
-65
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"rxjs": "6.5.2",
7575
"spectron": "5.0.0",
7676
"ts-node": "7.0.1",
77-
"tslint": "5.11.0",
77+
"tslint": "5.17.0",
7878
"typescript": "3.4.5",
7979
"wait-on": "3.2.0",
8080
"webdriver-manager": "12.1.0",

tslint.json

+24-64
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,23 @@
11
{
2-
"rulesDirectory": [
3-
"node_modules/codelyzer"
4-
],
2+
"rulesDirectory": ["node_modules/codelyzer"],
53
"rules": {
64
"arrow-return-shorthand": true,
75
"callable-types": true,
86
"class-name": true,
9-
"comment-format": [
10-
true,
11-
"check-space"
12-
],
7+
"comment-format": [true, "check-space"],
8+
"component-class-suffix": true,
9+
"component-selector": [true, "element", "app", "kebab-case"],
1310
"curly": true,
14-
"deprecation": {
15-
"severity": "warn"
16-
},
11+
"deprecation": { "severity": "warn" },
12+
"directive-class-suffix": true,
1713
"eofline": true,
1814
"forin": true,
19-
"import-blacklist": [
20-
true,
21-
"rxjs/Rx"
22-
],
15+
"import-blacklist": [true, "rxjs/Rx"],
2316
"import-spacing": true,
24-
"indent": [
25-
true,
26-
"spaces"
27-
],
17+
"indent": [true, "spaces"],
2818
"interface-over-type-literal": true,
2919
"label-position": true,
30-
"max-line-length": [
31-
true,
32-
140
33-
],
20+
"max-line-length": [true, 140],
3421
"member-access": false,
3522
"member-ordering": [
3623
true,
@@ -45,34 +32,29 @@
4532
],
4633
"no-arg": true,
4734
"no-bitwise": true,
48-
"no-console": [
49-
true,
50-
"debug",
51-
"info",
52-
"time",
53-
"timeEnd",
54-
"trace"
55-
],
35+
"no-console": [true, "debug", "info", "time", "timeEnd", "trace"],
5636
"no-construct": true,
5737
"no-debugger": true,
5838
"no-duplicate-super": true,
5939
"no-empty": false,
6040
"no-empty-interface": true,
6141
"no-eval": true,
62-
"no-inferrable-types": [
63-
true,
64-
"ignore-params"
65-
],
42+
"no-host-metadata-property": true,
43+
"no-inferrable-types": [true, "ignore-params"],
44+
"no-input-rename": true,
45+
"no-inputs-metadata-property": true,
6646
"no-misused-new": true,
6747
"no-non-null-assertion": true,
48+
"no-output-on-prefix": true,
49+
"no-output-rename": true,
50+
"no-outputs-metadata-property": true,
6851
"no-shadowed-variable": true,
6952
"no-string-literal": false,
7053
"no-string-throw": true,
7154
"no-switch-case-fall-through": true,
7255
"no-trailing-whitespace": true,
7356
"no-unnecessary-initializer": true,
7457
"no-unused-expression": true,
75-
"no-use-before-declare": true,
7658
"no-var-keyword": true,
7759
"object-literal-sort-keys": false,
7860
"one-line": [
@@ -83,19 +65,10 @@
8365
"check-whitespace"
8466
],
8567
"prefer-const": true,
86-
"quotemark": [
87-
true,
88-
"single"
89-
],
68+
"quotemark": [true, "single"],
9069
"radix": true,
91-
"semicolon": [
92-
true,
93-
"always"
94-
],
95-
"triple-equals": [
96-
true,
97-
"allow-null-check"
98-
],
70+
"semicolon": [true, "always"],
71+
"triple-equals": [true, "allow-null-check"],
9972
"typedef-whitespace": [
10073
true,
10174
{
@@ -107,6 +80,9 @@
10780
}
10881
],
10982
"unified-signatures": true,
83+
"use-life-cycle-interface": true,
84+
"use-lifecycle-interface": true,
85+
"use-pipe-transform-interface": true,
11086
"variable-name": false,
11187
"whitespace": [
11288
true,
@@ -115,22 +91,6 @@
11591
"check-operator",
11692
"check-separator",
11793
"check-type"
118-
],
119-
"component-selector": [
120-
true,
121-
"element",
122-
"app",
123-
"kebab-case"
124-
],
125-
"no-output-on-prefix": true,
126-
"no-inputs-metadata-property": true,
127-
"no-outputs-metadata-property": true,
128-
"no-host-metadata-property": true,
129-
"no-input-rename": true,
130-
"no-output-rename": true,
131-
"use-lifecycle-interface": true,
132-
"use-pipe-transform-interface": true,
133-
"component-class-suffix": true,
134-
"directive-class-suffix": true
94+
]
13595
}
13696
}

0 commit comments

Comments
 (0)