This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
v5.3.0
⚠️ This release may require a change to tslint.json
- [enhancement]
prefer-switch
: Change defaultmin-cases
to 3. (#2669)
🎉 New rules, options, and fixers
- [new-cli-option] cli: Add
outputAbsolutePaths
option (#2667) - [new-rule]
prefer-object-spread
(#2624) - [new-rule]
encoding
(#2368) - [new-rule]
prefer-conditional-expression
(#2363) - [new-rule-option]
indent
support indent size (#2723) - [new-rule-option]
object-literal-sort-keys
addsignore-case
(#2592) - [new-rule-option]
quotemark
: Addavoid-template
option (#2766) - [new-rule-option]
await-promise
: What's considered a "Promise" is now configurable. (#2661) - [new-fixer]
indent
(#2723) - [new-fixer]
typedef-whitespace
(#2718)
🛠 Bugfixes & enhancements
- [bugfix]
return-undefined
: Treat a return typevoid | undefined
same asvoid
(#2731) - [bugfix]
no-unnecessary-initializer
: HandleBindingElement
anywhere, not just in aVariableDeclaration
. (#2707) - [bugfix]
jsdoc-format
: correctly handle alignment in files with BOM (#2619) - [bugfix]
jsdoc-format
: don't treat empty comments (/**/
) as jsdoc (#2619) - [bugfix]
typedef-whitespace
don't warn for leading whitespace if token is preceded by line break (#2718) - [bugfix] Make "completed-docs" rule respect "public" privacy (or lack thereof) (#2749)
- [bugfix]
jsdoc-format
: fixed error position if line ends with\r\n
(#2619) - [bugfix]
prefer-switch
: add missing checks for some expressions (#2686) - [bugfix]
prefer-template
: Allow"a" + "b" + "c"
. (#2741) - [bugfix]
prefer-const
: fix false positive with variable declared outside of for-of or for-in (#2760) - [bugfix]
--project
: fix file matching with relative path totsconfig.json
(#2688) - [bugfix]
no-default-export
: correctly handleexport default abstract class {...}
(#2630) - [bugfix]
no-mergeable-namespace
: display correct line in error message (#2656) - [bugfix]
object-literal-sort-keys
: handle object spread correctly (#2592) - [bugfix] Consistently output absolute/relative paths (#2667)
- [bugfix]
await-promise
: Consider types derived from a Promise in union types too. (#2661) - [bugfix]
no-unsafe-any
: Fix bug where number literal in type position was flagged as an unsafeany
. (#2712) - [api] Deprecate
Lint.Utils.objectify
(#2764) - [enhancement] better error messages in
variable-name
(#2672) - [enhancement]
typedef
: Use name or parameters for error location (#2460) - [enhancement]
object-literal-sort-keys
: check shorthand properties (#2592) - [enhancement]
space-before-function-paren
: Handleget
/set
accessor (#2700) - [enhancement]
typedef-whitespace
added checks for arrow function, call and construct signature (#2718) - [enhancement]
no-object-literal-type-assertion
: Allow cast toany
(#2671) - [enhancement] cli:
-p
option handles directories (#2756) - [develop] testing rules with type information is enabled when a
tsconfig.json
is found next totslint.json
(#2769) - [configuration] deprecate mixed case tslint.json (#2713)
Thanks to our contributors!
- Andy Hanson
- Klaus Meinhardt
- Martin Probst
- Filipe Silva
- walkerburgin
- René Scheibe