This repository has been archived by the owner on Jan 11, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Update tslint to the latest version 🚀 #325
Open
greenkeeper
wants to merge
1
commit into
master
Choose a base branch
from
greenkeeper/tslint-5.0.0
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Version 5.1.0 just got published.Update to this version instead 🚀 Release Notesv5.1.0
|
Version 5.2.0 just got published.Update to this version instead 🚀 Release Notesv5.2.0
Thanks to our contributors!
|
Version 5.3.0 just got published.Update to this version instead 🚀 Release Notesv5.3.0This change may require a change to tslint.json
🎉 Notable features & enhancements
Thanks to our contributors!
|
Version 5.3.2 just got published.Update to this version instead 🚀 Release Notesv5.3.2
|
Version 5.4.2 just got published. |
Version 5.4.3 just got published.Update to this version instead 🚀 Release Notesv5.4.3🛠 Bugfixes
|
Version 5.5.0 just got published.Update to this version instead 🚀 Release Notesv5.5.0Editor's note: This release features an important bugfix for overlapping fixes when using 🎉 New rules and options
🛠 Bugfixes & enhancements
Thanks to our contributors!
|
Version 5.6.0 just got published.Update to this version instead 🚀 Release Notesv5.6.0🎉 New rules, options, and fixers
🛠 Bugfixes & enhancements
Thanks to our contributors!
|
Version 5.7.0 just got published.Update to this version instead 🚀 Release Notesv5.7.0🎉 New rules, options, and fixers
🛠 Bugfixes & enhancements
Thanks to our contributors!
|
Version 5.8.0 just got published.Update to this version instead 🚀 Release Notesv5.8.0
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Version 5.0.0 of tslint just got published.
The version 5.0.0 is not covered by your current version range.
Without accepting this pull request your project will work just like it did before. There might be a bunch of new features, fixes and perf improvements that the maintainers worked on for you though.
I recommend you look into these changes and try to get onto the latest version of tslint.
Given that you have a decent test suite, a passing build is a strong indicator that you can take advantage of these changes by merging the proposed change into your project. Otherwise this branch is a great starting point for you to work on the update.
Release Notes
v5.0.0🔥 Breaking changes
msbuild
was outputting all failures as "warning".pmd
was outputting all failures as priority 1. Now, it uses priority 3 for "error" (default) and priority 4 for "warning"json
changed thefix
property to now contain either one replacement or an array of replacements (#2403)tslint:recommended
configuration updated withtslint:latest
rules & options (#2424)no-unused-new
rule, with logic moved intono-unused-expression
(#2269)no-trailing-whitespace
now checks template strings by default. Use the new optionsignore-template-strings
to restore the old behavior. (#2359)API breaks for custom rules
Removed method
skip
fromRuleWalker
(#2313)Removed all use of the TypeScript Language Service, use only Program APIs instead (#2235)
This means that some rules that previously worked without the type checker now require it. This includes:
no-unused-variable
no-use-before-declare
This breaks custom rule compilation. If your rule was not using the
ts.LanguageService
APIs, the migration is quite simple:Removed
createFix
. Replacements should be passed directly into addFailure. (#2403)Removed deprecated
scanAllTokens
andskippableTokenAwareRuleWalker
(#2370)🎉 Notable features & enhancements
[feature] The severity level of rules are now individually configurable. Default severity can also be configured. (#629, #345)
severity
:default
|error | warn | warning | none | off
defaultSeverity
:error | warn | warning | none | off
callable-types
outputs errors andmax-line-length
outputs warnings):[new-rule]
prefer-template
(#2243)[new-rule]
return-undefined
(#2251)[new-rule]
no-reference-import
(#2273)[new-rule]
no-unnecessary-callback-wrapper
(#2249)[new-fixer]
linebreak-style
(#2394)[new-fixer]
eofline
(#2393)Full list of changes
OptionallyTypedRule
, which allows rule authors to write a rule that applies when typing is either enabled or disabled (#2300)prefer-function-over-method
now ignores abstract methods (#2307)arrow-parens
with optionban-single-arg-parens
now correctly handles functions with return type annotation (#2265)prefer-function-over-method
exclude overload signatures (#2315)use-isnan
now applies only to comparison operators (#2317)file-header-rule
now handles single-line comments correctly (#2320)newline-before-return
: fix handling of blank lines between comments (#2321)trailing-comma
No longer enforce trailing commas in type parameters and tuple types (#2236)align
don't fix if it would remove code (#2379)unified-signatures
now recognizes rest parameters (#2342)no-inferrable-types
don't warn for inferrable type on readonly property (#2312)trailing-comma
no longer crashes on new without parentheses (e.g.new Foo
) (#2389)semicolon
Ignore comments when checking for unnecessary semicolon (#2240)semicolon
Don't report unnecessary semicolon when followed by regex literal (#2240)--force
is specified (#2322)--test
now correctly strips single quotes from patterns on windows (#2322)prefer-const
only fix initialized variables (#2219)prefer-const
correctly handle variables shadowed by parameters and catched exceptions (#2219)prefer-const
don't warn if one variable in a for loop initializer can not be const (#2219)prefer-const
handle more cases in destructuring (#2219)no-unused-expression
allow comma separated assignments (#2269)ignore-properties
option ofno-inferrable-types
now also ignores parameter properties (#2312)unified-signatures
now displays line number of the overload to unify if there are more than 2 overloads (#2270)trailing-comma
New checks for CallSignature and NamedExports (#2236)semicolon
New check for export statements, function overloads and shorthand module declaration (#2240)semicolon
Report unnecessary semicolons in classes and in statement position (for option "always" too) (#2240)semicolon
check for semicolon after method overload (#2240)array-type
now considerobject
,undefined
andnever
as simple types, allowingobject
,undefined[]
andnever[]
(#1843)(#2353)align
check statement alignment for all blocks (#2379)align
check parameter alignment for all signatures (#2379)--test
can handle multiple paths at once (#2322)only-arrow-functions
allow functions that usethis
in the body (#2229)--type-check
is used without--project
(#2322)-p
as shorthand for--project
to be consistent withtsc
(#2322)prefer-const
show warnings forvar
(#2219)quotemark
fixer unescapes original quotemark (e.g.'\''
->"'"
) (#2359)no-unused-expression
allow indirect eval(0, eval)("");
(#2269)no-unused-expression
checking for unused new can now use optionallow-fast-null-checks
(#2269)no-unused-expression
find unused comma separated expressions in all locations of the code (#2269)no-unused-expression
find unused expressions inside void expression (#2269)defaultSeverity
with optionserror
,warning
, andoff
. (#2416)no-unused-expression
adds optionallow-tagged-template
to allow tagged templates for side effects (#2269)no-unused-expression
adds optionallow-new
to allownew
without using the new object (#2269)member-access
addsno-public
option (#2247)curly
added optionignore-same-line
(#2334){destructuring: "all"}
to only warn if all variables in a destructuring can be const (#2219)ignore-template-strings
tono-trailing-whitespace
(#2359)array-type
now considerundefined
andnever
as simple types, allowingundefined[]
andnever[]
(#1843)Thanks to our contributors!
Not sure how things should work exactly?
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot 🌴