From fac3e0d6212436171fce8f0032c2402a9fa759c6 Mon Sep 17 00:00:00 2001 From: Noah Chen Date: Mon, 23 Jan 2017 14:47:21 -0500 Subject: [PATCH 1/6] Prepare for v4.4.0 --- CHANGELOG.md | 30 ++++++++++++++++++++++++++++++ package.json | 2 +- src/linter.ts | 2 +- 3 files changed, 32 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 461b11e5964..0e7466c632c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,36 @@ Change Log === +v4.4.0 +--- + +* [new-rule] `arrow-return-shorthand` (#1972) +* [new-rule] `no-unbound-method` (#2089) +* [new-rule] `no-boolean-literal-compare` (#2013) +* [new-rule] `no-unsafe-any` (#2047) +* [new-rule] `no-unnecessary-qualifier` (#2008) +* [new-rule] `no-unnecessary-initializer` (#2106) +* [new-rule] `await-promise` (#2102) +* [new-rule] `no-floating-promises` (#1632) +* [new-rule] `strict-type-predicates` (#2046) +* [new-rule] `misused-new` (#1963) +* [new-rule] `prefer-method-signature` (#2028) +* [new-rule] `prefer-function-over-method` (#2037) +* [new-rule-option] `allow-fast-null-checks` added to `no-unused-expression` (#1638) +* [new-rule-option] `comment-format-rule` adds `ignore-words` and `ignore-pattern` options (#1757) +* [new-rule-option] `whitespace` adds `check-preblock` option (#2002) +* [new-rule-option] `member-ordering` adds categories, allowing flexible ordering of different types of members (#2041) +* [new-rule-option] `strict-boolean-expressions` adds `allow-null-union`, `allow-undefined-union`, `allow-string`, and `allow-number` and (#2033) +* [new-fixer] `align` (#2097) +* [bugfix] `no-magic-numbers` false positive on default parameter values (#2004) +* [bugfix] `no-empty-interface` allow empty interface with 2 or more parents (#2070) +* [bugfix] `no-trailing-whitespace` fixed for comments and EOF (#2060) +* [bugfix] `no-empty` no longer fails for private or protected constructor +* [bugfix] `tslint:disable`/`tslint-enable` now handles multiple rules and fixes what code is enabled/disabled (#2061) +* [bugfix] `no-inferrable-types` now validates property declarations (#2081) +* [bugfix] `unified-signatures` false positive (#2016) +* [enhancement] `--test` option now accepts glob + v4.3.1 --- diff --git a/package.json b/package.json index c02636f7e09..7d01bd664ac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tslint", - "version": "4.3.1", + "version": "4.4.0", "description": "An extensible static analysis linter for the TypeScript language", "bin": { "tslint": "./bin/tslint" diff --git a/src/linter.ts b/src/linter.ts index e1a7c007176..994e5305a08 100644 --- a/src/linter.ts +++ b/src/linter.ts @@ -43,7 +43,7 @@ import { arrayify, dedent } from "./utils"; * Linter that can lint multiple files in consecutive runs. */ class Linter { - public static VERSION = "4.3.1"; + public static VERSION = "4.4.0"; public static findConfiguration = findConfiguration; public static findConfigurationPath = findConfigurationPath; From 55b1e25c93b1364a34125e241c92e70e1c86bff4 Mon Sep 17 00:00:00 2001 From: Noah Chen Date: Wed, 25 Jan 2017 00:07:21 -0500 Subject: [PATCH 2/6] Address comments --- CHANGELOG.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e7466c632c..3cdea744c9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,14 +22,17 @@ v4.4.0 * [new-rule-option] `member-ordering` adds categories, allowing flexible ordering of different types of members (#2041) * [new-rule-option] `strict-boolean-expressions` adds `allow-null-union`, `allow-undefined-union`, `allow-string`, and `allow-number` and (#2033) * [new-fixer] `align` (#2097) +* [new-fixer] `no-trailing-whitespace` (#2060) * [bugfix] `no-magic-numbers` false positive on default parameter values (#2004) * [bugfix] `no-empty-interface` allow empty interface with 2 or more parents (#2070) * [bugfix] `no-trailing-whitespace` fixed for comments and EOF (#2060) -* [bugfix] `no-empty` no longer fails for private or protected constructor +* [bugfix] `no-empty` no longer fails for private or protected constructor (#1976) * [bugfix] `tslint:disable`/`tslint-enable` now handles multiple rules and fixes what code is enabled/disabled (#2061) * [bugfix] `no-inferrable-types` now validates property declarations (#2081) * [bugfix] `unified-signatures` false positive (#2016) -* [enhancement] `--test` option now accepts glob +* [bugfix] `whitespace` finds all whitespace errors in JsxExpressions and TemplateExpressions (#2036) +* [bugfix] `comment-format` no more false positives in JsxText (#2036) +* [enhancement] `--test` option now accepts glob (#2079) v4.3.1 --- From 3f6275049e6c4746bd1c1fcbf4688b7d02b4161b Mon Sep 17 00:00:00 2001 From: Noah Chen Date: Wed, 25 Jan 2017 00:27:19 -0500 Subject: [PATCH 3/6] Update latest.ts --- CHANGELOG.md | 2 +- src/configs/latest.ts | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3cdea744c9f..68e5a3e40a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,7 +13,7 @@ v4.4.0 * [new-rule] `await-promise` (#2102) * [new-rule] `no-floating-promises` (#1632) * [new-rule] `strict-type-predicates` (#2046) -* [new-rule] `misused-new` (#1963) +* [new-rule] `no-misused-new` (#1963) * [new-rule] `prefer-method-signature` (#2028) * [new-rule] `prefer-function-over-method` (#2037) * [new-rule-option] `allow-fast-null-checks` added to `no-unused-expression` (#1638) diff --git a/src/configs/latest.ts b/src/configs/latest.ts index 94149b8a8cd..6fac7de000f 100644 --- a/src/configs/latest.ts +++ b/src/configs/latest.ts @@ -47,6 +47,20 @@ export const rules = { }], "typeof-compare": true, "unified-signatures": true, + + // added in v4.4 + "arrow-return-shorthand": true, + "no-unbound-method": true, + "no-boolean-literal-compare": true, + "no-unsafe-any": true, + "no-unnecessary-qualifier": true, + "no-unnecessary-initializer": true, + "await-promise": true, + "no-floating-promises": true, + "strict-type-predicates": true, + "no-misused-new ": true, + "prefer-method-signature": true, + "prefer-function-over-method": false, }; // tslint:enable object-literal-sort-keys From 3fb63ecf76da366019e9fdbb4e72e5c7342d6122 Mon Sep 17 00:00:00 2001 From: Noah Chen Date: Wed, 25 Jan 2017 12:50:38 -0500 Subject: [PATCH 4/6] remove typed rules --- src/configs/latest.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/configs/latest.ts b/src/configs/latest.ts index 6fac7de000f..a8466bbdf7b 100644 --- a/src/configs/latest.ts +++ b/src/configs/latest.ts @@ -50,14 +50,7 @@ export const rules = { // added in v4.4 "arrow-return-shorthand": true, - "no-unbound-method": true, - "no-boolean-literal-compare": true, - "no-unsafe-any": true, - "no-unnecessary-qualifier": true, "no-unnecessary-initializer": true, - "await-promise": true, - "no-floating-promises": true, - "strict-type-predicates": true, "no-misused-new ": true, "prefer-method-signature": true, "prefer-function-over-method": false, From 9438f8d6f2da855dba08bd3516d4b2c91bb13173 Mon Sep 17 00:00:00 2001 From: Noah Chen Date: Wed, 25 Jan 2017 13:04:00 -0500 Subject: [PATCH 5/6] Add contributors, remove member-ordering new rule option --- CHANGELOG.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 68e5a3e40a3..6ce09e3f0fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,7 +19,6 @@ v4.4.0 * [new-rule-option] `allow-fast-null-checks` added to `no-unused-expression` (#1638) * [new-rule-option] `comment-format-rule` adds `ignore-words` and `ignore-pattern` options (#1757) * [new-rule-option] `whitespace` adds `check-preblock` option (#2002) -* [new-rule-option] `member-ordering` adds categories, allowing flexible ordering of different types of members (#2041) * [new-rule-option] `strict-boolean-expressions` adds `allow-null-union`, `allow-undefined-union`, `allow-string`, and `allow-number` and (#2033) * [new-fixer] `align` (#2097) * [new-fixer] `no-trailing-whitespace` (#2060) @@ -34,6 +33,22 @@ v4.4.0 * [bugfix] `comment-format` no more false positives in JsxText (#2036) * [enhancement] `--test` option now accepts glob (#2079) +Thanks to our contributors! + +* Alexander Rusakov +* Andrii Dieiev +* @andy-ms +* Andy Hanson +* Josh Goldberg +* Kei Son +* Klaus Meinhardt +* Krati Ahuja +* Martin Probst +* Mohsen Azimi +* Noah Chen +* Romke van der Meulen +* cameron-mcateer + v4.3.1 --- From dc6dc8ac8dac0a47a5cfc5c909e31e8ffb9654b9 Mon Sep 17 00:00:00 2001 From: Noah Chen Date: Wed, 25 Jan 2017 15:29:48 -0500 Subject: [PATCH 6/6] Update latest.ts --- src/configs/latest.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/configs/latest.ts b/src/configs/latest.ts index a8466bbdf7b..2bc6fca18e1 100644 --- a/src/configs/latest.ts +++ b/src/configs/latest.ts @@ -52,8 +52,6 @@ export const rules = { "arrow-return-shorthand": true, "no-unnecessary-initializer": true, "no-misused-new ": true, - "prefer-method-signature": true, - "prefer-function-over-method": false, }; // tslint:enable object-literal-sort-keys