Tslint Versions Save

:vertical_traffic_light: An extensible linter for the TypeScript language

5.18.0

4 years ago

Thanks to our contributors!

  • Josh Goldberg
  • smoehrle
  • Mateusz Witkowski
  • Andy Hanson
  • John Wiseheart
  • Eran Shabi
  • Tibor Blenessy
  • AndreasGassmann
  • Ryan Waskiewicz
  • Isabelle

5.17.0

5 years ago
  • [bugfix] quotemark backtic option now ignores enum members, use strict declarations, lookup types, and strings containing octal escape sequences. (#4693)
  • [bugfix] no-redundant-jsdoc no longer errors on JSDocThisTag (#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-declare rule for typescript >= 2.9.0 (#4695)
  • [documentation] Minor fix for variable-name rule metadata (#4731)
  • [documentation] Fixed no-unused-variable argument 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

5 years ago
  • [bugfix] Excuse more quotemark backtick edge cases and fix behavior for TS < 2.7.1 (#4642)
  • [bugfix] Fix regression in interface-name rule related to numeric characters in interface names (#4655, #4626)
  • [enhancement] Update nyc from 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-operands rule. (#4635)
  • [enhancement] comment-format rule now whitelists //region comments generated by JetBrains IDE (#4609)
  • [enhancement] Relax no-null-undefined-union rule. (#4625)
  • [new-rule-option] allow-else-if option for unnecessary-else rule (#4599)
  • [documentation] Fix "identifer" typo in custom rules docs (#4657)
  • [documentation] Fix code example for switch-default rule (#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

5 years ago
  • [api] WalkContext and AbstractWalker type parameter defaults to void (#2600)
  • [bugfix] no-void-expression now allows conditional expressions (#4606)
  • [bugfix] fix linebreak handling in ordered-imports (#4583)
  • [bugfix] fix static-this false positive for higher order components (#4580)
  • [bugfix] Fixed crash in unnecessary-else from blank if statements (#4603)
  • [bugfix] Fixed false positive in unnecessary-else after non-jumping statement (#4603)
  • [bugfix] interface-name now handles interface starting with "I18n" correctly (#4486)
  • [bugfix] no-string-throw fix inserts whitespace if not present after throw keyword (#4540)
  • [bugfix] quotemark: fix some edge cases for backtick option (#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-comments option for file-header rule (#4560)
  • [new-rule-option] ignore-rest-args option for no-any rule (#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

5 years ago
  • [bugfix] backtick option for quotemark rule no longer incorrectly flags string literals that must use single/double quotes (#4535)
  • [bugfix] Fixed regression in CheckstyleFormatter backwards compatibility (#4561)
  • [bugfix] whitespace rule now lints export statements (#4554)
  • [bugfix] no-trailing-whitespace no longer flags files starting with a byte order mark (#4543)
  • [enhancement] promise-function-async now 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 whitespace rule (#4551)
  • [enhancement] Add junit output for files which are successfully linted (#4566)
  • [new-rule-option] underscore option for no-shadowed-variable rule to ignore shadowed underscores (#4546)
  • [new-rule-option] require-const-for-all-caps option for variable-name rule (#2936)
  • [new-rule-option] overloads option for completed-docs rule to enforce documentation of each overload signature (#4563)
  • [new-rule-option] allow-namespace-imports option for no-duplicate-imports rule (#4524)
  • [new-rule-option] allow-arguments option for no-object-literal-type-assertion rule to allow type assertions on object literals used inside call expressions (#4521)
  • [new-rule-option] allow-delete option for no-unbound-method rule (#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

5 years ago
  • [bugfix] Fix regression in CheckstyleFormatter backwards compatibility (#4561)

5.13.0

5 years ago
  • [deprecation] Mark RuleWalker and ProgramAwareRuleWalker as deprecated (#4413)
  • [bugfix] Create output directory when the output path (specified by --out CLI flag) does not exist. (#4507)
  • [bugfix] Explicit disabling of rules is now copied over to jsRules when using jsRules: true (#4517)
  • [bugfix] unknown is recognized as simple type in array-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 syntax b.c(), which was not the intent of this rule. (#4383)
  • [bugfix] Fixed single-line comment parsing for completed-docs (#3557)
  • [bugfix] trailing-comma no longer crashes if it cannot find the closing parenthesis of a function declaration (#4457)
  • [bugfix] no-unsafe-any: allow implicitly downcasting any to unknown (#4442)
  • [bugfix] Add grouped-imports to tslint:all (#4420)
  • [docs] Fix docs typo (#4395)
  • [enhancement] Add "formatting" rule category (#2832)
  • [enhancement] ordered-imports now supports a groups option to provide custom grouping rules. (#4134)
  • [enhancement] Convert completed-docs to 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-type rule handles Typescript 3.0's unknown type properly (#4219)
  • [enhancement] import-blacklist now supports regular expression patterns for blacklisting (#3504)
  • [new-rule] no-restricted-globals (#3824)
  • [new-fixer] added fixer for newline-before-return rule (#4482)
  • [new-fixer] number-literal-format now includes auto fix (#4496)
  • [new-rule-option] Added whitelist option to no-unbound-method (#4472)
  • [new-rule-option] added jsx-ignore option to no-magic-numbers rule (#4460)
  • [new-rule-option]: object-literal-sort-keys: Add match-declaration-order-only option (#3748)
  • [new-rule-option] strict-boolean-expressions accepts ignore-rhs option 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

5 years ago

:hammer_and_wrench: Bugfixes & enhancements

  • [bugfix] Revert breaking change to tslint:recommended, update tslint:latest (#4404)
  • [bugfix] Correcting fixer for the increment-decrement rule (#4415)
  • [bugfix] Fix strict-type-predicates with unknown (#4444)
  • [bugfix] Skip linting of .json files to avoid problems with --resolveJsonModule compiler option (#4001)
  • [bugfix] fix some quotemark issues when using backticks with the avoid-template option (#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

5 years ago

:tada: Features

:hammer_and_wrench: Bugfixes & enhancements

  • [api] Allow exclude to 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-undefined rule (#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_modules folder 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]whitespace Don't require space between import and paren with in type imports (#4243)
  • [bugfix] remove no-unused-variable from tslint:all (#4079)
  • [bugfix]callable-types support interfaces containing a single construct signature (#4291) (#4352)
  • [bugfix]ordered-imports: Setting import-sources-order: any no longer invalidates grouped-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 homepage to 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: When grouped-imports option 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:column instead 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

5 years ago

:warning: Deprecations

  • [deprecation] no-unused-variable is deprecated because typescript now covers most of its functionality (#3919)

:tada: Features

:hammer_and_wrench: Bugfixes & enhancements

  • [bugfix] no-use-before-declare Fixes 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-empty rule 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-dependencies test failure; typescript@next failure (#4019)
  • [bugfix] Fix edge case in no-console rule (#4041)
  • [docs] Fix typos in the no-floating-promises rule docs. (#3886)
  • [docs] Updated prefer-while docs 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 radix rule checks (#3901)
  • [enhancement] Output +/- on diff so added/removed empty lines are visible. (#3973)
  • [rule-change] no-implicit-dependencies now 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