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

Latest commit

 

History

History
171 lines (140 loc) · 8.3 KB

CHANGELOG.md

File metadata and controls

171 lines (140 loc) · 8.3 KB

CHANGELOG

All notable changes to this project will be documented in this file.

v9.0.0 - 2017-08-28

Added

  • Added new Codelyzer rules from latest versions to tslint-ng2.json

Changed

  • Removed no-any rule as it is nearly impossible to enforce without making exceptions
  • Removed max-classes-per-file rule
  • Changed ban rule to [ true, [ "window", "isNaN", "describe.only", "it.only" ] ]

Fixed

  • Fixed format for ban rule options

v8.0.0 - 2017-07-23

Added

  • Added align rule as `[true, "arguments", "elements", "members", "parameters", "statements"]
  • Added prefer-object-spread as true
  • Added binary-expression-operand-order rule as true
  • Added no-duplicate-variable rule as [true, "check-parameters"]
  • Added no-object-literal-type-assertion rule as true
  • Added number-literal-format rule as true
  • Added no-internal-module rule as true
  • Added interface-over-type-literal rule as true
  • Added no-string-literal rule as true
  • Added no-invalid-template-strings rule as true
  • Added ter-func-call-spacing rule as [true, "never"]

Changed

  • Upgraded package.json dependencies including bumping to TSLint v5.5.0
  • Removed no-floating-promises rule
  • Removed strict-type-predicates rule and removed suggestion for enabling strictNullChecks option for tsconfig.json compilerOptions section
  • Changed strict-boolean-expressions rule from true to [ true, "allow-boolean-or-undefined" ]
  • Changed ext-variable-name item parameter to ["parameter", "camel", "allow-leading-underscore"]
  • Changed no-unused-variable from true to [true, {"ignore-pattern": "^_"}]
  • Changed no-unbound-method from true to [true, "ignore-static"]
  • Changed quotemark by adding "avoid-template" option
  • Changed indent by setting it to 2 spaces
  • Changed trailing-comma for multiline to {"objects": "always", "arrays": "always", "functions": "ignore", "typeLiterals": "ignore"}

v7.0.0 - 2017-06-21

Changed

  • Added allow-pascal-case option to variable-name rule to allow variable names such as PascalCase because they often appear in situations where you are defining classes or models via const or let (e.g., graphql-tools makeExecutableSchema()
  • Removed {"regex": "^I.*$"} from interface section of ext-variable-name rule since interfaces in external typings almost never follow this convention

Fixed

  • Remove codelyzer peerDependency as it was causing warnings when installing this module in non-Angular projects

v6.0.1 - 2017-06-01

Fixed

  • The no-irregular-whitespace and no-sparse-arrays all have been renamed to be prefixed with ter- in the latest tslint-eslint-rules

v6.0.0 - 2017-06-01

Added

  • array-bracket-spacing and object-curly-spacing rules as [true, "always"]
  • trailing-comma is now set to "always" for multiline and "never" for singleline

v5.2.0 - 2017-04-26

Changed

  • Removed options that conflict with Google style of clang-format so TSLint and clang-format can work in tandem: comment-format "check-uppercase" option and whitespace "check-separator" option

v5.1.0 - 2017-04-26

Changed

  • Removed suspect/broken rules on TSLint 5.x (the --fix is producing invalid code rewrites): trailing-comma, array-bracket-spacing, object-curly-spacing
  • Removed rules on TSLint 5.x that are generating warnings: multiline-arrow (Cannot read property 'getStart' of undefined)

Fixed

  • Make codelyzer a peer dependency to prevent npm install warning for non-Angular projects

v5.0.0 - 2017-04-25

Added

  • Added array-bracket-spacing, object-curly-spacing, and block-spacing rules as [true, "always"]
  • Added handle-callback-err rule

Changed

  • Upgraded vrsource-tslint-rules to 5.1.0
  • Removed literal-spacing rule to use the tslint-eslint-rules versions that have --fix support
  • Changed ext-variable-name to allow functions with leading underscores
  • Changed ext-variable-name to enforce camel case on public methods and properties

v4.1.0 - 2017-04-24

Fixed

  • Disable no-inferrable-types since the automatic --fix for this rule is broken

Changed

  • Update tslint and rules to 5.1.x.

v4.0.0 - 2017-04-24

Added

  • Add tslint-eslint-rules dependency to allow for more eslint rules to be used
  • Added the following rules from tslint-eslint-rules: no-constant-condition, no-duplicate-case, no-empty-character-class, no-ex-assign, no-extra-boolean-cast, no-extra-semi, no-inner-declarations, no-invalid-regexp, no-irregular-whitespace, no-regex-spaces, no-sparse-arrays, no-unexpected-multiline

v3.1.2 - 2017-04-20

Changed

  • Removed ext-variable-name rule for "default"

v3.1.1 - 2017-04-20

Changed

  • Removed ext-variable-name rule for "variable"

Fixed

  • Removed tslint-eslint-rules dependency since that isn't being used yet

v3.1.0 - 2017-04-20

Changed

  • Removed conditional-expression-parens rule
  • Removed ext-variable-name rule for "variable", "const"

Fixed

  • Fixed version of tslint that is required by project ^4.5.1

v3.0.1 - 2017-04-20

Fixed

  • Update README.md with instructions for including the new vrsource-tslint-rules in a project

v3.0.0 - 2017-04-20

Added

  • New dependency on rules from vrsource-tslint-rules
  • Added conditional-expression-parens, dot-notation, ext-variable-name, literal-spacing, multiline-arrow, no-duplicate-imports, and prefer-literal rules from vrsource-tslint-rules to tslint-base.json

v2.0.0 - 2017-04-19

Changed

  • Removed no-forward-ref codelyzer rule from tslint-ng2.json
  • Changed no-inferrable-types from false to [true, "ignore-params"]
  • Changed trailing-comma for multiline from "never" to "always"
  • Changed one-line properties to "check-catch", "check-finally", "check-else", "check-open-brace", "check-whitespace"
  • Changed whitespace options to "check-branch", "check-decl", "check-operator", "check-module", "check-separator", "check-type", "check-preblock"

v1.1.1 - 2017-03-17

Fixed

  • Support for codelyzer 3.x for tslint-ng2.json

v1.1.0 - 2017-02-28

Changed

  • Removed no-magic-numbers rule from tslint-base.json
  • Removed object-literal-sort-keys rule from tslint-base.json
  • Changed max-file-line-count rule from 500 to 600 lines

v1.0.1 - 2017-02-06

Fixed

  • Set correct type name for Bluebird promise (Bluebird) for no-floating-promises rule.

v1.0.0 - 2017-02-05

Added

  • Created initial versions of tslint-base.json and tslint-ng2.json.