Skip to content

Commit d298152

Browse files
author
ajie
committed
update v0.2.6
update v0.2.6
1 parent 5e62bd8 commit d298152

File tree

4 files changed

+35
-24
lines changed

4 files changed

+35
-24
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rxemitter",
3-
"version": "0.2.5",
3+
"version": "0.2.6",
44
"description": "rxemitter = rxjs + eventbus",
55
"main": "index.js",
66
"scripts": {

src/rxemitter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,5 +123,5 @@ export interface ICacheObj<T> {
123123

124124
function guid(): string {
125125
return 'xxxxxx-xxxx-4xxx-yxxx-xxxxxx'.
126-
replace(/[xy]/g, c => { var r = Math.random() * 16 | 0, v = c == 'x' ? r : r & 0x3 | 0x8; return v.toString(16); });
126+
replace(/[xy]/g, c => { let r = Math.random() * 16 | 0, v = c == 'x' ? r : r & 0x3 | 0x8; return v.toString(16); });
127127
}

src/rxsubscribe.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ export function RxSubscribe(a: string | Object, b: boolean | string = false, c:
1515
}
1616

1717
if (eventObj.unsubscribe === true ||
18-
eventObj.unsubscribe == "unsubscribe" ||
19-
eventObj.unsubscribe == "destroy" ||
20-
eventObj.unsubscribe == "off" ||
21-
eventObj.unsubscribe == "remove") {
18+
eventObj.unsubscribe == 'unsubscribe' ||
19+
eventObj.unsubscribe == 'destroy' ||
20+
eventObj.unsubscribe == 'off' ||
21+
eventObj.unsubscribe == 'remove') {
2222

2323
let oldNgOnDestroy = target.ngOnDestroy;
2424

tslint.json

+29-18
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,51 @@
22
"rules": {
33
"curly": true,
44
"eofline": false,
5-
"align": [true, "parameters"],
5+
"align": [
6+
true,
7+
"parameters"
8+
],
69
"class-name": true,
7-
"indent": [true, "spaces"],
8-
"max-line-length": [true, 150],
10+
"indent": [
11+
true,
12+
"spaces"
13+
],
14+
"max-line-length": [
15+
true,
16+
150
17+
],
918
"no-consecutive-blank-lines": true,
1019
"no-trailing-whitespace": true,
1120
"no-duplicate-variable": true,
1221
"no-var-keyword": true,
22+
"ignore-same-line": true,
1323
"no-empty": true,
1424
"no-unused-expression": true,
1525
"no-unused-variable": true,
1626
"no-use-before-declare": true,
1727
"no-var-requires": true,
1828
"no-require-imports": true,
19-
"one-line": [true,
29+
"one-line": [
30+
true,
2031
"check-else",
21-
"check-whitespace",
22-
"check-open-brace"],
23-
"quotemark": [true,
32+
"check-open-brace"
33+
],
34+
"quotemark": [
35+
true,
2436
"single",
25-
"avoid-escape"],
26-
"semicolon": [true, "always"],
27-
"typedef-whitespace": [true, {
28-
"call-signature": "nospace",
29-
"index-signature": "nospace",
30-
"parameter": "nospace",
31-
"property-declaration": "nospace",
32-
"variable-declaration": "nospace"
33-
}],
34-
"whitespace": [true,
37+
"avoid-escape"
38+
],
39+
"semicolon": [
40+
true,
41+
"always"
42+
],
43+
"whitespace": [
44+
true,
3545
"check-branch",
3646
"check-decl",
3747
"check-operator",
3848
"check-separator",
39-
"check-type"]
49+
"check-type"
50+
]
4051
}
4152
}

0 commit comments

Comments
 (0)