Update tslint: 5.9.1 → 5.18.0 (minor)
Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.
What changed?
✳️ tslint (5.9.1 → 5.18.0) · Repo · Changelog
Release Notes
5.18.0
- [feature] New
--print-configCLI flag (#4744)- [bugfix]
no-unnecessary-type-assertionno longer flagsx!non-null assertions if--strictNullChecksis not enabled (#3724)- [bugfix]
quotemarkhandles unbalanced quotes more gracefully without crashing (#4344)- [docs] Add tslint-playground link to README and bug report template (#4150)
- [enhancement]
no-magic-numbersrule ignores arguments passed into default Number methods (#3668)- [new-fixer]
comment-format(#3583)- [new-rule-option]
"allow-trailing-lowercase"option forcomment-formatrule (#3583)- [new-rule-option]
"ignore-accessors"foradjacent-overload-signaturesto ignore getters / setters overloads (#3718)- [new-rule]
no-async-without-await(#3945)- [new-rule]
strict-comparisons(#4519)Thanks to our contributors!
- Josh Goldberg
- smoehrle
- Mateusz Witkowski
- Andy Hanson
- John Wiseheart
- Eran Shabi
- Tibor Blenessy
- AndreasGassmann
- Ryan Waskiewicz
- Isabelle
5.17.0
- [bugfix]
quotemarkbacktic option now ignores enum members, use strict declarations, lookup types, and strings containing octal escape sequences. (#4693)- [bugfix]
no-redundant-jsdocno longer errors onJSDocThisTag(#4690)- [chore] Update devDependency mocha from v3.2.0 to v6.1.4 (#4669) (#4674)
- [chore] Update devDependency js-yaml from ^3.13.0 to ^3.13.1 (#4663)
- [chore] Update deprecated devDependency github to @octokit/rest (#4673)
- [chore] Update devDependency nyc from v13.3.0 to v14.1.1 (#4699)
- [deprecation]
no-use-before-declarerule for typescript >= 2.9.0 (#4695)- [documentation] Minor fix for
variable-namerule metadata (#4731)- [documentation] Fixed
no-unused-variableargument count (#4683)- [enhancement] Allow const assertions in
no-object-literal-type-assertion(#4681)- [new-fixer]
unnecessary-constructor(#4694)Thanks to our contributors!
- Bjorn Stromberg
- Vitaliy Agoshkov
- knafteN
- Bowen Ni
- Waseem Ahmad
- Åsmund Grammeltvedt
- Eric Ferreira
- Zhen Tian
- Tom Lakesman
- zachkirsch
5.16.0
- [bugfix] Excuse more
quotemarkbacktick edge cases and fix behavior for TS < 2.7.1 (#4642)- [bugfix] Fix regression in
interface-namerule related to numeric characters in interface names (#4655, #4626)- [enhancement] Update
nycfrom v10.2.0 to v13.3.0 (#4633)- [enhancement] Migrate from deprecated babel-code-frame package to new @babel/code-frame package (#4632)
- [enhancement] Improve error message for
restrict-plus-operandsrule. (#4635)- [enhancement]
comment-formatrule now whitelists//regioncomments generated by JetBrains IDE (#4609)- [enhancement] Relax
no-null-undefined-unionrule. (#4625)- [new-rule-option]
allow-else-ifoption forunnecessary-elserule (#4599)- [documentation] Fix "identifer" typo in custom rules docs (#4657)
- [documentation] Fix code example for
switch-defaultrule (#4650)- [documentation] Fix documentation example for prose formatter (#4656)
- [documentation]
no-parameter-properties: fix unclear rule description (#4629)- [documentation] Fix typo in rule docs generation (#4638)
Thanks to our contributors!
- Oleg Artene
- William Neely
- Bjorn Stromberg
- Matthew Barry
- Neha Rathi
- Vincent Langlet
- rarenal
- Greg Jednaszewski
- Adam Postma
- Eric Ferreira
- Evgeniy Timokhov
- Martin Probst
5.15.0
- [api]
WalkContextandAbstractWalkertype parameter defaults tovoid(#2600)- [bugfix]
no-void-expressionnow allows conditional expressions (#4606)- [bugfix] fix linebreak handling in
ordered-imports(#4583)- [bugfix] fix
static-thisfalse positive for higher order components (#4580)- [bugfix] Fixed crash in
unnecessary-elsefrom blankifstatements (#4603)- [bugfix] Fixed false positive in
unnecessary-elseafter non-jumping statement (#4603)- [bugfix]
interface-namenow handles interface starting with "I18n" correctly (#4486)- [bugfix]
no-string-throwfix inserts whitespace if not present afterthrowkeyword (#4540)- [bugfix]
quotemark: fix some edge cases forbacktickoption (#4618)- [bugfix]
unnecessary-constructor: don't flag non-private constructors that are actually necessary (#4619)- [enhancement] Upgrade js-yaml to avoid security issue (#4595)
- [new-rule-option]
allow-single-line-commentsoption forfile-headerrule (#4560)- [new-rule-option]
ignore-rest-argsoption forno-anyrule (#4581)- [new-rule]
no-null-undefined-union(#4589)Thanks to our contributors!
- Max Belsky
- Steve Moser
- Christian Flach
- Roman Rogowski
- Terry
- Luke
- Andy Hanson
- Vitalij Krotov
- Josh Goldberg
- Vincent Langlet
- Neha Rathi
- Eric Ferreira
5.14.0
- [bugfix]
backtickoption forquotemarkrule no longer incorrectly flags string literals that must use single/double quotes (#4535)- [bugfix] Fixed regression in CheckstyleFormatter backwards compatibility (#4561)
- [bugfix]
whitespacerule now lints export statements (#4554)- [bugfix]
no-trailing-whitespaceno longer flags files starting with a byte order mark (#4543)- [enhancement]
promise-function-asyncnow allows single statement lamda functions that delegate to another promise-returning function (#4553)- [enhancement] Add note to docs about zero-indexing for machine formatters (#4544)
- [enhancement] Fix metadata of the
whitespacerule (#4551)- [enhancement] Add junit output for files which are successfully linted (#4566)
- [new-rule-option]
underscoreoption forno-shadowed-variablerule to ignore shadowed underscores (#4546)- [new-rule-option]
require-const-for-all-capsoption forvariable-namerule (#2936)- [new-rule-option]
overloadsoption forcompleted-docsrule to enforce documentation of each overload signature (#4563)- [new-rule-option]
allow-namespace-importsoption forno-duplicate-importsrule (#4524)- [new-rule-option]
allow-argumentsoption forno-object-literal-type-assertionrule to allow type assertions on object literals used inside call expressions (#4521)- [new-rule-option]
allow-deleteoption forno-unbound-methodrule (#4548)- [new-rule]
no-tautology-expression(#4470)- [new-rule]
static-this(#4475)- [new-rule]
unnecessary-else(#4502)Thanks to our contributors!
- Roman Rogowski
- Max Belsky
- Edward Drapkin
- Dominik Palo
- Matthew McCune
- Debsmita
- Lucas Charles
- Piotr Gajowniczek
- Darren Anderson
- Noam Yogev
- Josh Goldberg
- Karol Majewski
5.13.1
- [bugfix] Fix regression in CheckstyleFormatter backwards compatibility (#4561)
5.13.0
- [deprecation] Mark
RuleWalkerandProgramAwareRuleWalkeras deprecated (#4413)- [bugfix] Create output directory when the output path (specified by
--outCLI flag) does not exist. (#4507)- [bugfix] Explicit disabling of rules is now copied over to jsRules when using
jsRules: true(#4517)- [bugfix]
unknownis recognized as simple type inarray-type(#4433)- [bugfix]
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)- [bugfix] Fixed single-line comment parsing for completed-docs (#3557)
- [bugfix]
trailing-commano longer crashes if it cannot find the closing parenthesis of a function declaration (#4457)- [bugfix]
no-unsafe-any: allow implicitly downcastinganytounknown(#4442)- [bugfix] Add
grouped-importstotslint:all(#4420)- [docs] Fix docs typo (#4395)
- [enhancement] Add "formatting" rule category (#2832)
- [enhancement]
ordered-importsnow supports a groups option to provide custom grouping rules. (#4134)- [enhancement] Convert
completed-docsto an untyped rule (#3557)- [enhancement] Checkstyle formatter includes every file linted regardless of lint errors. (#3838)
- [enhancement] Formatters now receive the full list of of linted file paths as a third argument. (#3838)
- [enhancement]
array-typerule handles Typescript 3.0's unknown type properly (#4219)- [enhancement]
import-blacklistnow supports regular expression patterns for blacklisting (#3504)- [new-rule]
no-restricted-globals(#3824)- [new-fixer] added fixer for
newline-before-returnrule (#4482)- [new-fixer]
number-literal-formatnow includes auto fix (#4496)- [new-rule-option] Added
whitelistoption tono-unbound-method(#4472)- [new-rule-option] added
jsx-ignoreoption tono-magic-numbersrule (#4460)- [new-rule-option]:
object-literal-sort-keys: Addmatch-declaration-order-onlyoption (#3748)- [new-rule-option]
strict-boolean-expressionsacceptsignore-rhsoption to disable checking the right-hand side of the&&and||operators as strictly boolean. (#4159)Thanks to our contributors!
- Enes SOYLU
- jbsingh
- Sven Efftinge
- James C. Davis
- Norio Suzuki
- Thomas den Hollander
- Retsam
- Dobes Vandermeer
- Young Min Kim
- Grant Wu
- Felix Schindler
- Lydia
- Adrian Leonhard
- James Jensen
- Athene Noctua
- Allen
- Vincent Langlet
- Paul Medynski
- Liz
- Piotr Gajowniczek
- Max Sysoev
- Jakub Beneš
- Ian Mobley
- 周昊宇
- Nazanin Delam
- Matt R. Wilson
- Andy Hanson
- Zen
- Josh Goldberg
- Jeff Lau
5.12.1
🛠 Bugfixes & enhancements
- [bugfix] Revert breaking change to tslint:recommended, update tslint:latest (#4404)
- [bugfix] Correcting fixer for the
increment-decrementrule (#4415)- [bugfix] Fix
strict-type-predicateswithunknown(#4444)- [bugfix] Skip linting of
.jsonfiles to avoid problems with--resolveJsonModulecompiler option (#4001)- [bugfix] fix some
quotemarkissues when using backticks with theavoid-templateoption (#4408)- [enhancement] Mention file names in test script parse failures (#4397)
Thanks to our contributors!
- Young Min Kim
- Enes SOYLU
- Thomas den Hollander
- Adrian Leonhard
5.12.0
🎉 Features
- [feature] Configure format from file (#4155)
- [feature] Make cli expect array for rules dir (#3788)
- [feature] Set js rules to all valid active rules (#3641)
- [improvement] Add tests for [email protected] and [email protected] (#4053)
- [new-fixer]
type-literal-delimiter(#3964)- [new-rule-option]
whitespaceAdd whitespace rule for open braces (#4068)- [new-rule-option]
file-name-casing: Add file name whitelist (#4206)- [new-rule-option]
object-literal-sort-keys:locale-compare(#4193)- [new-rule-option]
strict-boolean-expressionsaddsallow-enumto allow using enums in boolean expressions (#3604)- [new-rule-option]
import-blacklist: support blacklisting specific named exports (#3926)- [new-rule-option]
type-literal-delimiter: Add{ singleLine: "always" | "never"}(#3964)- [new-rule-option]
file-name-casing: Addsnake-caseoption (#4081)- [new-rule-option]
file-header: Enforce Blank Line after File Header (#3740)- [new-rule]
ban-ts-ignore(#3728)- [new-rule]
function-constructor(#4198)- [new-rule]
increment-decrement(#3575)- [new-rule]
no-default-import(#4023)- [new-rule]
unnecessary-constructor(#3647)- [new-rule]
comment-type(#4008)- [new-rule]
unnecessary-bind(#3588)
🛠 Bugfixes & enhancements
- [api] Allow
excludeto work with node API (#4143)- [api] Upgrade TSLint to support TS 3.1 (#4274)
- [bugfix] Allow whitelisted modules to start with
@symbol (#4192)- [bugfix] Added exception for generators in
return-undefinedrule (#4370)- [bugfix] Allow unknown in 'no-object-literal-type-assertion' rule. (#4362)
- [bugfix] Completed docs rule can check single-line comments (#3841)
- [bugfix]
prefer-method-signature: Correct the auto-fix code of rule, now capable to handle multiline signature. (#4066)- [bugfix] Default logger.error should log to stderr. (#3982)
- [bugfix] Fixes an issue where TSLint doesn't correctly resolve packages in a
node_modulesfolder that are symlinked to another location where their dependencies are satisfied. (#4295)- [bugfix] Fix configuration tests when comparing rules (#4346)
- [bugfix] Fix semicolon: Cannot read property 'initializer' of undefined (#4351)
- [bugfix] Fix whitespace rule in importClause with 'as' statement (#4249)
- [bugfix]
no-invalid-this: fixes false positives on method-like syntax and false negatives on nested functions (#4034)- [bugfix]
one-line: Check block in a case clause (#3619)- [bugfix]
whitespaceDon't require space between import and paren with in type imports (#4243)- [bugfix] remove
no-unused-variablefromtslint:all(#4079)- [bugfix]
callable-typessupport interfaces containing a single construct signature (#4291) (#4352)- [bugfix]
ordered-imports: Settingimport-sources-order: anyno longer invalidatesgrouped-imports: true(#4374)- [develop] Add issue templates (#4028)
- [develop] Add test for 3.0 (#4119)
- [develop] Changes the node version from 4 to 6 for TS 2.1 tests. (#4282)
- [develop] Fix prettier command in package.json (#4275)
- [develop] Fix semantic merge break from #4374 and #3733 (#4378)
- [develop] Fix typo in launch.json (#4287)
- [develop] Prettier (#4012)
- [develop] Re-ran Prettier on source files again, with some more ignores (#4270)
- [develop] Update 'json-stringify-pretty-compact' to 1.2.0 and remove unnecessary type declaration (#4371)
- [develop] Upgrade prettier and run over all files (#4214)
- [docs] "< 0" means less than zero, not greater than (#4183)
- [docs] Added badges for dependencies status (#4160)
- [docs] Additional code examples for rules (#3869)
- [docs] Clarify no-shadowed-variable doc (#4347)
- [docs] Fix docs typo (#4165)
- [docs] Fix docs typo (#4182)
- [docs] Fix typo in index.md (#4242)
- [docs] Fix typos in formatter descriptions (#4288)
- [docs] Fixed typo in documentation (#4047)
- [docs] Includes new name Azure DevOps for VSO (#4289)
- [docs] Typo correction in no-unused-expression (#4322)
- [docs] Update documentation to reflect changes made in #2229. (#4336)
- [docs] Update stylish example (#4095)
- [docs] Use latest docs deps to avoid vulnerable libs (#4366)
- [docs] prefer-object-spread: this is new to ES2018, not ES2015 (#4321)
- [documentation] Update configuration documentation to include array syntax (#4258)
- [enhancement] Add
homepageto package.json (#4101)- [enhancement] Add esSpecCompliant: true to recommended trailing-comma config (#4072)
- [enhancement] Add new tests to workflows (#4054)
- [enhancement] Add quiet flag to hide warnings (#4025)
- [enhancement] Don't flag unmatched ${ in no-invalid-template-strings (#3769)
- [enhancement] Show offending value in 'no-magic-numbers' error message (#4332)
- [enhancement]
ordered-imports: Whengrouped-importsoption of the rule is set, the fact that imports of the same type are all in one group is also checked. (#3733)- [enhancement] Yaml parser now uses default schema, allowing for
<<:to be used to merge anchors (#4350)- [enhancement] Improve JUnit formatter (#4327)
- [enhancement] completed-docs: check properties and methods in interfaces (#4032)
- [enhancement] file-name-casing-rule supports regex expression for matching file (#4284)
- [enhancement] prose formatter uses
line:columninstead of[line, column](#4222)- [rule-change] Add "backtick" option for quotemark (#4029)
- [rule-change] Allow void expressions in binary expressions (#4323)
Thanks to our contributors!
- Shinigami
- Matthew Herbst
- Joshua R
- John Wiseheart
- Mitchell Wills
- Eric Ferreira
- Daniel Reichhart
- Rui
- Pavel Birukov
- Brian Schlenker
- Michael Black
- Andy Hanson
- atsu85
- PomanoB
- Oleg Vaskevich
- Daniel McNab
- Jan Pilzer
- Sebastian Silbermann
- Michael Lavina
- reduckted
- Ryan Waskiewicz
- Bowen Ni
- Josh Goldberg
- Erik
- Nathan
- Kevin Verdieck
- Joe Chung
- Peter Safranek
- Xavier Downs
- Igor Ovsiannikov
- RyosukeFukushima
- Andrew Boyton
- samuela
- stefanhamburger
- Carsten Dietzel
- Jakob Warkotsch
- Karthick Manoharan
- Ian Clanton-Thuon
- Yordis Prieto
- Mike Frysinger
- Dario Banfi
- Gérôme Grignon
- Antony74
- Morgan Zolob
- Young Min Kim
- rrogowski
- Eric Anderson
- Simon Marchi
- ulrichb
- Marvin Altemeier
- Ifiok Jr
- Andrew MacLeay
- Ethan
- Dan Homola
- NN
- Roman Rogowski
5.11.0
⚠️ Deprecations
- [deprecation]
no-unused-variableis deprecated because typescript now covers most of its functionality (#3919)
🎉 Features
- [new-rule]
file-name-casing(#3978)- [new-fixer] Add fixer for
switch-final-break(#3615)- [new-fixer] Implemented fixer for
member-orderingand added corresponding tests. (#3935)- [new-rule-option] Add whitelist for
no-implicit-dependencies(#3979)
🛠 Bugfixes & enhancements
- [bugfix]
no-use-before-declareFixes false positives when using the destructuring syntax (#3761) (#3876)- [bugfix] Fix Copyright: @license JSDoc tag was missing (#3879)
- [bugfix] Fix missing newline at end of file (#3896)
- [bugfix] allow-empty-functions option of
no-emptyrule is now properly respecting empty methods (#3897)- [bugfix]
no-magic-numbers- support for negative zero (#3903)- [bugfix] Handle tsconfig.json errors without using JSON.stringify (#3908)
- [bugfix] Fix CI:
no-implicit-dependenciestest failure; typescript@next failure (#4019)- [bugfix] Fix edge case in
no-consolerule (#4041)- [docs] Fix typos in the
no-floating-promisesrule docs. (#3886)- [docs] Updated
prefer-whiledocs to be semantically correct (#3888)- [docs] Fix link to configuration page (#3891)
- [docs] Fix docs typo (#3898)
- [docs] Fix docs typo (#3910)
- [enhancement] Turn on strictPropertyInitialization for src/ and test/ (#3924)
- [enhancement] Use Buffer.allocUnsafe instead of the deprecated new Buffer() (#3985)
- [enhancement] Improve
radixrule checks (#3901)- [enhancement] Output +/- on diff so added/removed empty lines are visible. (#3973)
- [rule-change]
no-implicit-dependenciesnow always considers peer dependencies (#3875)Thanks to our contributors!
- Bowen Ni
- Peter Safranek
- Saugat Acharya
- Jason Mendes
- Ryan Waskiewicz
- Dariusz Rumiński
- Xinhu Liu
- Rado Kirov
- aervin_
- Josh Goldberg
- mertdeg2
- Jason Killian
- Adrian Leonhard
- david-cannady
- Andy Russell
- Tibor Blenessy
- Andrew Crites
- Pavel Birukov
- shalomdotnet
Not all release notes shown. View the full release notes
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by more commits than we can show here.
👉 No CI detected
You don't seem to have any Continuous Integration service set up!
Without a service that will test the Depfu branches and pull requests, we can't inform you if incoming updates actually work with your app. We think that this degrades the service we're trying to provide down to a point where it is more or less meaningless.
This is fine if you just want to give Depfu a quick try. If you want to really let Depfu help you keep your app up-to-date, we recommend setting up a CI system:
- Circle CI, Semaphore and Travis-CI are all excellent options.
- If you use something like Jenkins, make sure that you're using the Github integration correctly so that it reports status data back to Github.
- If you have already set up a CI for this repository, you might need to check your configuration. Make sure it will run on all new branches. If you don’t want it to run on every branch, you can whitelist branches starting with
depfu/.
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.
All Depfu comment commands
- @depfu rebase
- Rebases against your default branch and redoes this update
- @depfu merge
- Merges this PR once your tests are passing and conflicts are resolved
- @depfu close
- Closes this PR and deletes the branch
- @depfu reopen
- Restores the branch and reopens this PR (if it's closed)
- @depfu pause
- Ignores all future updates for this dependency and closes this PR
- @depfu pause [minor|major]
- Ignores all future minor/major updates for this dependency and closes this PR
- @depfu resume
- Future versions of this dependency will create PRs again (leaves this PR as is)