This repository has been archived by the owner on Mar 28, 2021. It is now read-only.
[Snyk] Upgrade tslint from 5.11.0 to 5.20.0 #21
Merged
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.
Snyk has created this PR to upgrade
tslint
from 5.11.0 to 5.20.0.Release notes
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!
promise-function-async
for short parenthesized arrow functions (#4765)no-async-without-await
false positive for abstract methods (#4782)strict-comparison
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!
--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!
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!
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!
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!
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!
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!
🛠 Bugfixes & enhancements
increment-decrement
rule (#4415)strict-type-predicates
withunknown
(#4444).json
files to avoid problems with--resolveJsonModule
compiler option (#4001)quotemark
issues when using backticks with theavoid-template
option (#4408)Thanks to our contributors!
from
tslint
GitHub Release Notes🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs