Skip to content

Commit 6ed1c23

Browse files
committed
v1.12.1
1 parent f46061a commit 6ed1c23

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# 1.12.1
2+
3+
**Bugfixes:**
4+
5+
* `no-unnecessary-type-annotations` now recognizes IIFEs that look like `(function(param: string) {}('parameter'));`
6+
17
# 1.12.0
28

39
**Features:**

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tslint-consistent-codestyle",
3-
"version": "1.12.0",
3+
"version": "1.12.1",
44
"description": "Additional rules to enforce constistent code style with tslint",
55
"repository": {
66
"type": "git",

test/rules/no-unnecessary-type-annotation/default/test.ts.lint

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ take<((a: string) => string) | ((a: string) => number)>((a: string): string => a
5959
~~~~~~~~ [fail]
6060
(function(foo: string) {}("foo"));
6161
~~~~~~~~ [fail]
62+
foo8 = function(foo: string)(foo8);
63+
~~~~~~~~ [fail]
6264
(function(foo): void {})("foo");
6365
(function(foo?): void {})("foo");
6466
(function(param: string, ...foo: string[]) {})("foo", "bar", "baz");

0 commit comments

Comments
 (0)