This repository has been archived by the owner on Jul 15, 2021. It is now read-only.
Releases: codeschool/cs-tslint-rules
Releases · codeschool/cs-tslint-rules
Release v9.0.0
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
Release v8.0.0
Added
- 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"]
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 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"}
Release v7.0.0
Changed
- 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
Fixed
- Remove codelyzer peerDependency as it was causing warnings when installing this
module in non-Angular projects
Release v6.0.1
Fixed
- The
no-irregular-whitespace
andno-sparse-arrays
all have been renamed to be prefixed withter-
in the latesttslint-eslint-rules
Release v6.0.0
Added
array-bracket-spacing
andobject-curly-spacing
rules as[true, "always"]
trailing-comma
is now set to"always"
formultiline
and"never"
forsingleline
Release v5.2.0
Changed
- 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
Release v5.1.0
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 preventnpm install
warning for non-Angular projects
Release v5.0.0
Added
- Added
array-bracket-spacing
,object-curly-spacing
, andblock-spacing
rules as[true, "always"]
- Added
handle-callback-err
rule
Changed
- 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
Release v4.1.0
Fixed
- Disable no-inferrable-types since the automatic --fix for this rule is broken
Changed
- Update tslint and rules to 5.1.x.
Release v4.0.0
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