This repository was 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-anyrule as it is nearly impossible to enforce without making exceptions - Removed
max-classes-per-filerule - Changed
banrule to[ true, [ "window", "isNaN", "describe.only", "it.only" ] ]
Fixed
- Fixed format for
banrule options
Release v8.0.0
Added
- Added
alignrule as `[true, "arguments", "elements", "members", "parameters", "statements"] - Added
prefer-object-spreadastrue - Added
binary-expression-operand-orderrule astrue - Added
no-duplicate-variablerule as[true, "check-parameters"] - Added
no-object-literal-type-assertionrule astrue - Added
number-literal-formatrule astrue - Added
no-internal-modulerule astrue - Added
interface-over-type-literalrule astrue - Added
no-string-literalrule astrue - Added
no-invalid-template-stringsrule astrue - Added
ter-func-call-spacingrule as[true, "never"]
Changed
- Upgraded
package.jsondependencies including bumping to TSLint v5.5.0 - Removed
no-floating-promisesrule - Removed
strict-type-predicatesrule and removed suggestion for enablingstrictNullChecksoption fortsconfig.jsoncompilerOptionssection - Changed
strict-boolean-expressionsrule fromtrueto[ true, "allow-boolean-or-undefined" ] - Changed
ext-variable-nameitemparameterto["parameter", "camel", "allow-leading-underscore"] - Changed
no-unused-variablefromtrueto[true, {"ignore-pattern": "^_"}] - Changed
no-unbound-methodfromtrueto[true, "ignore-static"] - Changed
quotemarkby adding"avoid-template"option - Changed
indentby setting it to2spaces - Changed
trailing-commaformultilineto{"objects": "always", "arrays": "always", "functions": "ignore", "typeLiterals": "ignore"}
Release v7.0.0
Changed
- Added
allow-pascal-caseoption tovariable-namerule to allow variable names such asPascalCasebecause they often appear in situations where you are defining classes or models viaconstorlet(e.g., graphql-tools makeExecutableSchema() - Removed
{"regex": "^I.*$"}frominterfacesection ofext-variable-namerule 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-whitespaceandno-sparse-arraysall have been renamed to be prefixed withter-in the latesttslint-eslint-rules
Release v6.0.0
Added
array-bracket-spacingandobject-curly-spacingrules as[true, "always"]trailing-commais now set to"always"formultilineand"never"forsingleline
Release v5.2.0
Changed
- Removed options that conflict with
Googlestyle ofclang-formatso 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
--fixis 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
codelyzera peer dependency to preventnpm installwarning for non-Angular projects
Release v5.0.0
Added
- Added
array-bracket-spacing,object-curly-spacing, andblock-spacingrules as[true, "always"] - Added
handle-callback-errrule
Changed
- Upgraded
vrsource-tslint-rulesto5.1.0 - Removed
literal-spacingrule to use thetslint-eslint-rulesversions that have--fixsupport - Changed
ext-variable-nameto allow functions with leading underscores - Changed
ext-variable-nameto 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-rulesdependency 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