chore(deps): update dependency tslint to v5 #118
Merged
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.
This PR contains the following updates:
3.15.1->5.20.1Release Notes
palantir/tslint
v5.20.1Compare Source
No changes from v5.20.0, just re-released to correctly mark with the
latestdist-tag on NPM.v5.20.0Compare Source
strict-boolean-expressionsfalse positive with"ignore-rhs"option (#4833)no-unnecessary-type-assertionno error when"strict": truein compiler flags (#4841)file-name-casingrule works correctly (#4848)array-typefalse positive for simple parenthesized types with "array-simple" option (#4844)object-literal-shorthandsupports{"property"?: "never", "method"?: "never"}as config options (#4842)allow-genericsoption forinvalid-voidrule (#4839)check-super-callsoption forunnecessary-constructorrule (#4813)diffdependency to v4.0.1 (#4845, #4852)Thanks to our contributors!
v5.19.0Compare Source
promise-function-asyncfor short parenthesized arrow functions (#4765)no-async-without-awaitfalse positive for abstract methods (#4782)strict-comparisonsfalse positive fornullandundefinedliterals (#4786)no-angle-bracket-type-assertionautofix semantics with more parentheses (#4823)restrict-plus-operandsrule (#4814)await-promisenow supports new TypeScript 3.6 AST API symbols for async iterators (#4800)check-stringsandcheck-regexoptions formax-line-lengthrule (#4798)variable-declaration-ignore-functionoption fortypedefrule (#4769)ignore-blank-linesoption forobject-literal-sort-keysrule (#4808)no-for-in(#4747)invalid-void(#4736)strict-string-expressionsreports errors on type coercions found in string expressions (#4807)no-promise-as-boolean(#4790)Thanks to our contributors!
v5.18.0Compare Source
--print-configCLI flag (#4744)no-unnecessary-type-assertionno longer flagsx!non-null assertions if--strictNullChecksis not enabled (#3724)quotemarkhandles unbalanced quotes more gracefully without crashing (#4344)no-magic-numbersrule ignores arguments passed into default Number methods (#3668)comment-format(#3583)"allow-trailing-lowercase"option forcomment-formatrule (#3583)"ignore-accessors"foradjacent-overload-signaturesto ignore getters / setters overloads (#3718)no-async-without-await(#3945)strict-comparisons(#4519)Thanks to our contributors!
v5.17.0Compare Source
quotemarkbacktic option now ignores enum members, use strict declarations, lookup types, and strings containing octal escape sequences. (#4693)no-redundant-jsdocno longer errors onJSDocThisTag(#4690)no-use-before-declarerule for typescript >= 2.9.0 (#4695)variable-namerule metadata (#4731)no-unused-variableargument count (#4683)no-object-literal-type-assertion(#4681)unnecessary-constructor(#4694)Thanks to our contributors!
v5.16.0Compare Source
quotemarkbacktick edge cases and fix behavior for TS < 2.7.1 (#4642)interface-namerule related to numeric characters in interface names (#4655, #4626)nycfrom v10.2.0 to v13.3.0 (#4633)restrict-plus-operandsrule. (#4635)comment-formatrule now whitelists//regioncomments generated by JetBrains IDE (#4609)no-null-undefined-unionrule. (#4625)allow-else-ifoption forunnecessary-elserule (#4599)switch-defaultrule (#4650)no-parameter-properties: fix unclear rule description (#4629)Thanks to our contributors!
v5.15.0Compare Source
WalkContextandAbstractWalkertype parameter defaults tovoid(#2600)no-void-expressionnow allows conditional expressions (#4606)ordered-imports(#4583)static-thisfalse positive for higher order components (#4580)unnecessary-elsefrom blankifstatements (#4603)unnecessary-elseafter non-jumping statement (#4603)interface-namenow handles interface starting with "I18n" correctly (#4486)no-string-throwfix inserts whitespace if not present afterthrowkeyword (#4540)quotemark: fix some edge cases forbacktickoption (#4618)unnecessary-constructor: don't flag non-private constructors that are actually necessary (#4619)allow-single-line-commentsoption forfile-headerrule (#4560)ignore-rest-argsoption forno-anyrule (#4581)no-null-undefined-union(#4589)Thanks to our contributors!
v5.14.0Compare Source
backtickoption forquotemarkrule no longer incorrectly flags string literals that must use single/double quotes (#4535)whitespacerule now lints export statements (#4554)no-trailing-whitespaceno longer flags files starting with a byte order mark (#4543)promise-function-asyncnow allows single statement lamda functions that delegate to another promise-returning function (#4553)whitespacerule (#4551)underscoreoption forno-shadowed-variablerule to ignore shadowed underscores (#4546)require-const-for-all-capsoption forvariable-namerule (#2936)overloadsoption forcompleted-docsrule to enforce documentation of each overload signature (#4563)allow-namespace-importsoption forno-duplicate-importsrule (#4524)allow-argumentsoption forno-object-literal-type-assertionrule to allow type assertions on object literals used inside call expressions (#4521)allow-deleteoption forno-unbound-methodrule (#4548)no-tautology-expression(#4470)static-this(#4475)unnecessary-else(#4502)Thanks to our contributors!
v5.13.1Compare Source
v5.13.0Compare Source
RuleWalkerandProgramAwareRuleWalkeras deprecated (#4413)--outCLI flag) does not exist. (#4507)jsRules: true(#4517)unknownis recognized as simple type inarray-type(#4433)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 syntaxb.c(), which was not the intent of this rule. (#4383)trailing-commano longer crashes if it cannot find the closing parenthesis of a function declaration (#4457)no-unsafe-any: allow implicitly downcastinganytounknown(#4442)grouped-importstotslint:all(#4420)ordered-importsnow supports a groups option to provide custom grouping rules. (#4134)completed-docsto an untyped rule (#3557)array-typerule handles Typescript 3.0's unknown type properly (#4219)import-blacklistnow supports regular expression patterns for blacklisting (#3504)no-restricted-globals(#3824)newline-before-returnrule (#4482)number-literal-formatnow includes auto fix (#4496)whitelistoption tono-unbound-method(#4472)jsx-ignoreoption tono-magic-numbersrule (#4460)object-literal-sort-keys: Addmatch-declaration-order-onlyoption (#3748)strict-boolean-expressionsacceptsignore-rhsoption to disable checking the right-hand side of the&&and||operators as strictly boolean. (#4159)Thanks to our contributors!
v5.12.1Compare Source
v5.12.0Compare Source
v5.11.0Compare Source
v5.10.0Compare Source
v5.9.1Compare Source
v5.9.0Compare Source
v5.8.0Compare Source
v5.7.0Compare Source
v5.6.0Compare Source
v5.5.0Compare Source
Editor's note: This release features an important bugfix for overlapping fixes when using
--projectand--fix(#2864).v5.4.3Compare Source
v5.4.2Compare Source
v5.4.1Compare Source
v5.4.0Compare Source
v5.3.2Compare Source
not a directoryerror (#2813)v5.3.0Compare Source
v5.2.0Compare Source
no-consolebans all console methods when no methods are specified (#2610)no-object-literal-type-assertion(#2580)no-irregular-whitespace(#2487)prefer-switch(#2331)number-literal-format(#2526)deprecation(#2395)no-unnecessary-type-assertion(#2519)interface-over-type-literal(#2617)callable-types(#2552)no-string-literal(#2495)no-internal-module(#2517)alignrule addedmembersoption, which checks alignment of methods and properties of classes, objects, interfaces, type literals and object destructuring (#2387)alignrule addedelementsoption, which checks alignment of elements in array literals, array destructuring and tuple types (#2387)trailing-commaadds more granular options to specify trailing commas for arrays, objects, functions, type literals, imports, and exports (#2538)ScopeAwareRuleWalkerandBlockScopeAwareRuleWalker. (#2561)no-unused-expression: allowvoid(0)in addition tovoid 0andvoidin expression and statement position (#2645)align: fix false positive for files with BOM (#2642)return-undefined: Handle contextual types with ambiguous signatures; allowany; and handle async functions. (#2576)semicolon: don't mark semicolon as unnecessary when the next statement is on the same line (#2591)no-internal-module: no more false positives for global augmentation (#2517)no-unnecessary-qualifier: no longer breaks when walking a function that referencesarguments(#2555)prefer-constno longer shows warnings on ambient declarations (#2391)callable-types: suggest correct fix for interfaces with type arguments (#2552)quotemark: fix regression with jsx attributes (#2605)adjacent-overload-signatureshandles functions ending in semicolon (#2412)object-literal-key-quotes: correctly stringify numbers when fixing (#2515)object-literal-key-quotes: does no longer require quotes for property names containing digits (#2515)align: Don't report 'statements are not aligned' for empty statements (#2653)class-namenow also checks class expressions (#2553)optionExamples: Allow to use an options array directly instead of a string representation. (#2527)rulesDirectorycan now be resolved with Nodes resolve logic, if the directory contains anindex.js(#2163) (#2358)no-unused-expression: narrow error location for comma separated expressions and conditional expressions (#2645)no-string-literalnow handles escaped strings (#2495)no-unnecessary-callback-wrapper: Allowx => x(x)(#2524)no-var-keyword: Allow global var declarations (#2513)Thanks to our contributors!
v5.1.0Compare Source
no-invalid-template-strings(#2332)no-sparse-arrays(#2407)no-void-expression: addsignore-arrow-function-shorthand(#2445)tslint:allconfiguration (#2417)no-reference-importfromjsRulestorules(#2441)no-unnecessary-callback-wrapper: only check if callback is identifier, allow all other expressions (#2510)member-access: Skip index signature, it can not have an access modifier (#2437)restrict-plus-operandsfixes regression where every assignment and comparison was checked (#2454)no-unnecessary-callback-wrapper: allow async wrapper function (#2510)prefer-for-of: No error ifdeleteis used (#2458)radix: don't warn for missing radix on method calls (#2352)no-use-before-declare: Handle symbol with empty declarations list. (#2436)strict-type-predicates: Check for construct signatures inisFunction. (#2479)strict-boolean-expressions: When--strictNullChecksis turned off,allow-null-unionandallow-undefined-unionturn off "always truthy" errors. (#2373)radix: added check for global.parseInt and window.parseInt (#2352)arrow-return-shorthand: Improve failure message when return expression is an object literal (#2466)Thanks to our contributors!
v5.0.0Compare Source
v4.5.1Compare Source
ban-typesandno-duplicate-super(#2271)object-literal-key-quoteshandle negative number property name (#2273)v4.5.0Compare Source
no-import-side-effect(#2155)match-default-export-name(#2117)no-non-null-assertion(#2221)ban-types(#2175)no-duplicate-super(#2038)newline-before-return(#2173)completed-docsadds options for location, type, and privacy. Also adds interfaces, enums, types (#2095)no-inferrable-typesadds optionignore-properties(#2178)typedefadds optionsobject-destructuringandarray-destructuringoptions (#2146)member-orderingadds optionalphabetize(#2101)no-trailing-whitespaceadds optionignore-jsdoc(#2177)no-trailing-whitespaceadds optionignore-commentsoption (#2153)no-inferrable-typesautomatically remove inferrable type annotations (#2178)no-any(#2165)noConsecutiveBlankLines(#2201)object-literal-shorthand(#2165)no-switch-case-fallthroughhandle break, throw, continue and return nested in block, if-else and switch (#2218)no-switch-case-fallthroughallow empty case clauses before default clause (#2218)no-mergeable-namespaceignore property types that can't be merged (#2105)object-literal-key-quotesno need to quote a float if its .toString() is the same. (#2144)no-consecutive-blank-linesCorrectly apply fixes at EOF (#2239)quotemarknow handles escaped chars (#2224)no-switch-case-fallthroughallow single line comment// falls through(#2218)no-unbound-methodallows property access and binary expressions (#2143)AbstractWalkerfor performance (#2093)Thanks to our contributors!
v4.4.2Compare Source
whitespacerule caused false positive on EOF (#2131)jsonformatter parameter has extra space (#2132)v4.4.1Compare Source
no-misused-new)v4.4.0Compare Source
arrow-return-shorthand(#1972)no-unbound-method(#2089)no-boolean-literal-compare(#2013)no-unsafe-any(#2047)no-unnecessary-qualifier(#2008)no-unnecessary-initializer(#2106)await-promise(#2102)no-floating-promises(#1632)strict-type-predicates(#2046)no-misused-new(#1963)prefer-method-signature(#2028)prefer-function-over-method(#2037)allow-fast-null-checksadded tono-unused-expression(#1638)comment-format-ruleaddsignore-wordsandignore-patternoptions (#1757)whitespaceaddscheck-preblockoption (#2002)strict-boolean-expressionsaddsallow-null-union,allow-undefined-union,allow-string, andallow-numberand (#2033)align(#2097)no-trailing-whitespace(#2060)no-magic-numbersfalse positive on default parameter values (#2004)no-empty-interfaceallow empty interface with 2 or more parents (#2070)no-trailing-whitespacefixed for comments and EOF (#2060)no-emptyno longer fails for private or protected constructor (#1976)tslint:disable/tslint-enablenow handles multiple rules and fixes what code is enabled/disabled (#2061)no-inferrable-typesnow validates property declarations (#2081)unified-signaturesfalse positive (#2016)whitespacefinds all whitespace errors in JsxExpressions and TemplateExpressions (#2036)comment-formatno more false positives in JsxText (#2036)--testoption now accepts glob (#2079)Thanks to our contributors!
v4.3.1Compare Source
v4.3.0Compare Source
tslint:latestconfiguration (#1981)space-before-function-paren(#1897)typeof-compare(#1927)import-spacing(#1935)unified-signatures(#1944)object-literal-key-quotes(#1953)no-angle-bracket-type-assertion(#1979)adjacent-overload-signaturenow handles static/computed function names (#1831)file-headernow handles files with only comments (#1913)no-consecutive-blank-linesnow allows blank lines in template strings (#1886)object-literal-key-quotesno longer throws exception when using rest operator (#1916)restrict-plus-operandsno longer shows false positive in ternary operation (#1925)prefer-for-ofnow handles nestedforloops with reused iterator (#1926)tsconfig.jsonpassed as--projectargument doens't have files (#1933)object-literal-key-quotesnow handles shorthand and spread properties (#1945)arrow-parensAllow binding patterns([x, y]) => ...and({x, y}) => ...to have parens (#1958)semicolonfixer now handles comma separator in interfaces and indicates failure when commas are using in interfaces (#1856)only-arrow-functionsoptionallow-named-functionsnow allows function declarations (#1961)prefer-for-ofno longer shows false positive when array is in parentheses (#1986)prefer-constnow works for TypeScript versions < 2.1.0 (#1989)member-accessnarrow location of error (#1964)Thanks to our contributors!
v4.2.0Compare Source
no-string-throw(#1878)no-empty-interface(#1889)interface-over-type-literal(#1890)callable-types(#1891)no-void-expression(#1903)ban-single-arg-parensadded toarrow-parens(#1893)prefer-consthandles destructuring arrays (#1894), destructuring objects (#1906), and forward references (#1908)one-linerule (#1866)no-shadowed-variablenow identifies shadowedforiterator (#1816)object-literal-key-quotesnow includes function names (#1874)disable-next-linecomment (#1902)Thanks to our contributors!
v4.1.1Compare Source
typedefrule was showing false positive forcatchclause (#1887)v4.1.0Compare Source
prefer-const(#1801)strict-boolean-expressions(#1820)no-magic-numbers(#1799)import-blacklist(#1841)promise-functions-async(#1779)no-inferred-empty-object-type: a type must be specified when using a generic class/function/etc (#1821)allow-named-functionsadded toonly-arrow-functions(#1857)prefer-const(#1801)quotemark(#1790)code-frameformatter shows you the error in context (#1819)no-internal-modulefailures highlight less text (#1781)only-arrow-functionswill allow functions with athisparameter (#1597)no-use-before-declarefalse positive on named import (#1620)prefer-for-ofwas showing false positive when the element is assigned (#1813)type-checkwas swallowing the next argument (#1783)tslint:disable-linewas re-enablingtslint:disable(#1634)adjacent-overload-signaturesdid not work for constructors (#1800)checkstyleformatter was reporting errors under one file (#1811)trailing-commawas applied to parameter lists (#1775)Thanks to our contributors!
v4.0.2Compare Source
Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.