Changelog
v5.18.0
--print-config
CLI flag (#4744)no-unnecessary-type-assertion
no longer flags x!
non-null assertions if --strictNullChecks
is not enabled (#3724)quotemark
handles unbalanced quotes more gracefully without crashing (#4344)no-magic-numbers
rule ignores arguments passed into default Number methods (#3668)comment-format
(#3583)"allow-trailing-lowercase"
option for comment-format
rule (#3583)"ignore-accessors"
for adjacent-overload-signatures
to ignore getters / setters overloads (#3718)no-async-without-await
(#3945)strict-comparisons
(#4519)Thanks to our contributors!
Changelog
v5.17.0
quotemark
backtic option now ignores enum members, use strict declarations, lookup types, and strings containing octal escape sequences. (#4693)no-redundant-jsdoc
no longer errors on JSDocThisTag
(#4690)no-use-before-declare
rule for typescript >= 2.9.0 (#4695)variable-name
rule metadata (#4731)no-unused-variable
argument count (#4683)no-object-literal-type-assertion
(#4681)unnecessary-constructor
(#4694)Thanks to our contributors!
Changelog
v5.16.0
quotemark
backtick edge cases and fix behavior for TS < 2.7.1 (#4642)interface-name
rule related to numeric characters in interface names (#4655, #4626)nyc
from v10.2.0 to v13.3.0 (#4633)restrict-plus-operands
rule. (#4635)comment-format
rule now whitelists //region
comments generated by JetBrains IDE (#4609)no-null-undefined-union
rule. (#4625)allow-else-if
option for unnecessary-else
rule (#4599)switch-default
rule (#4650)no-parameter-properties
: fix unclear rule description (#4629)Thanks to our contributors!
Changelog
v5.15.0
WalkContext
and AbstractWalker
type parameter defaults to void
(#2600)no-void-expression
now allows conditional expressions (#4606)ordered-imports
(#4583)static-this
false positive for higher order components (#4580)unnecessary-else
from blank if
statements (#4603)unnecessary-else
after non-jumping statement (#4603)interface-name
now handles interface starting with "I18n" correctly (#4486)no-string-throw
fix inserts whitespace if not present after throw
keyword (#4540)quotemark
: fix some edge cases for backtick
option (#4618)unnecessary-constructor
: don't flag non-private constructors that are actually necessary (#4619)allow-single-line-comments
option for file-header
rule (#4560)ignore-rest-args
option for no-any
rule (#4581)no-null-undefined-union
(#4589)Thanks to our contributors!
Changelog
v5.14.0
backtick
option for quotemark
rule no longer incorrectly flags string literals that must use single/double quotes (#4535)whitespace
rule now lints export statements (#4554)no-trailing-whitespace
no longer flags files starting with a byte order mark (#4543)promise-function-async
now allows single statement lamda functions that delegate to another promise-returning function (#4553)whitespace
rule (#4551)underscore
option for no-shadowed-variable
rule to ignore shadowed underscores (#4546)require-const-for-all-caps
option for variable-name
rule (#2936)overloads
option for completed-docs
rule to enforce documentation of each overload signature (#4563)allow-namespace-imports
option for no-duplicate-imports
rule (#4524)allow-arguments
option for no-object-literal-type-assertion
rule to allow type assertions on object literals used inside call expressions (#4521)allow-delete
option for no-unbound-method
rule (#4548)no-tautology-expression
(#4470)static-this
(#4475)unnecessary-else
(#4502)Thanks to our contributors!
Changelog
v5.13.1
Changelog
v5.13.0
RuleWalker
and ProgramAwareRuleWalker
as deprecated (#4413)--out
CLI flag) does not exist. (#4507)jsRules: true
(#4517)unknown
is recognized as simple type in array-type
(#4433)ban
: Fix a false positive which would occur when banning method calls nested inside objects. Previously, banning ["a", "b", "c"]
would trigger lint failures on the syntax b.c()
, which was not the intent of this rule. (#4383)trailing-comma
no longer crashes if it cannot find the closing parenthesis of a function declaration (#4457)no-unsafe-any
: allow implicitly downcasting any
to unknown
(#4442)grouped-imports
to tslint:all
(#4420)ordered-imports
now supports a groups option to provide custom grouping rules. (#4134)completed-docs
to an untyped rule (#3557)array-type
rule handles Typescript 3.0's unknown type properly (#4219)import-blacklist
now supports regular expression patterns for blacklisting (#3504)no-restricted-globals
(#3824)newline-before-return
rule (#4482)number-literal-format
now includes auto fix (#4496)whitelist
option to no-unbound-method
(#4472)jsx-ignore
option to no-magic-numbers
rule (#4460)object-literal-sort-keys
: Add match-declaration-order-only
option (#3748)strict-boolean-expressions
accepts ignore-rhs
option to disable checking the right-hand side of the &&
and ||
operators as strictly boolean. (#4159)Thanks to our contributors!
Changelog
v5.12.1
increment-decrement
rule (#4415)strict-type-predicates
with unknown
(#4444).json
files to avoid problems with --resolveJsonModule
compiler option (#4001)quotemark
issues when using backticks with the avoid-template
option (#4408)Thanks to our contributors!
Changelog
v5.12.0
type-literal-delimiter
(#3964)whitespace
Add whitespace rule for open braces (#4068)file-name-casing
: Add file name whitelist (#4206)object-literal-sort-keys
: locale-compare
(#4193)strict-boolean-expressions
adds allow-enum
to allow using enums in boolean expressions (#3604)import-blacklist
: support blacklisting specific named exports (#3926)type-literal-delimiter
: Add { singleLine: "always" | "never"}
(#3964)file-name-casing
: Add snake-case
option (#4081)file-header
: Enforce Blank Line after File Header (#3740)ban-ts-ignore
(#3728)function-constructor
(#4198)increment-decrement
(#3575)no-default-import
(#4023)unnecessary-constructor
(#3647)comment-type
(#4008)unnecessary-bind
(#3588)exclude
to work with node API (#4143)@
symbol (#4192)return-undefined
rule (#4370)prefer-method-signature
: Correct the auto-fix code of rule, now capable to handle multiline signature. (#4066)node_modules
folder that are symlinked to another location where their dependencies are satisfied. (#4295)no-invalid-this
: fixes false positives on method-like syntax and false negatives on nested functions (#4034)one-line
: Check block in a case clause (#3619)whitespace
Don't require space between import and paren with in type imports (#4243)no-unused-variable
from tslint:all
(#4079)callable-types
support interfaces containing a single construct signature (#4291) (#4352)ordered-imports
: Setting import-sources-order: any
no longer invalidates grouped-imports: true
(#4374)homepage
to package.json (#4101)ordered-imports
: When grouped-imports
option of the rule is set, the fact that imports of the same type are all in one group is also checked. (#3733)<<:
to be used to merge anchors (#4350)line:column
instead of [line, column]
(#4222)Thanks to our contributors!
Changelog
v5.11.0
no-unused-variable
is deprecated because typescript now covers most of its functionality (#3919)file-name-casing
(#3978)switch-final-break
(#3615)member-ordering
and added corresponding tests. (#3935)no-implicit-dependencies
(#3979)no-use-before-declare
Fixes false positives when using the destructuring syntax (#3761) (#3876)no-empty
rule is now properly respecting empty methods (#3897)no-magic-numbers
- support for negative zero (#3903)no-implicit-dependencies
test failure; typescript@next failure (#4019)no-console
rule (#4041)no-floating-promises
rule docs. (#3886)prefer-while
docs to be semantically correct (#3888)radix
rule checks (#3901)no-implicit-dependencies
now always considers peer dependencies (#3875)Thanks to our contributors!