Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Releases: palantir/tslint

v5.10.0

03 May 23:31
ecab88c
Compare
Choose a tag to compare

v5.10.0

🎉 Features

🛠️ Bugfixes & enhancements

  • [bugfix] file-header rule plays nice with no-trailing-whitespace rule (#3802)
  • [bugfix] no-unbound-method rule allows square bracket property access (#3610)
  • [bugfix] no-unsafe-any no longer marks native JSX elements as unsafe (#3699)
  • [enhancement] file-header auto-fixes use '!' character to ensure header stays above imports (#3741)
  • [enhancement] Better error messages if a rule crashes (#3836)
  • [enhancement] Better error messages when no valid rules are specified (#3729)
  • [enhancement] Better lint messages for unused imports in no-unused-variable rule (#3831)
  • [docs] Improve documentation of cli flag --project (#3703)
  • [docs] Added short rationales for about thirty rules (#3734)
  • [docs] Added optional capability to provide code examples in rules' metadata (#3602)
  • [docs] Many small docs fixes and tweaks from many great contributors!

Thanks to our contributors!

  • Achim Weimert
  • BB9z
  • Blair Zajac
  • Chia-Lun Wu (Leo)
  • Ethan
  • Janis Koehr
  • Josh Goldberg
  • Julian Verdurmen
  • Lucas Sloan
  • Mark Vincze
  • Martin Möhwald
  • Oliver Joseph Ash
  • Pichest Wongsiripiphat
  • Rafael Santana
  • Ruben Bridgewater
  • Ryan Waskiewicz
  • Sehrope Sarkuni
  • Suchan Lee
  • Victor Belozyorov
  • aervin_
  • cwgorman
  • felipeissa
  • jishi9

v5.9.1

10 Jan 22:19
Compare
Choose a tag to compare

🛠️ Bugfixes

  • [bugfix] Removed extraneous deprecation warning produced when using tslint:recommended or tslint:latest by disabling typeof-compare in these rulesets. (#3639)
  • [bugfix] Resolve directories as absolute paths when validating custom rulesDirectory paths, which fixes usage with tslint-loader. (#3640)

v5.9.0

10 Jan 19:32
b5ebb9f
Compare
Choose a tag to compare

⚠️ Deprecations

  • [deprecation] Several utility functions from src/language/utils.ts have been deprecated (#3476)
  • [deprecation] Linting non-existent files now outputs a warning. This will be an error in TSLint 6. (#3313)

Configuration inheritance changes

Significant changes have been made to configuration inheritance to address a long-standing UX issue around defualtSeverity: #2569.

defaultSeverity defined in a tslint.json file will now override the defaultSeverity value defined in any configurations you are extending.
This means that any rules specified in the base configurations can now take on a new defaultSeverity if you so choose. If you extend multiple
configuration files, the defaultSeverity defined in the last one wins.

In practice, this allows users to, for example, more easily use the built-in TSLint configurations (tslint:recommended, tslint:latest, tslint:all)
and treat all errors as warnings instead of errors.

For more details, see the relevant PRs:

  • Override defaultSeverity defined in extended configs (#3449)
  • Inherit defaultSeverity and apply it to preceding base configs (#3530)

🎉 Features

🛠️ Bugfixes & enhancements

Thanks to our contributors!

  • Klaus Meinhardt
  • Josh Goldberg
  • Chris Barr
  • Nathan Shively-Sanders
  • Jeremy Morton
  • Sergey Koshechkin
  • Daniel Kucal
  • Eric Smekens
  • Johannes Choo
  • Elena Vilchik
  • Eugene Timokhov
  • Carlo Bottiglieri
  • reduckted
  • Glavin Wiechert
  • jbsingh
  • Mateusz Witkowski
  • HideDev
  • Bruno Lemos
  • aervin_
  • Roman
  • Ryan Waskiewicz

v5.8.0

20 Oct 19:01
Compare
Choose a tag to compare

⚠️ Deprecations

  • [deprecation] typeof-compare is deprecated because typescript already does that check (#3286)
  • [deprecation] CLI argument --type-check is no longer necessary and will be removed in the next major version (#3322)

⚠️ Updates to tslint:latest configuration

+    "ban-comma-operator": true,
+    "jsdoc-format": {
+        options: "check-multiline-start",
+    },
+    "no-duplicate-switch-case": true,
+    "no-implicit-dependencies": true,
+    "no-return-await": true,

🎉 Features

🛠️ Bugfixes & enhancements

Thanks to our contributors!

  • Klaus Meinhardt
  • Charles Samborski
  • Donald Pipowitch
  • Josh Goldberg
  • mmkal
  • Erik
  • Csaba Miklos
  • Dominik Moritz
  • Khalid Saifullah
  • Lukas Spieß
  • Merott Movahedi
  • Bowen Ni
  • ksvitkovsky
  • Hutson Betts
  • Caleb Eggensperger
  • Brent Erickson
  • Trivikram
  • Brandon Furtwangler
  • Pavel Zet
  • aervin_
  • Holger Jeromin
  • Danny Guo
  • Jeremy Morton
  • Cyril Gandon
  • Andy Hanson
  • yadan

v5.7.0

25 Aug 20:18
Compare
Choose a tag to compare

🎉 New rules, options, and fixers

🛠️ Bugfixes & enhancements

  • [api] AbstractRule#applyWithFunction allows additional parameter that is passed through to walkFn (#3140)
  • [api] AbstractRule#applyWithFunction has better type checking for its type parameter (#2660)
  • [bugfix] member-access autofix now correcly inserts public keyword after decorators (#3162)
  • [bugfix] prefer-const correctly handle catch without binding parameter introduced in typescript@2.5.1 (#3151)
  • [bugfix] no-invalid-template-strings allows backslash-prefixed template expressions (#3116)
  • [bugfix] deprecation no longer shows errors on imports and exports (#3141)
  • [bugfix] deprecation: fix false positive when calling a function or method where another overload is deprecated (#2883)
  • [bugfix] whitespace: fixed "check-separator" for trivial for cases. (#3132)
  • [bugfix] prefer-object-spread prevent spreading this as it is not allowed by the compiler (#3126)
  • [bugfix] msbuild formatter uses backslashes in paths on Windows (#3145)
  • [bugfix] no-namespace ignores global augmentation (#3161)
  • [enhancement] remove superfluous empty lines on tslint output. (#3121)
  • [enhancement] no-submodule-imports allows whitelisting of submodules like @angular/core/testing (#3129)
  • [enhancement] custom lint rules will be resolved using node's path resolution to allow for loaders like ts-node (#3108)
  • [enhancement] quotemark no longer requires "single" or "double" to be the first option. The rule defaults to "double" if none is specified. (#3114)
  • [enhancement] no-unused-variable autofix removes trailing comments of imports (#3156)
  • [enhancement] no-unnecessary-type-assertion allows certain necessary assertions to prevent type widening (#3120)

Thanks to our contributors!

  • Paul Gschwendtner
  • Andy Hanson
  • ksvitkovsky
  • Santi Albo
  • aervin
  • Junle Li
  • Joscha Feth
  • WiseBird
  • Caleb Eggensperger
  • WGroenestein
  • Bowen Ni

v5.6.0

07 Aug 22:20
Compare
Choose a tag to compare

🎉 New rules, options, and fixers

🛠️ Bugfixes & enhancements

Thanks to our contributors!

  • Klaus Meinhardt
  • Julian Verdurmen
  • Alexandre Alonso
  • Josh Goldberg
  • ksvitkovsky
  • Daisuke Yokomoto
  • Andrii Dieiev
  • Florent Suc
  • Jason Killian
  • Amin Pakseresht
  • reduckted
  • vilicvane
  • Russell Briggs
  • Andy Hanson
  • Leo Liang
  • Dan Homola
  • BehindTheMath
  • David Golightly
  • aervin
  • Daniel Kucal
  • Ika
  • Chris Barr

v5.5.0

05 Jul 18:46
Compare
Choose a tag to compare

Editor's note: This release features an important bugfix for overlapping fixes when using --project and --fix (#2864).

🎉 New rules and options

🛠️ Bugfixes & enhancements

Thanks to our contributors!

  • Klaus Meinhardt
  • Josh Goldberg
  • Petr Kosikhin
  • Pablo Núñez
  • Benny Neugebauer
  • Radon Rosborough
  • reduckted
  • Chris Barr
  • Julian Verdurmen

v5.4.3

06 Jun 16:25
Compare
Choose a tag to compare

🛠️ Bugfixes

v5.4.2

01 Jun 18:33
Compare
Choose a tag to compare

🛠️ Bugfixes

  • [bugfix] Restored support for multiple --exclude options in the CLI (#2855)
  • [bugfix] Restored support for --version CLI option (#2857)

v5.4.1

01 Jun 15:37
Compare
Choose a tag to compare

🛠️ Bugfixes

  • [bugfix] Fixed regression in --exclude CLI option when using --project (#2852)