This repository has been archived by the owner on Nov 10, 2023. It is now read-only.
Update dependency tslint to version 5.4.0 #304
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This Pull Request updates dependency tslint from version
5.3.2
to5.4.0
Changelog
5.4.0 / 2017-05-31
[bugfix] `prefer-object-spread`: allow constructor, function and method calls as first argument to `Object.assign`
[enhancement] `prefer-object-spread`: lint more locations where return value is used.
[new-rule-option] `no-duplicate-variable` adds `check-parameters` to check if variable has the same name as a parameter
[bugfix] `indent` now checks indentation of expressions inside template strings
[bugfix] no-inferred-empty-object-type: fix stack overflow
[develop]: rule tests now support imports of node_modules
[no-log] just refactoring
[new-rule-options] `strict-boolean-expressions` adds `allow-boolean-or-undefined`
[enhancement] `strict-boolean-expression`: Allow `any`, and `true` and `false` literal types
When TSLint is being used to provide as-you-type linting as in Angular
IDE, incorrect configuration of program created in
makeUnusedCheckedProgram function is causing whole functionality to blow
up. The core of the issue is that SourceFiles are being assigned case
sensitive path when program is recreated for TSLint validation, which
later causes that wrong path to stick and file not found problems appear
in whole IDE.
[enhancement] `--project` (or `-p`) enables rules that require the type checker. `--type-check` only checks for errors before linting is no longer required
[new-fixer] `object-literal-shorthand` can fix longhand methods
[bugfix] `object-literal-shorthand`: fix suggestion for generator functions
[enhancement] `object-literal-shorthand` handles async functions correctly
Separate the implementations of "never" and "always", because "never" became a little more complex.
[enhancement] `semicolon`: option `"never"` is now spec compliant
[bugfix] `semicolon`: don't warn about unnecesary semicolon when it is actually needed, e.g. when followed by type assertion or template string
Ref: Emit issue with member access dot operator and parentheses usually in conjunction with type assertion microsoft/TypeScript#15444
[no-log] just refactoring
[bugfix] `align` with option `"members"`: don't check semicolons in classes
Rewrite to walker function.
Use TypeScript's JsDoc parser
[enhancement] `deprecation`: error message includes deprecation text if available
The current docs do not make sense because the values were not
replaced, see
https://palantir.github.io/tslint/rules/no-consecutive-blank-lines/
[new-rule-option] `no-unbound-method` add option `"ignore-static"`
Fixes: #2651
Update dependencies
Remove unused disable comments
Fix CI with typescript@next (pos and end of sourceFile.typeReferenceDirectives[n] changed)