FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

New rule to prevent nested function declaration that causes an issue … · Java1024/ionic@fcfd9fe · GitHub

Repository navigation

Commit fcfd9fe

Browse files
authored andcommitted
New rule to prevent nested function declaration that causes an issue with strict mode
1 parent dca6540 commit fcfd9fe

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

‎package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
"systemjs": "0.19.6",
8181
"through2": "^0.6.3",
8282
"tslint": "^3.7.1",
83+
"tslint-eslint-rules": "^1.2.0",
8384
"typescript": "1.8.7",
8485
"vinyl": "^0.4.6",
8586
"webpack": "^1.12.2",
@@ -90,4 +91,4 @@
9091
"path": "node_modules/ionic-cz-conventional-changelog"
9192
}
9293
}
93-
}
94+
}

‎tslint.json‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"rulesDirectory": "node_modules/tslint-eslint-rules/dist/rules",
23
"rules": {
34
"class-name": true,
45
"comment-format": [
@@ -52,6 +53,10 @@
5253
"check-operator",
5354
"check-separator",
5455
"check-type"
56+
],
57+
"no-inner-declarations": [
58+
true,
59+
"functions"
5560
]
5661
}
5762
}

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL