Update dependency tslint to v5 - abandoned #15
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^3.6.0
->^5.0.0
Release Notes
palantir/tslint
v5.20.1
Compare Source
No changes from v5.20.0, just re-released to correctly mark with the
latest
dist-tag on NPM.v5.20.0
Compare Source
strict-boolean-expressions
false positive with"ignore-rhs"
option (#4833)no-unnecessary-type-assertion
no error when"strict": true
in compiler flags (#4841)file-name-casing
rule works correctly (#4848)array-type
false positive for simple parenthesized types with "array-simple" option (#4844)object-literal-shorthand
supports{"property"?: "never", "method"?: "never"}
as config options (#4842)allow-generics
option forinvalid-void
rule (#4839)check-super-calls
option forunnecessary-constructor
rule (#4813)diff
dependency to v4.0.1 (#4845, #4852)Thanks to our contributors!
v5.19.0
Compare Source
promise-function-async
for short parenthesized arrow functions (#4765)no-async-without-await
false positive for abstract methods (#4782)strict-comparisons
false positive fornull
andundefined
literals (#4786)no-angle-bracket-type-assertion
autofix semantics with more parentheses (#4823)restrict-plus-operands
rule (#4814)await-promise
now supports new TypeScript 3.6 AST API symbols for async iterators (#4800)check-strings
andcheck-regex
options formax-line-length
rule (#4798)variable-declaration-ignore-function
option fortypedef
rule (#4769)ignore-blank-lines
option forobject-literal-sort-keys
rule (#4808)no-for-in
(#4747)invalid-void
(#4736)strict-string-expressions
reports errors on type coercions found in string expressions (#4807)no-promise-as-boolean
(#4790)Thanks to our contributors!
v5.18.0
Compare Source
--print-config
CLI flag (#4744)no-unnecessary-type-assertion
no longer flagsx!
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 forcomment-format
rule (#3583)"ignore-accessors"
foradjacent-overload-signatures
to ignore getters / setters overloads (#3718)no-async-without-await
(#3945)strict-comparisons
(#4519)Thanks to our contributors!
v5.17.0
Compare Source
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 onJSDocThisTag
(#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!
v5.16.0
Compare Source
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 forunnecessary-else
rule (#4599)switch-default
rule (#4650)no-parameter-properties
: fix unclear rule description (#4629)Thanks to our contributors!
v5.15.0
Compare Source
WalkContext
andAbstractWalker
type parameter defaults tovoid
(#2600)no-void-expression
now allows conditional expressions (#4606)ordered-imports
(#4583)static-this
false positive for higher order components (#4580)unnecessary-else
from blankif
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 afterthrow
keyword (#4540)quotemark
: fix some edge cases forbacktick
option (#4618)unnecessary-constructor
: don't flag non-private constructors that are actually necessary (#4619)allow-single-line-comments
option forfile-header
rule (#4560)ignore-rest-args
option forno-any
rule (#4581)no-null-undefined-union
(#4589)Thanks to our contributors!
v5.14.0
Compare Source
backtick
option forquotemark
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 forno-shadowed-variable
rule to ignore shadowed underscores (#4546)require-const-for-all-caps
option forvariable-name
rule (#2936)overloads
option forcompleted-docs
rule to enforce documentation of each overload signature (#4563)allow-namespace-imports
option forno-duplicate-imports
rule (#4524)allow-arguments
option forno-object-literal-type-assertion
rule to allow type assertions on object literals used inside call expressions (#4521)allow-delete
option forno-unbound-method
rule (#4548)no-tautology-expression
(#4470)static-this
(#4475)unnecessary-else
(#4502)Thanks to our contributors!
v5.13.1
Compare Source
v5.13.0
Compare Source
RuleWalker
andProgramAwareRuleWalker
as deprecated (#4413)--out
CLI flag) does not exist. (#4507)jsRules: true
(#4517)unknown
is recognized as simple type inarray-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 syntaxb.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 downcastingany
tounknown
(#4442)grouped-imports
totslint: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 tono-unbound-method
(#4472)jsx-ignore
option tono-magic-numbers
rule (#4460)object-literal-sort-keys
: Addmatch-declaration-order-only
option (#3748)strict-boolean-expressions
acceptsignore-rhs
option to disable checking the right-hand side of the&&
and||
operators as strictly boolean. (#4159)Thanks to our contributors!
v5.12.1
Compare Source
v5.12.0
Compare Source
v5.11.0
Compare Source
v5.10.0
Compare Source
v5.9.1
Compare Source
v5.9.0
Compare Source
v5.8.0
Compare Source
v5.7.0
Compare Source
v5.6.0
Compare Source
v5.5.0
Compare Source
Editor's note: This release features an important bugfix for overlapping fixes when using
--project
and--fix
(#2864).v5.4.3
Compare Source
v5.4.2
Compare Source
v5.4.1
Compare Source
v5.4.0
Compare Source
v5.3.2
Compare Source
not a directory
error (#2813)v5.3.0
Compare Source
v5.2.0
Compare Source
no-console
bans all console methods when no methods are specified (#2610)no-object-literal-type-assertion
(#2580)no-irregular-whitespace
(#2487)prefer-switch
(#2331)number-literal-format
(#2526)deprecation
(#2395)no-unnecessary-type-assertion
(#2519)interface-over-type-literal
(#2617)callable-types
(#2552)no-string-literal
(#2495)no-internal-module
(#2517)align
rule addedmembers
option, which checks alignment of methods and properties of classes, objects, interfaces, type literals and object destructuring (#2387)align
rule addedelements
option, which checks alignment of elements in array literals, array destructuring and tuple types (#2387)trailing-comma
adds more granular options to specify trailing commas for arrays, objects, functions, type literals, imports, and exports (#2538)ScopeAwareRuleWalker
andBlockScopeAwareRuleWalker
. (#2561)no-unused-expression
: allowvoid(0)
in addition tovoid 0
andvoid
in expression and statement position (#2645)align
: fix false positive for files with BOM (#2642)return-undefined
: Handle contextual types with ambiguous signatures; allowany
; and handle async functions. (#2576)semicolon
: don't mark semicolon as unnecessary when the next statement is on the same line (#2591)no-internal-module
: no more false positives for global augmentation (#2517)no-unnecessary-qualifier
: no longer breaks when walking a function that referencesarguments
(#2555)prefer-const
no longer shows warnings on ambient declarations (#2391)callable-types
: suggest correct fix for interfaces with type arguments (#2552)quotemark
: fix regression with jsx attributes (#2605)adjacent-overload-signatures
handles functions ending in semicolon (#2412)object-literal-key-quotes
: correctly stringify numbers when fixing (#2515)object-literal-key-quotes
: does no longer require quotes for property names containing digits (#2515)align
: Don't report 'statements are not aligned' for empty statements (#2653)class-name
now also checks class expressions (#2553)optionExamples
: Allow to use an options array directly instead of a string representation. (#2527)rulesDirectory
can now be resolved with Nodes resolve logic, if the directory contains anindex.js
(#2163) (#2358)no-unused-expression
: narrow error location for comma separated expressions and conditional expressions (#2645)no-string-literal
now handles escaped strings (#2495)no-unnecessary-callback-wrapper
: Allowx => x(x)
(#2524)no-var-keyword
: Allow global var declarations (#2513)Thanks to our contributors!
v5.1.0
Compare Source
no-invalid-template-strings
(#2332)no-sparse-arrays
(#2407)no-void-expression
: addsignore-arrow-function-shorthand
(#2445)tslint:all
configuration (#2417)no-reference-import
fromjsRules
torules
(#2441)no-unnecessary-callback-wrapper
: only check if callback is identifier, allow all other expressions (#2510)member-access
: Skip index signature, it can not have an access modifier (#2437)restrict-plus-operands
fixes regression where every assignment and comparison was checked (#2454)no-unnecessary-callback-wrapper
: allow async wrapper function (#2510)prefer-for-of
: No error ifdelete
is used (#2458)radix
: don't warn for missing radix on method calls (#2352)no-use-before-declare
: Handle symbol with empty declarations list. (#2436)strict-type-predicates
: Check for construct signatures inisFunction
. (#2479)strict-boolean-expressions
: When--strictNullChecks
is turned off,allow-null-union
andallow-undefined-union
turn off "always truthy" errors. (#2373)radix
: added check for global.parseInt and window.parseInt (#2352)arrow-return-shorthand
: Improve failure message when return expression is an object literal (#2466)Thanks to our contributors!
v5.0.0
Compare Source
v4.5.1
Compare Source
ban-types
andno-duplicate-super
(#2271)object-literal-key-quotes
handle negative number property name (#2273)v4.5.0
Compare Source
no-import-side-effect
(#2155)match-default-export-name
(#2117)no-non-null-assertion
(#2221)ban-types
(#2175)no-duplicate-super
(#2038)newline-before-return
(#2173)completed-docs
adds options for location, type, and privacy. Also adds interfaces, enums, types (#2095)no-inferrable-types
adds optionignore-properties
(#2178)typedef
adds optionsobject-destructuring
andarray-destructuring
options (#2146)member-ordering
adds optionalphabetize
(#2101)no-trailing-whitespace
adds optionignore-jsdoc
(#2177)no-trailing-whitespace
adds optionignore-comments
option (#2153)no-inferrable-types
automatically remove inferrable type annotations (#2178)no-any
(#2165)noConsecutiveBlankLines
(#2201)object-literal-shorthand
(#2165)no-switch-case-fallthrough
handle break, throw, continue and return nested in block, if-else and switch (#2218)no-switch-case-fallthrough
allow empty case clauses before default clause (#2218)no-mergeable-namespace
ignore property types that can't be merged (#2105)object-literal-key-quotes
no need to quote a float if its .toString() is the same. (#2144)no-consecutive-blank-lines
Correctly apply fixes at EOF (#2239)quotemark
now handles escaped chars (#2224)no-switch-case-fallthrough
allow single line comment// falls through
(#2218)no-unbound-method
allows property access and binary expressions (#2143)AbstractWalker
for performance (#2093)Thanks to our contributors!
v4.4.2
Compare Source
whitespace
rule caused false positive on EOF (#2131)json
formatter parameter has extra space (#2132)v4.4.1
Compare Source
no-misused-new
)v4.4.0
Compare Source
arrow-return-shorthand
(#1972)no-unbound-method
(#2089)no-boolean-literal-compare
(#2013)no-unsafe-any
(#2047)no-unnecessary-qualifier
(#2008)no-unnecessary-initializer
(#2106)await-promise
(#2102)no-floating-promises
(#1632)strict-type-predicates
(#2046)no-misused-new
(#1963)prefer-method-signature
(#2028)prefer-function-over-method
(#2037)allow-fast-null-checks
added tono-unused-expression
(#1638)comment-format-rule
addsignore-words
andignore-pattern
options (#1757)whitespace
addscheck-preblock
option (#2002)strict-boolean-expressions
addsallow-null-union
,allow-undefined-union
,allow-string
, andallow-number
and (#2033)align
(#2097)no-trailing-whitespace
(#2060)no-magic-numbers
false positive on default parameter values (#2004)no-empty-interface
allow empty interface with 2 or more parents (#2070)no-trailing-whitespace
fixed for comments and EOF (#2060)no-empty
no longer fails for private or protected constructor (#1976)tslint:disable
/tslint-enable
now handles multiple rules and fixes what code is enabled/disabled (#2061)no-inferrable-types
now validates property declarations (#2081)unified-signatures
false positive (#2016)whitespace
finds all whitespace errors in JsxExpressions and TemplateExpressions (#2036)comment-format
no more false positives in JsxText (#2036)--test
option now accepts glob (#2079)Thanks to our contributors!
v4.3.1
Compare Source
v4.3.0
Compare Source
tslint:latest
configuration (#1981)space-before-function-paren
(#1897)typeof-compare
(#1927)import-spacing
(#1935)unified-signatures
(#1944)object-literal-key-quotes
(#1953)no-angle-bracket-type-assertion
(#1979)adjacent-overload-signature
now handles static/computed function names (#1831)file-header
now handles files with only comments (#1913)no-consecutive-blank-lines
now allows blank lines in template strings (#1886)object-literal-key-quotes
no longer throws exception when using rest operator (#1916)restrict-plus-operands
no longer shows false positive in ternary operation (#1925)prefer-for-of
now handles nestedfor
loops with reused iterator (#1926)tsconfig.json
passed as--project
argument doens't have files (#1933)object-literal-key-quotes
now handles shorthand and spread properties (#1945)arrow-parens
Allow binding patterns([x, y]) => ...
and({x, y}) => ...
to have parens (#1958)semicolon
fixer now handles comma separator in interfaces and indicates failure when commas are using in interfaces (#1856)only-arrow-functions
optionallow-named-functions
now allows function declarations (#1961)prefer-for-of
no longer shows false positive when array is in parentheses (#1986)prefer-const
now works for TypeScript versions < 2.1.0 (#1989)member-access
narrow location of error (#1964)Thanks to our contributors!
v4.2.0
Compare Source
no-string-throw
(#1878)no-empty-interface
(#1889)interface-over-type-literal
(#1890)callable-types
(#1891)no-void-expression
(#1903)ban-single-arg-parens
added toarrow-parens
(#1893)prefer-const
handles destructuring arrays (#1894), destructuring objects (#1906), and forward references (#1908)one-line
rule (#1866)no-shadowed-variable
now identifies shadowedfor
iterator (#1816)object-literal-key-quotes
now includes function names (#1874)disable-next-line
comment (#1902)Thanks to our contributors!
v4.1.1
Compare Source
typedef
rule was showing false positive forcatch
clause (#1887)v4.1.0
Compare Source
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 toonly-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 athis
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-enablingtslint: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!
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.