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

Releases: palantir/tslint

v4.1.0

15 Dec 21:12
Compare
Choose a tag to compare
  • [new-rule] prefer-const (#1801)
  • [new-rule] strict-boolean-expressions (#1820)
  • [new-rule] no-magic-numbers (#1799)
  • [new-rule] import-blacklist (#1841)
  • [new-rule] promise-functions-async (#1779)
  • [new-rule] no-inferred-empty-object-type: a type must be specified when using a generic class/function/etc (#1821)
  • [new-rule-option] allow-named-functions added to only-arrow-functions (#1857)
  • [new-fixer] prefer-const (#1801)
  • [new-fixer] quotemark (#1790)
  • [new-formatter] code-frame formatter shows you the error in context (#1819)
  • [enhancement] no-internal-module failures highlight less text (#1781)
  • [enhancement] Avoid auto-fixing errors that would result in compilation errors for rules that use type-check (#1608)
  • [rule-change] only-arrow-functions will allow functions with a this parameter (#1597)
  • [bugfix] no-use-before-declare false positive on named import (#1620)
  • [bugfix] prefer-for-of was showing false positive when the element is assigned (#1813)
  • [bugfix] The command line argument type-check was swallowing the next argument (#1783)
  • [bugfix] tslint:disable-line was re-enabling tslint:disable (#1634)
  • [bugfix] adjacent-overload-signatures did not work for constructors (#1800)
  • [bugfix] checkstyle formatter was reporting errors under one file (#1811)
  • [bugfix] trailing-comma was applied to parameter lists (#1775)
  • [api] CLI logic moved into API friendly class (#1688)

Thanks to our contributors!

  • Alex Eagle
  • Andrii Dieiev
  • Andy Hanson
  • Art Chaidarun
  • Donald Pipowitch
  • Feisal Ahmad
  • Josh Goldberg
  • Klaus Meinhardt
  • Maciej Sypień
  • Mohsen Azimi
  • Ryan Lester
  • Simon Schick
  • Subhash Sharma
  • Timothy Slatcher
  • Yaroslav Admin
  • Yuichi Nukiyama
  • tdsmithATabc
  • @wmrowan

v4.0.2

23 Nov 16:30
Compare
Choose a tag to compare
  • [enhancement] Don't exit when a rule can't be found. Print as a warning instead (#1771)
  • [api-change] Allow 3rd party apps to see exception when the config is invalid (#1764)
  • [bugfix] Fix object-literal-key-quotes so that a property named as empty string needs quotes (#1762)
  • [bugfix] Report correct number of fixes done by --fix (#1767)
  • [bugfix] Fix false positives and exceptions in prefer-for-of (#1758)
  • [bugfix] Fix adjacent-overload-signatures false positive when a static function has the same name (#1772)

v4.0.0-dev.3

23 Nov 16:59
Compare
Choose a tag to compare
v4.0.0-dev.3 Pre-release
Pre-release
  • Include latest v4.0.2 changes

v4.0.1

20 Nov 00:28
Compare
Choose a tag to compare
  • [bugfix] Removed no-unused-variable rule from recommended config, as it was causing spurious deprecation warnings. #1748

v4.0.0

19 Nov 04:23
Compare
Choose a tag to compare

v4.0.0

Check out the blog post!

  • BREAKING CHANGES
    • [api-change] Simplification of the Node.js library API. See this PR for changes and upgrade instructions (#1720)
    • [removed-rule] Removed no-unreachable rule; covered by compiler (#661)
    • [enhancement] Changed order of applied configuration files for the extends array to make it more intuitive (#1503)
    • [enhancement] Changed TypeScript peer dependency to >= 2.0.0 (#1710)
  • [new-rule] completed-docs rule added (#1644)
  • [new-fixer] ordered-imports auto fixed (#1640)
  • [new-fixer] arrow-parens auto fixed (#1731)
  • [rule-change] indent rule now ignores template strings (#1611)
  • [new-rule-option] object-literal-key-quotes adds the options consistent and consistent-as-needed (#1733)
  • [enhancement] --fix option added to automatically fix selected rules (#1697)
  • [enhancement] Updated recommend rules (#1717)
  • [enhancement] adjacent-overload-signatures now works with classes, source files, modules, and namespaces (#1707)
  • [enhancement] Users are notified if they are using an old TSLint version (#1696)
  • [bugfix] Lint .jsx files if jsRules are configured (#1714)
  • [bugfix] Command line glob patterns now handle single quotes (#1679)

Thanks to our contributors!

  • Andrii Dieiev
  • Andy
  • Chris Barr
  • Davie Schoots
  • Jordan Hawker
  • Josh Goldberg
  • Stepan Riha
  • Yuichi Nukiyama

v4.0.0-dev.2

19 Nov 02:45
Compare
Choose a tag to compare
v4.0.0-dev.2 Pre-release
Pre-release

Include latest 4.0.0 changes

v4.0.0-dev.1

03 Nov 14:49
Compare
Choose a tag to compare
v4.0.0-dev.1 Pre-release
Pre-release
  • BREAKING CHANGES
    • [enhancement] The semicolon rule now disallows semicolons in multi-line bound class methods
      (to get the v3 behavior, use the ignore-bound-class-methods option) (#1643)
    • [removed-rule] Removed use-strict rule (#678)
    • [removed-rule] Removed label-undefined rule; covered by compiler (#1614)
    • [enhancement] Renamed no-constructor-vars to no-parameter-properties (#1296)
    • [rule-change] The orderedImports rule now sorts relative modules below non-relative modules (#1640)
  • Deprecated
  • [enhancement] Lint .js files (#1515)
  • [new-fixer] no-var-keyword replaces var with let (#1547)
  • [new-fixer] trailing-comma auto fixed (#1546)
  • [new-fixer] no-unused-variable auto fixed for imports (#1568)
  • [new-fixer] semicolon auto fixed (#1423)
  • [new-rule] max-classes-per-file rule added (#1666)
  • [new-rule-option] no-consecutive-blank-lines rule now accepts a number value indicating max blank lines (#1650)
  • [new-rule-option] ordered-inputs rule option input-sources-order accepts value any (#1602)
  • [bugfix] no-empty rule fixed when parameter has readonly modifier
  • [bugfix] no-namespace rule: do not flag nested or .d.ts namespaces (#1571)

Thanks to our contributors!

  • Alex Eagle
  • Andrii Dieiev
  • Ben Coveney
  • Boris Aranovich
  • Chris Barr
  • Cyril Gandon
  • Evgeniy Zhukovskiy
  • Jay Anslow
  • Kunal Marwaha
  • Martin Probst
  • Mingye Wang
  • Raghav Katyal
  • Sean Dawson
  • Yuichi Nukiyama
  • jakpaw

v4.0.0-dev.0

04 Oct 19:31
Compare
Choose a tag to compare
v4.0.0-dev.0 Pre-release
Pre-release

v4.0.0-dev.0

  • BREAKING CHANGES
    • [enhancement] Drop support for configuration via package.json (#1579)
    • [removed-rule] Removed no-duplicate-key rule; covered by compiler (#1109)
    • [enhancement] Call formatter once for all file results. Format output may be different (#656)
    • [rule-change] trailing-comma supports function declarations, expressions, and types (#1486)
    • [rule-change] object-literal-sort-keys now sorts quoted keys (#1529)
    • [rule-change] semicolon now processes type aliases (#1475)
    • [rule-change] no-var-keyword now rejects export var statements (#1256)
    • [rule-change] semicolon now requires semicolon for function declaration with no body (#1447)
  • [new-formatter] fileslist formatter writes a list of files with errors without position or error type specifics (#1558)
  • [new-rule] cyclomaticComplexity, enforces a threshold of cyclomatic complexity.] (#1464)
  • [new-rule] prefer-for-of, which errors when for(var x of y) can be used instead of for(var i = 0; i < y.length; i++) (#1335)
  • [new-rule] array-type, which can require using either `T[]' or 'Array' for arrays (#1498)
  • [rule-change] object-literal-sort-keys checks multiline objects only (#1642)
  • [rule-change] ban rule now can ban global functions (#327)
  • [bugfix] always write lint result, even if using formatter (#1353)
  • [bugfix] npm run test:bin fails on Windows (#1635)
  • [bugfix] Don't enforce trailing spaces on newlines in typedef-whitespace rule (#1531)
  • [bugfix] jsdoc rule should not match arbitrary comments (#1543)
  • [bugfix] one-line rule errors when declaring wildcard ambient modules (#1425)

Thanks to our contributors!

  • Alex Eagle
  • Andrii Dieiev
  • Andy Hanson
  • Ben Coveney
  • Boris Aranovich
  • Chris Barr
  • Christian Dreher
  • Claas Augner
  • Josh Goldberg
  • Martin Probst
  • Mike Deverell
  • Nina Hartmann
  • Satoshi Amemiya
  • Scott Wu
  • Steve Van Opstal
  • Umar Bolatov
  • Vladimir Matveev
  • Yui

v3.15.1

22 Aug 20:00
Compare
Choose a tag to compare
  • Enabled additional rules in tslint:latest configuration (#1506)

v3.15.0

22 Aug 15:17
Compare
Choose a tag to compare
  • Stable release containing changes from the last dev release (v3.15.0-dev.0)