All notable changes to this project will be documented in this file.
v9.0.0 - 2017-08-28
- Added new Codelyzer rules from latest versions to
tslint-ng2.json
- 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 format for
ban
rule options
v8.0.0 - 2017-07-23
- Added
align
rule as `[true, "arguments", "elements", "members", "parameters", "statements"] - Added
prefer-object-spread
astrue
- Added
binary-expression-operand-order
rule astrue
- Added
no-duplicate-variable
rule as[true, "check-parameters"]
- Added
no-object-literal-type-assertion
rule astrue
- Added
number-literal-format
rule astrue
- Added
no-internal-module
rule astrue
- Added
interface-over-type-literal
rule astrue
- Added
no-string-literal
rule astrue
- Added
no-invalid-template-strings
rule astrue
- Added
ter-func-call-spacing
rule as[true, "never"]
- 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 enablingstrictNullChecks
option fortsconfig.json
compilerOptions
section - Changed
strict-boolean-expressions
rule fromtrue
to[ true, "allow-boolean-or-undefined" ]
- Changed
ext-variable-name
itemparameter
to["parameter", "camel", "allow-leading-underscore"]
- Changed
no-unused-variable
fromtrue
to[true, {"ignore-pattern": "^_"}]
- Changed
no-unbound-method
fromtrue
to[true, "ignore-static"]
- Changed
quotemark
by adding"avoid-template"
option - Changed
indent
by setting it to2
spaces - Changed
trailing-comma
formultiline
to{"objects": "always", "arrays": "always", "functions": "ignore", "typeLiterals": "ignore"}
v7.0.0 - 2017-06-21
- Added
allow-pascal-case
option tovariable-name
rule to allow variable names such asPascalCase
because they often appear in situations where you are defining classes or models viaconst
orlet
(e.g., graphql-tools makeExecutableSchema() - Removed
{"regex": "^I.*$"}
frominterface
section ofext-variable-name
rule since interfaces in external typings almost never follow this convention
- Remove codelyzer peerDependency as it was causing warnings when installing this module in non-Angular projects
v6.0.1 - 2017-06-01
- The
no-irregular-whitespace
andno-sparse-arrays
all have been renamed to be prefixed withter-
in the latesttslint-eslint-rules
v6.0.0 - 2017-06-01
array-bracket-spacing
andobject-curly-spacing
rules as[true, "always"]
trailing-comma
is now set to"always"
formultiline
and"never"
forsingleline
v5.2.0 - 2017-04-26
- Removed options that conflict with
Google
style ofclang-format
so TSLint and clang-format can work in tandem:comment-format
"check-uppercase"
option andwhitespace
"check-separator"
option
v5.1.0 - 2017-04-26
- 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
)
- Make
codelyzer
a peer dependency to preventnpm install
warning for non-Angular projects
v5.0.0 - 2017-04-25
- Added
array-bracket-spacing
,object-curly-spacing
, andblock-spacing
rules as[true, "always"]
- Added
handle-callback-err
rule
- Upgraded
vrsource-tslint-rules
to5.1.0
- Removed
literal-spacing
rule to use thetslint-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
- Disable no-inferrable-types since the automatic --fix for this rule is broken
- Update tslint and rules to 5.1.x.
v4.0.0 - 2017-04-24
- 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
- Removed
ext-variable-name
rule for"default"
v3.1.1 - 2017-04-20
- Removed
ext-variable-name
rule for"variable"
- Removed
tslint-eslint-rules
dependency since that isn't being used yet
v3.1.0 - 2017-04-20
- Removed
conditional-expression-parens
rule - Removed
ext-variable-name
rule for"variable", "const"
- Fixed version of
tslint
that is required by project^4.5.1
v3.0.1 - 2017-04-20
- Update
README.md
with instructions for including the newvrsource-tslint-rules
in a project
v3.0.0 - 2017-04-20
- New dependency on rules from
vrsource-tslint-rules
- Added
conditional-expression-parens
,dot-notation
,ext-variable-name
,literal-spacing
,multiline-arrow
,no-duplicate-imports
, andprefer-literal
rules fromvrsource-tslint-rules
totslint-base.json
v2.0.0 - 2017-04-19
- Removed
no-forward-ref
codelyzer rule fromtslint-ng2.json
- Changed
no-inferrable-types
fromfalse
to[true, "ignore-params"]
- Changed
trailing-comma
formultiline
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
- Support for codelyzer 3.x for
tslint-ng2.json
v1.1.0 - 2017-02-28
- Removed
no-magic-numbers
rule fromtslint-base.json
- Removed
object-literal-sort-keys
rule fromtslint-base.json
- Changed
max-file-line-count
rule from500
to600
lines
v1.0.1 - 2017-02-06
- Set correct type name for Bluebird promise (
Bluebird
) forno-floating-promises
rule.
v1.0.0 - 2017-02-05
- Created initial versions of
tslint-base.json
andtslint-ng2.json
.