Closed greenkeeper[bot] closed 6 years ago
Update to this version instead 🚀
no-parameter-reassignment
(#3045)object-literal-sort-keys
: Add match-declaration-order
option (#2829)check-type-operator
for whitespace
rule (#3083)whitespace
: Add check-rest-spread
option (#3089)AbstractRule#applyWithFunction
allows additional parameter that is passed through to walkFn
(#3140)AbstractRule#applyWithFunction
has better type checking for its type parameter (#2660)member-access
autofix now correcly inserts public
keyword after decorators (#3162)prefer-const
correctly handle catch
without binding parameter introduced in typescript@2.5.1
(#3151)no-invalid-template-strings
allows backslash-prefixed template expressions (#3116)deprecation
no longer shows errors on imports and exports (#3141)deprecation
: fix false positive when calling a function or method where another overload is deprecated (#2883)whitespace
: fixed "check-separator"
for trivial for
cases. (#3132)prefer-object-spread
prevent spreading this
as it is not allowed by the compiler (#3126)msbuild
formatter uses backslashes in paths on Windows (#3145)no-namespace
ignores global augmentation (#3161)no-submodule-imports
allows whitelisting of submodules like @angular/core/testing
(#3129)ts-node
(#3108)quotemark
no longer requires "single"
or "double"
to be the first option. The rule defaults to "double"
if none is specified. (#3114)no-unused-variable
autofix removes trailing comments of imports (#3156)no-unnecessary-type-assertion
allows certain necessary assertions to prevent type widening (#3120)Thanks to our contributors!
Update to this version instead 🚀
typeof-compare
is deprecated because typescript already does that check (#3286)--type-check
is no longer necessary and will be removed in the next major version (#3322)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,
linterOptions
configuration field to tslint.json
, which supports a list of exclude
globs to disable linting for a subset of files (#2409)no-return-await
(#3233)no-redundant-jsdoc
(#2754)no-duplicate-switch-case
(#2937)no-implicit-dependencies
(#3343)no-unnecessary-class
(#3119)ban-comma-operator
(#3250)one-line
(#3200)curly
(#3262)jsdoc-format
adds option "check-multiline-start"
to enforce the first line of a multiline JSDoc comment to be empty. (#3181)trailing-comma
adds option "esSpecCompliant"
to make it compatible with the ES spec regarding trailing commas after object/array rest and rest parameters. (#3176)"check-parameter-property"
option for member-access
rule (#3325)"strict-bound-class-methods"
option for semicolon
rule (#3294)"grouped-imports"
option for ordered-imports
rule (#3138)"ignore-blank-lines"
option for no-trailing-whitespace
rule (#3346)"never"
option for object-literal-shorthand
disallows shorthand notation (#3268)"exclude-class-expressions"
option for max-classes-per-file
rule (#3281)no-unnecessary-type-assertion
supports a whitelist of types to ignore (#3257)"module-source-path"
for ordered-imports
allows sorting imports by trailing end of path (#3178)no-empty-interface
allows providing type arguments for extended type (#3260)return-undefined
handles union return types in async functions (#3298)deprecation
checks correct constructor overload (#3203)return-undefined
declared return type takes precedence over contextual type (#3298)inputFilePath
as an optional parameter in Configuration.findConfiguration()
(#3195)return-undefined
fixed regressions: once again allows anything if return type is any
(#3298)only-arrow-functions
allow function if this
is used in parameter initializer (#3315)no-conditional-assignment
: exclude intentional assignments, e.g. inside functions (#2629)no-angle-bracket-type-assertion
fixer adds parentheses when necessary (#3301)no-angle-bracket-type-assertion
fixed order when autofixing consecutive assertions (#3301)vso
formatter no longer duplicates output for fixed failures (#3348)no-unbound-method
: Allow negation of method (#3349)arrow-parens
with option "ban-single-arg-parens"
no longer produces invalid code when fixed (#3247)tslint.json
stopped at the current directory. (#3309)--test
works correctly with any compilerOptions.target
(#3296)whitepace
handles files with BOM and other irregular whitespace (#3305)callable-types
auto fix produces invalid results (#3342)no-string-literal
correctly fix property names with leading underscores (#3184)variable-name
fixed crash on empty variable name (#3292)trailing-comma
fixed crash on arrow function without parens (#3246)space-before-function-paren
for anonymous/arrow generic functions (#3085)no-unused-variable
along with the noUnusedLocals
and noUnusedParameters
compiler options (#3227)no-invalid-this
ignores functions with a this
param (#3267)import-blacklist
also checks exports and dynamic imports (#3258)no-conditional-assignment
added check for conditional (ternary) expressions (#2629)completed-docs
to list doc tags that mark a node as not requiring a documentation body. Tags can also provide a regexp matcher to validate that their contents are docs-valid. (#2415)await-promise
enforces that for-await-of
is only used with AsyncIterable
(#3297)one-line
checks type alias declarations (#3200)deprecation
checks object destructuring (#3318)no-submodule-imports
also checks exports (#3258)restrict-plus-operands
: More specific error message when arguments include strings (#3220)no-unsafe-any
checks more expressions, for example destructuring, yield
, property initializer (#3196)object-literal-sort-keys
: allow grouping of object properties via additional blank lines when using alphabetical ordering. (#3191)colors
module to chalk
module (#3171)no-unused-variable
applies the ignorePattern to imports (#3187)Thanks to our contributors!
Version 5.6.0 of tslint just got published.
The version 5.6.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.6.0no-duplicate-imports
(#3075)no-submodule-imports
(#3091)space-within-parens
(#2959)member-access
(#2969)no-null-keyword
: fixx == null
tox == undefined
(#2802)no-shadowed-variable
let's you optionally ignore certain kinds of declarations (#3030)prefer-conditional-expression
addscheck-else-if
(#2963)array-type
: considerthis
to be simple type (#2982)await-promise
accepts not only union types but also intersection types with Promise-like types (#2987)callable-types
: don't remove export modifier of interfaces (#2962)completed-docs
: Only checks variables at the file-level. (#2950)completed-docs
: Uses correct visibility of variables. (#2950)no-floating-promises
: recognize rejection handler passed as second argument topromise.then()
(#3048)no-shadowed-variable
don't warn for shadowed type parameter on static class members (#3030)no-shadowed-variable
fixed false positive with key name in index signature (#3030)no-shadowed-variable
fixed false positive with parameter inside function decorator (#3030)no-unsafe-any
: allow truthyness and falsyness checks (#3008)no-unused-variable
fixed crash when using destructuring (#3058)one-line
correctly handles multiline type parameters (#3004)prefer-for-of
fixed false positives when array is modified, e.g.arr[i]++
(#3044)prefer-object-spread
adds parens when fixing arrow function return (#3026)prefer-object-spread
permit functions as first argument to Object.assign (#3098)space-before-function-paren
Handle default exports of functions without names like anonymous functions (fixes #3040) (#3053)./test/parse
could not be located due after consumers had runyarn clean
(#3072)no-null-keyword
allows strict comparison (#2802)no-switch-case-fall-through
matches// falls through
comments case insensitive and allows trailing text (#2983)ordered-imports
: support importEqualsDeclaration (#3102)no-inferrable-types
(#2885)prefer-conditional-expression
: ignoreif-else-if
by default. Use the new"check-else-if"
option to check nested if statements (#2963)Thanks to our contributors!
Not sure how things should work exactly?
There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html) and of course you may always [ask my humans](https://github.com/greenkeeperio/greenkeeper/issues/new).Your Greenkeeper Bot :palm_tree: