Changelog
v4.1.0
prefer-const
(#1801)strict-boolean-expressions
(#1820)no-magic-numbers
(#1799)import-blacklist
(#1841)promise-functions-async
(#1779)no-inferred-empty-object-type
: a type must be specified when using a generic class/function/etc (#1821)allow-named-functions
added to only-arrow-functions
(#1857)prefer-const
(#1801)quotemark
(#1790)code-frame
formatter shows you the error in context (#1819)no-internal-module
failures highlight less text (#1781)only-arrow-functions
will allow functions with a this
parameter (#1597)no-use-before-declare
false positive on named import (#1620)prefer-for-of
was showing false positive when the element is assigned (#1813)type-check
was swallowing the next argument (#1783)tslint:disable-line
was re-enabling tslint:disable
(#1634)adjacent-overload-signatures
did not work for constructors (#1800)checkstyle
formatter was reporting errors under one file (#1811)trailing-comma
was applied to parameter lists (#1775)Thanks to our contributors!
Changelog
v4.0.2
prefer-for-of
(#1758)adjacent-overload-signatures
false positive when a static function has the same name (#1772)Thanks to our contributors!
Changelog
v4.0.1
no-unused-variable
rule from recommended config, as it was causing spurious deprecation warnings.Changelog
v4.0.0
no-unreachable
rule; covered by compiler (#661)extends
array to make it more intuitive. (#1503)completed-docs
rule added (#1644)ordered-imports
auto fixed (#1640)arrow-parens
auto fixed (#1731)indent
rule now ignores template strings (#1611)object-literal-key-quotes
adds the options consistent
and consistent-as-needed
(#1733)--fix
option added to automatically fix selected rules (#1697)adjacent-overload-signatures
now works with classes, source files, modules, and namespaces (#1707).jsx
files if jsRules
are configured (#1714)Thanks to our contributors!
Changelog
v4.0.0-dev.1
semicolon
rule now disallows semicolons in multi-line bound class methods
(to get the v3 behavior, use the ignore-bound-class-methods
option) (#1643)use-strict
rule (#678)label-undefined
rule; covered by compiler (#1614)no-constructor-vars
to no-parameter-properties
(#1296)orderedImports
rule now sorts relative modules below non-relative modules (#1640)no-unused-variable
rule. This is checked by the TypeScript v2 compiler using the flags --noUnusedParameters
and --noUnusedLocals
. (#1481)no-var-keyword
replaces var
with let
(#1547)trailing-comma
auto fixed (#1546)no-unused-variable
auto fixed for imports (#1568)semicolon
auto fixed (#1423)max-classes-per-file
rule added (#1666)no-consecutive-blank-lines
rule now accepts a number value indicating max blank lines (#1650)ordered-imports
rule option import-sources-order
accepts value any
(#1602)no-empty
rule fixed when parameter has readonly modifierno-namespace
rule: do not flag nested or .d.ts namespaces (#1571)Thanks to our contributors!
Changelog
v4.0.0-dev.0
no-duplicate-key
rule; covered by compiler (#1109)trailing-comma
supports function declarations, expressions, and types (#1486)object-literal-sort-keys
now sorts quoted keys (#1529)semicolon
now processes type aliases (#1475)no-var-keyword
now rejects export var
statements (#1256)semicolon
now requires semicolon for function declaration with no body (#1447)fileslist
formatter writes a list of files with errors without position or error type specifics (#1558)cyclomaticComplexity
, enforces a threshold of cyclomatic complexity.] (#1464)prefer-for-of
, which errors when for(var x of y)
can be used instead of for(var i = 0; i < y.length; i++)
(#1335)array-type
, which can require using either `T[]' or 'Array<T>' for arrays (#1498)object-literal-sort-keys
checks multiline objects only (#1642)ban
rule now can ban global functions (#327)jsdoc
rule should not match arbitrary comments (#1543)one-line
rule errors when declaring wildcard ambient modules (#1425)Thanks to our contributors!