All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Deprecation notice added to the readme.
- Overhaul ignore-prefix, adding in ignore-suffix and ignore-pattern. See PR #137
- Updated the list of rules included in each ruleset. See PR #138
- readonly-array rule with the option ignore-prefix set will now ignore nested arrays within an ignored variable. See #132. See PR #133
- readonly-array rule now allows for the readonly keyword to specify an array as readonly. This is a new feature supported in TypeScript 3.4. See #129. See PR #130
- no-object-mutation rule now disallows Object.assign mutation on identifiers and property access expressions. See #112. See PR #127
- Fixed rule readonly-array with option ignore-return-type not checking within union, intersection and conditional types. This fix should now catch all return types that contain a nested array. See #124. See PR #125
- Fixed rule readonly-array with option ignore-return-type not checking within tuple types. See #121. See PR #122
- Fixed rule readonly-array with option ignore-return-type not checking within generic parameters. See #117. Thanks to @RebeccaStevens for this fix! (See PR #120).
v5.3.0 - 2019-02-19
- New rule
no-reject
(moved from no-throw rule in previous version). See PR #118.
v5.2.0 - 2019-02-14
- Update
no-throw
to not allow Promise.reject(). See #115 and PR #116. Thanks to @sbdchd for this addition!
v5.1.2 - 2019-01-25
- Republished without changes (becuase previous publish failed).
v5.1.1 - 2019-01-25
- Fixes readonly-keyword fixer adds the
readonly
modifier in the wrong place for decorated class properties. See #81. Thanks to @tkryskiewicz for this fix! (See PR #113).
v5.1.0 - 2019-01-15
- New option
ignore-new-array
for theno-array-mutation
rule. This option replaces theignore-mutation-following-accessor
option, however the old option name will remain as an alias and will be removed in the next major release. See #102. Thanks to @RebeccaStevens for adding this option! (See PR #110)
v5.0.1 - 2018-12-15
- Fixed a regression in the
readonly-array
. See #104.
v5.0.0 - 2018-11-24
- Internal refactoring to use the tsutils library, see PR 100. This cleans up a lot of code and makes it easier to do further development. Becasue the tsutils library requires typescript version >=2.8 and node >=6 this refactoring required a major version bump. Big thanks to RebeccaStevens for the amazing work on this refactoring :-).
v4.9.1 - 2018-11-04
ignore-return-type
option for thereadonly-array
doesn't catch method declarations. See #95.
v4.9.0 - 2018-11-01
- New option
ignore-return-type
for thereadonly-array
rule. See #82. Thanks to @RebeccaStevens for adding this option! (See PR #95)
v4.8.0 - 2018-10-07
- New option
ignore-rest-parameters
for thereadonly-array
rule. See #73. Thanks to @aboyton for adding this option! (See PR #93)
v4.7.0 - 2018-08-23
-
New option
ignore-mutation-following-accessor
for theno-array-mutation
rule. See #88. Thanks to @RebeccaStevens for adding this option! (See PR #89) -
New rules
no-throw
andno-try
. See #86. Thanks to @RebeccaStevens for adding these rules! (See PR #91) -
Option for enabling all the rules with
tslint-immutable/all
. See #66. Thanks to @bakerface for adding this! (See PR #85)
v4.6.0 - 2018-06-12
- New rule
no-array-mutation
. See #74. Thanks to @RebeccaStevens for adding this rule! (See PR #84)
v4.5.4 - 2018-04-17
-
no-object-mutation
rule, allow class member mutation in constructor #79. -
readonly-keyword
rule, check function params and return type #80
v4.5.3 - 2018-03-31
readonly-array
fixer does not work for arrays with nested template type. See #24. Thanks to @geon for fixing this longstanding bug! (See PR #78)
v4.5.2 - 2018-02-27
-
Ignore await when checking
ignore-prefix
inno-expression-statement
. See #76. -
no-class
does not catch class expressions. See #65. Thanks to @ianbollinger for this fix! (See PR #70)
v4.5.1 - 2018-01-16
no-mixed-interface
does not understand arrow function notation. See #62. Thanks to @geon for this fix! (See PR #63)
v4.5.0 - 2017-12-29
-
New options
ignore-interface
, andignore-class
for thereadonly-keyword
rule. See #44 for background. Thanks to @aboyton for these options! (See PR #57) -
The
ignore-prefix
option can be an array for all rules (previously just forno-expression-statement
andno-object-mutation
). -
New rule
no-delete
. See readme for more info. -
New rule
no-if-statement
. See readme for more info and #54 for discussion. -
New rule
no-loop-statement
. See readme for more info and #54 for discussion.
no-mixed-interface
does not understand arrow function notation. See #60.
v4.4.0 - 2017-09-27
- New option
ignore-prefix
for theno-object-mutation
rule. See #43 for background. Thanks to @miangraham for this option! (See PR #53)
v4.3.0 - 2017-09-23
- The readonly-keyword rule now properly checks for
readonly
modifier ofclass
property declarations. See #49 and PR #50.
- New rule no-method-signature. See #30 and PR in #51.
- New options
ignore-local
, andignore-prefix
for theno-let
rule. See #32, also requested in #43. See PR #48. - Added tslint core rule no-parameter-reassignment as recommended in the README.
v4.2.1 - 2017-09-21
- The readonly-array rule with ignore-local option does not work within
class
. See 45.
v4.2.0 - 2017-09-14
- New option
ignore-prefix
for theno-expression-statement
rule. See #39 for background. Thanks to @algesten for this option! (See PR #42)
v4.1.0 - 2017-08-21
- New rule
no-object-mutation
. See #36 for background. Thanks to @miangraham for this rule! (See PR #37)
v4.0.2 - 2017-07-16
- Added an index.js file to the rules directory in order for rulesDirectory to work. See #35.
v4.0.1 - 2017-06-06
- Invalid default tslint config (it included the removed rules).
v4.0.0 - 2017-06-06
readonly-interface
rule. This rule is replaced by thereadonly-keyword
rule.readonly-indexer
rule. This rule is replaced by thereadonly-keyword
rule.no-new
rule. Please see background in #2.no-arguments
rule. This rule has been moved to the tslint-divid package.no-label
rule. This rule has been moved to the tslint-divid package.no-semicolon-interface
rule. This rule has been moved to the tslint-divid package.import-containment
rule. This rule has been moved to the tslint-divid package.
v3.4.2 - 2017-05-14
- Notice in readme about deprecrating the
no-new
rule.
- The
no-new
rule. See #2 for background.
v3.4.1 - 2017-05-14
- Note in readme about moving the "other" rules. The
no-argument
,no-label
,no-semicolon-interface
, andimport containtment
rules are moving to tslint-divid. See #19 for more information.
- The
no-argument
,no-label
,no-semicolon-interface
, andimport containtment
rules as noted above.
v3.4.0 - 2017-05-14
- New rule
readonly-keyword
, to replacereadonly-interface
andreadonly-indexer
#31
- The
readonly-interface
, andreadonly-indexer
rules are deprecated and will be removed in the next major release. Please use thereadonly-keyword
rule instead.
v3.3.2 - 2017-05-13
- Functions in interfaces cannot have readonly specified but are still checked #28
v3.3.1 - 2017-05-09
- patch: fix main file in package.json. Thanks to @yonbeastie. (see #29)
v3.3.0 - 2017-05-09
- ignore-local does not work for function assigned to const #23
- Add default tslint json. Thanks to @yonbeastie. (see #26)
v3.2.0 - 2017-04-10
- readonly-array does not check shorthand syntax in return types with ignore-local option #21
- Fixer for the
readonly-array
rule.
v3.1.2 - 2017-04-09
- readonly-array does not check return type when ignore-local is enabled #16
- readonly-array does not check shorthand syntax #20.
- Impicit return type is not checked in readonly-array #18.
v3.1.1 - 2017-04-05
- Function parameters are not checked when using ignore-local option, #13.
- Implicit Array type by default value for function parameter is not checked, #14.
v3.1.0 - 2017-04-05
ignore-local
option added toreadonly-array
.ignore-prefix
option added toreadonly-array
.
v3.0.0 - 2017-04-02
- Upgraded to tslint 5.0.0
readonly-array
now also checks for implicity declared mutable arrays.
v2.1.1 - 2017-03-29
- Remove vestigial
noMutationRule.js
andno-mutation
example from README, thanks to @pmlamotte. (see #6)
v2.1.0 - 2016-12-12
readonly-indexer
rule.
- Fixed a bug in
readonly-interface
rule that made it fail on indexer declarations.
v2.0.0 - 2016-12-12
readonly-interface
rule.readonly-indexer
rule.readonly-array
rule.no-class
rule.no-new
rule.no-mixed-interface
rule.import-containment
rule.no-arguments
rule.no-label
rule.no-semicolon-interface
rule.
no-mutation
rule (replaced by thereadonly-interface
rule).
no-expression-statement
rule.no-let
rule.no-mutation
rule.no-this
rule.