tslint-immutable
Advanced tools
Comparing version 4.5.0 to 4.5.1
@@ -10,2 +10,8 @@ # Change Log | ||
## [v4.5.1] - 2018-01-16 | ||
### Fixed | ||
* `no-mixed-interface` does not understand arrow function notation. See [#62](https://github.com/jonaskello/tslint-immutable/issues/62). Thanks to [@geon](https://github.com/geon) for this fix! (See PR [#63](https://github.com/jonaskello/tslint-immutable/pull/63)) | ||
## [v4.5.0] - 2017-12-29 | ||
@@ -230,4 +236,5 @@ | ||
[unreleased]: https://github.com/jonaskello/tslint-immutable/compare/v4.5.0...master | ||
[v4.4.0]: https://github.com/jonaskello/tslint-immutable/compare/v4.4.0...v4.5.0 | ||
[unreleased]: https://github.com/jonaskello/tslint-immutable/compare/v4.5.1...master | ||
[v4.5.1]: https://github.com/jonaskello/tslint-immutable/compare/v4.5.0...v4.5.1 | ||
[v4.5.0]: https://github.com/jonaskello/tslint-immutable/compare/v4.4.0...v4.5.0 | ||
[v4.4.0]: https://github.com/jonaskello/tslint-immutable/compare/v4.3.0...v4.4.0 | ||
@@ -234,0 +241,0 @@ [v4.3.0]: https://github.com/jonaskello/tslint-immutable/compare/v4.2.1...v4.3.0 |
{ | ||
"name": "tslint-immutable", | ||
"version": "4.5.0", | ||
"version": "4.5.1", | ||
"description": "TSLint rules to disable mutation in TypeScript.", | ||
@@ -5,0 +5,0 @@ "main": "tslint-immutable.json", |
@@ -506,3 +506,3 @@ # tslint-immutable | ||
"no-mixed-interface": true, | ||
"no-expression-statement": true | ||
"no-expression-statement": true, | ||
"no-if-statement": true | ||
@@ -509,0 +509,0 @@ |
@@ -27,7 +27,4 @@ "use strict"; | ||
} | ||
var length_1 = node.getWidth(ctx.sourceFile); | ||
// const fulltext = node.getText(ctx.sourceFile); | ||
var fulltext = node.getText(ctx.sourceFile); | ||
return [ | ||
check_node_1.createInvalidNode(node, new Lint.Replacement(node.end - length_1, length_1, "readonly " + fulltext)) | ||
check_node_1.createInvalidNode(node, new Lint.Replacement(node.getStart(ctx.sourceFile), 0, "readonly ")) | ||
]; | ||
@@ -34,0 +31,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
481078
1597