Update tslint analyzer to latest versions of upstream dependencies

Our tslint analyzer has two main upstream depencencies:

  • tslint (shipping v5.12.1)
  • tslint-config-security (shipping v1.15.0)

Both libraries have updates published and we need to consume them.

  • tslint v5.20.0
  • tslint-config-security v1.16.0

tslint v5.20.0 release notes

  • [bugfix] fix strict-boolean-expressions false positive with "ignore-rhs" option
  • [bugfix] fix no-unnecessary-type-assertion no error when "strict": true in compiler flags
  • [bugfix] "ignore" option for file-name-casing rule works correctly
  • [bugfix] fix array-type false positive for simple parenthesized types with "array-simple" option
  • [new-rule-option] object-literal-shorthand supports {"property"?: "never", "method"?: "never"} as config options
  • [new-rule-option]: allow-generics option for invalid-void rule
  • [new-rule-option] check-super-calls option for unnecessary-constructor rule
  • [chore] Upgrade diff dependency to v4.0.1

tslint v5.19.0 release notes

  • [bugfix] relax promise-function-async for short parenthesized arrow functions
  • [bugfix] fix no-async-without-await false positive for abstract methods
  • [bugfix] fix strict-comparison false positive for null and undefined literals
  • [bugfix] improve no-angle-bracket-type-assertion autofix semantics with more parentheses
  • [enhancement] add BigInt support to restrict-plus-operands rule
  • [enhancement] await-promise now supports new TypeScript 3.6 AST API symbols for async iterators
  • [new-rule-option] check-strings and check-regex options for max-line-length rule
  • [new-rule-option] variable-declaration-ignore-function option for typedef rule
  • [new-rule-option] ignore-blank-lines option for object-literal-sort-keys rule
  • [new-rule] no-for-in
  • [new-rule] invalid-void
  • [new-rule] strict-string-expressions reports errors on type coercions found in string expressions
  • [new-rule] no-promise-as-boolean
  • [docs] link to OSS fellowship medium post in README

tslint v5.18.0 release notes

  • [feature] New --print-config CLI flag
  • [bugfix] no-unnecessary-type-assertion no longer flags x! non-null assertions if --strictNullChecks is not enabled
  • [bugfix] quotemark handles unbalanced quotes more gracefully without crashing
  • [docs] Add tslint-playground link to README and bug report template
  • [enhancement] no-magic-numbers rule ignores arguments passed into default Number methods
  • [new-fixer] comment-format
  • [new-rule-option] "allow-trailing-lowercase" option for comment-format rule
  • [new-rule-option] "ignore-accessors" for adjacent-overload-signatures to ignore getters / setters overloads
  • [new-rule] no-async-without-await
  • [new-rule] strict-comparisons

tslint v5.17.0 release notes

  • [bugfix] quotemark backtic option now ignores enum members, use strict declarations, lookup types, and strings containing octal escape sequences.
  • [bugfix] no-redundant-jsdoc no longer errors on JSDocThisTag
  • [chore] Update devDependency mocha from v3.2.0 to v6.1.4
  • [chore] Update devDependency js-yaml from ^3.13.0 to ^3.13.1
  • [chore] Update deprecated devDependency github to @octokit/rest
  • [chore] Update devDependency nyc from v13.3.0 to v14.1.1
  • [deprecation] no-use-before-declare rule for typescript >= 2.9.0
  • [documentation] Minor fix for variable-name rule metadata
  • [documentation] Fixed no-unused-variable argument count
  • [enhancement] Allow const assertions in no-object-literal-type-assertion
  • [new-fixer] unnecessary-constructor

tslint v5.16.0 release notes

  • [bugfix] Excuse more quotemark backtick edge cases and fix behavior for TS < 2.7.1
  • [bugfix] Fix regression in interface-name rule related to numeric characters in interface names
  • [enhancement] Update nyc from v10.2.0 to v13.3.0
  • [enhancement] Migrate from deprecated babel-code-frame package to new @babel/code-frame package
  • [enhancement] Improve error message for restrict-plus-operands rule.
  • [enhancement] comment-format rule now whitelists //region comments generated by JetBrains IDE
  • [enhancement] Relax no-null-undefined-union rule.
  • [new-rule-option] allow-else-if option for unnecessary-else rule
  • [documentation] Fix "identifer" typo in custom rules docs
  • [documentation] Fix code example for switch-default rule
  • [documentation] Fix documentation example for prose formatter
  • [documentation] no-parameter-properties: fix unclear rule description
  • [documentation] Fix typo in rule docs generation

tslint v5.15.0 release notes

  • [api] WalkContext and AbstractWalker type parameter defaults to void
  • [bugfix] no-void-expression now allows conditional expressions
  • [bugfix] fix linebreak handling in ordered-imports
  • [bugfix] fix static-this false positive for higher order components
  • [bugfix] Fixed crash in unnecessary-else from blank if statements
  • [bugfix] Fixed false positive in unnecessary-else after non-jumping statement
  • [bugfix] interface-name now handles interface starting with "I18n" correctly
  • [bugfix] no-string-throw fix inserts whitespace if not present after throw keyword
  • [bugfix] quotemark: fix some edge cases for backtick option
  • [bugfix] unnecessary-constructor: don't flag non-private constructors that are actually necessary
  • [enhancement] Upgrade js-yaml to avoid security issue
  • [new-rule-option] allow-single-line-comments option for file-header rule
  • [new-rule-option] ignore-rest-args option for no-any rule
  • [new-rule] no-null-undefined-union

tslint v5.14.0 release notes

  • [bugfix] backtick option for quotemark rule no longer incorrectly flags string literals that must use single/double quotes
  • [bugfix] Fixed regression in CheckstyleFormatter backwards compatibility
  • [bugfix] whitespace rule now lints export statements
  • [bugfix] no-trailing-whitespace no longer flags files starting with a byte order mark
  • [enhancement] promise-function-async now allows single statement lamda functions that delegate to another promise-returning function
  • [enhancement] Add note to docs about zero-indexing for machine formatters
  • [enhancement] Fix metadata of the whitespace rule
  • [enhancement] Add junit output for files which are successfully linted
  • [new-rule-option] underscore option for no-shadowed-variable rule to ignore shadowed underscores
  • [new-rule-option] require-const-for-all-caps option for variable-name rule
  • [new-rule-option] overloads option for completed-docs rule to enforce documentation of each overload signature
  • [new-rule-option] allow-namespace-imports option for no-duplicate-imports rule
  • [new-rule-option] allow-arguments option for no-object-literal-type-assertion rule to allow type assertions on object literals used inside call expressions
  • [new-rule-option] allow-delete option for no-unbound-method rule
  • [new-rule] no-tautology-expression
  • [new-rule] static-this
  • [new-rule] unnecessary-else

tslint v5.13.1 release notes

  • [bugfix] Fix regression in CheckstyleFormatter backwards compatibility

tslint v5.13.0 release notes

  • [deprecation] Mark RuleWalker and ProgramAwareRuleWalker as deprecated
  • [bugfix] Create output directory when the output path (specified by --out CLI flag) does not exist.
  • [bugfix] Explicit disabling of rules is now copied over to jsRules when using jsRules: true
  • [bugfix] unknown is recognized as simple type in array-type
  • [bugfix] 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 syntax b.c(), which was not the intent of this rule.
  • [bugfix] Fixed single-line comment parsing for completed-docs
  • [bugfix] trailing-comma no longer crashes if it cannot find the closing parenthesis of a function declaration
  • [bugfix] no-unsafe-any: allow implicitly downcasting any to unknown
  • [bugfix] Add grouped-imports to tslint:all
  • [docs] Fix docs typo
  • [enhancement] Add "formatting" rule category
  • [enhancement] ordered-imports now supports a groups option to provide custom grouping rules.
  • [enhancement] Convert completed-docs to an untyped rule
  • [enhancement] Checkstyle formatter includes every file linted regardless of lint errors.
  • [enhancement] Formatters now receive the full list of of linted file paths as a third argument.
  • [enhancement] array-type rule handles Typescript 3.0's unknown type properly
  • [enhancement] import-blacklist now supports regular expression patterns for blacklisting
  • [new-rule] no-restricted-globals
  • [new-fixer] added fixer for newline-before-return rule
  • [new-fixer] number-literal-format now includes auto fix
  • [new-rule-option] Added whitelist option to no-unbound-method
  • [new-rule-option] added jsx-ignore option to no-magic-numbers rule
  • [new-rule-option]: object-literal-sort-keys: Add match-declaration-order-only option
  • [new-rule-option] strict-boolean-expressions accepts ignore-rhs option to disable checking the right-hand side of the && and || operators as strictly boolean.

tslint-config-security v1.16.0 release notes

  • AST walkers are rewritten to use more performant functional TSLint API
  • Added more details about each rule
Edited Sep 27, 2019 by Thomas Woodham
Assignee Loading
Time tracking Loading