This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
v5.2.0
- [rule-change]
no-console
bans all console methods when no methods are specified (#2610) - [new-rule]
no-object-literal-type-assertion
(#2580) - [new-rule]
no-irregular-whitespace
(#2487) - [new-rule]
prefer-switch
(#2331) - [new-rule]
number-literal-format
(#2526) - [new-rule]
deprecation
(#2395) - [new-rule]
no-unnecessary-type-assertion
(#2519) - [new-fixer]
interface-over-type-literal
(#2617) - [new-fixer]
callable-types
(#2552) - [new-fixer]
no-string-literal
(#2495) - [new-fixer]
no-internal-module
(#2517) - [new-rule-option]
align
rule addedmembers
option, which checks alignment of methods and properties of classes, objects, interfaces, type literals and object destructuring (#2387) - [new-rule-option]
align
rule addedelements
option, which checks alignment of elements in array literals, array destructuring and tuple types (#2387) - [new-rule-option]
trailing-comma
adds more granular options to specify trailing commas for arrays, objects, functions, type literals, imports, and exports (#2538) - [api] Deprecate
ScopeAwareRuleWalker
andBlockScopeAwareRuleWalker
. (#2561) - [develop] added support for error templates in rule tests (#2481)
- [bugfix] Fixes "Severity for rule not found" error (#2516)
- [bugfix]
no-unused-expression
: allowvoid(0)
in addition tovoid 0
andvoid
in expression and statement position (#2645) - [bugfix]
align
: fix false positive for files with BOM (#2642) - [bugfix]
return-undefined
: Handle contextual types with ambiguous signatures; allowany
; and handle async functions. (#2576) - [bugfix]
semicolon
: don't mark semicolon as unnecessary when the next statement is on the same line (#2591) - [bugfix]
no-internal-module
: no more false positives for global augmentation (#2517) - [bugfix]
no-unnecessary-qualifier
: no longer breaks when walking a function that referencesarguments
(#2555) - [bugfix]
prefer-const
no longer shows warnings on ambient declarations (#2391) - [bugfix]
callable-types
: suggest correct fix for interfaces with type arguments (#2552) - [bugfix]
quotemark
: fix regression with jsx attributes (#2605) - [bugfix]
adjacent-overload-signatures
handles functions ending in semicolon (#2412) - [bugfix]
object-literal-key-quotes
: correctly stringify numbers when fixing (#2515) - [bugfix]
object-literal-key-quotes
: does no longer require quotes for property names containing digits (#2515) - [enhancement] Failures in extended config files now indicate which file (#2588)
- [enhancement]
align
: Don't report 'statements are not aligned' for empty statements (#2653) - [enhancement]
class-name
now also checks class expressions (#2553) - [enhancement]
optionExamples
: Allow to use an options array directly instead of a string representation. (#2527) - [enhancement]
rulesDirectory
can now be resolved with Nodes resolve logic, if the directory contains anindex.js
(#2163) (#2358) - [enhancement]
no-unused-expression
: narrow error location for comma separated expressions and conditional expressions (#2645) - [enhancement]
no-string-literal
now handles escaped strings (#2495) - [enhancement]
no-unnecessary-callback-wrapper
: Allowx => x(x)
(#2524) - [enhancement]
no-var-keyword
: Allow global var declarations (#2513)
Thanks to our contributors!
- Andy Hanson
- Alex Eagle
- Donald Pipowitch
- Klaus Meinhardt
- Gord P
- Andy
- Quentin
- Mitchell Wills
- Vito
- CSchulz
- Josh Goldberg
- Brian Olore
- Manuel Lopez
- James Clark