Skip to content

Commit d8ce49f

Browse files
committed
tslint && badges
1 parent a7d3b29 commit d8ce49f

File tree

5 files changed

+38
-3
lines changed

5 files changed

+38
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ node_modules/
218218

219219
.vscode
220220
.idea
221+
demo/app/.DS_Store
221222
.DS_Store
222223
*.js
223224
*.js.map

demo/app/main-page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const users = [
2323
{ name: "William" },
2424
{ name: "Franklin" }
2525
];
26-
var viewModel = observable.fromObject({
26+
const viewModel = observable.fromObject({
2727
users: new observableArrayModule.ObservableArray(users)
2828
});
2929

demo/app/vendor-platform.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require("application");
22
if (!global["__snapshot"]) {
3-
/*
3+
/*
44
In case snapshot generation is enabled these modules will get into the bundle but will not be required/evaluated.
55
The snapshot webpack plugin will add them to the tns-java-classes.js bundle file. This way, they will be evaluated on app start as early as possible.
66
*/

demo/app/vendor.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
require("./vendor-platform");
2-
32
require("bundle-entry-points");

tslint.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"rules": {
3+
"class-name": true,
4+
"comment-format": [true, "check-space"],
5+
"indent": [true, "spaces"],
6+
"no-duplicate-variable": true,
7+
"no-eval": true,
8+
"no-internal-module": true,
9+
"no-trailing-whitespace": true,
10+
"no-var-keyword": true,
11+
"one-line": [true, "check-open-brace", "check-whitespace"],
12+
"quotemark": [false, "double"],
13+
"semicolon": [true, "always"],
14+
"triple-equals": [true, "allow-null-check"],
15+
"typedef-whitespace": [
16+
true,
17+
{
18+
"call-signature": "nospace",
19+
"index-signature": "nospace",
20+
"parameter": "nospace",
21+
"property-declaration": "nospace",
22+
"variable-declaration": "nospace"
23+
}
24+
],
25+
"variable-name": [true, "ban-keywords"],
26+
"whitespace": [
27+
true,
28+
"check-branch",
29+
"check-decl",
30+
"check-operator",
31+
"check-separator",
32+
"check-type"
33+
]
34+
}
35+
}

0 commit comments

Comments
 (0)