tslint-immutable
Advanced tools
Comparing version 5.1.0 to 5.1.1
@@ -14,3 +14,3 @@ # Change Log | ||
* New option `ignore-new-array` for the `readonly-array` rule. This option replaces the `ignore-mutation-following-accessor` option, however the old option name will remain as an alias and will be removed in the next major release. See [#102](https://github.com/jonaskello/tslint-immutable/issues/102). Thanks to [@RebeccaStevens](https://github.com/RebeccaStevens) for adding this option! (See PR [#110](https://github.com/jonaskello/tslint-immutable/pull/110)) | ||
* New option `ignore-new-array` for the `no-array-mutation` rule. This option replaces the `ignore-mutation-following-accessor` option, however the old option name will remain as an alias and will be removed in the next major release. See [#102](https://github.com/jonaskello/tslint-immutable/issues/102). Thanks to [@RebeccaStevens](https://github.com/RebeccaStevens) for adding this option! (See PR [#110](https://github.com/jonaskello/tslint-immutable/pull/110)) | ||
@@ -17,0 +17,0 @@ ## [v5.0.1] - 2018-12-15 |
@@ -15,3 +15,3 @@ {"/Users/JonKel/code/github/jonaskello/tslint-immutable/rules/noArrayMutationRule.js": {"path":"/Users/JonKel/code/github/jonaskello/tslint-immutable/rules/noArrayMutationRule.js","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":9},"end":{"line":3,"column":30}},"2":{"start":{"line":4,"column":12},"end":{"line":4,"column":44}},"3":{"start":{"line":5,"column":13},"end":{"line":5,"column":36}},"4":{"start":{"line":6,"column":19},"end":{"line":6,"column":49}},"5":{"start":{"line":7,"column":13},"end":{"line":7,"column":39}},"6":{"start":{"line":8,"column":18},"end":{"line":8,"column":47}},"7":{"start":{"line":10,"column":0},"end":{"line":10,"column":106}},"8":{"start":{"line":12,"column":4},"end":{"line":12,"column":64}},"9":{"start":{"line":14,"column":0},"end":{"line":14,"column":34}},"10":{"start":{"line":16,"column":4},"end":{"line":16,"column":75}},"11":{"start":{"line":18,"column":0},"end":{"line":18,"column":56}},"12":{"start":{"line":19,"column":21},"end":{"line":22,"column":1}},"13":{"start":{"line":28,"column":21},"end":{"line":38,"column":1}},"14":{"start":{"line":45,"column":31},"end":{"line":52,"column":1}},"15":{"start":{"line":58,"column":27},"end":{"line":58,"column":41}},"16":{"start":{"line":60,"column":4},"end":{"line":60,"column":65}},"17":{"start":{"line":63,"column":4},"end":{"line":65,"column":5}},"18":{"start":{"line":64,"column":8},"end":{"line":64,"column":57}},"19":{"start":{"line":66,"column":4},"end":{"line":68,"column":5}},"20":{"start":{"line":67,"column":8},"end":{"line":67,"column":57}},"21":{"start":{"line":69,"column":4},"end":{"line":71,"column":5}},"22":{"start":{"line":70,"column":8},"end":{"line":70,"column":62}},"23":{"start":{"line":72,"column":4},"end":{"line":74,"column":5}},"24":{"start":{"line":73,"column":8},"end":{"line":73,"column":63}},"25":{"start":{"line":75,"column":4},"end":{"line":77,"column":5}},"26":{"start":{"line":76,"column":8},"end":{"line":76,"column":55}},"27":{"start":{"line":78,"column":4},"end":{"line":78,"column":14}},"28":{"start":{"line":85,"column":4},"end":{"line":93,"column":5}},"29":{"start":{"line":89,"column":33},"end":{"line":89,"column":80}},"30":{"start":{"line":90,"column":8},"end":{"line":92,"column":9}},"31":{"start":{"line":91,"column":12},"end":{"line":91,"column":62}},"32":{"start":{"line":94,"column":4},"end":{"line":94,"column":14}},"33":{"start":{"line":100,"column":4},"end":{"line":106,"column":5}},"34":{"start":{"line":102,"column":29},"end":{"line":102,"column":82}},"35":{"start":{"line":103,"column":8},"end":{"line":105,"column":9}},"36":{"start":{"line":104,"column":12},"end":{"line":104,"column":62}},"37":{"start":{"line":107,"column":4},"end":{"line":107,"column":14}},"38":{"start":{"line":113,"column":4},"end":{"line":120,"column":5}},"39":{"start":{"line":115,"column":43},"end":{"line":115,"column":70}},"40":{"start":{"line":116,"column":36},"end":{"line":116,"column":86}},"41":{"start":{"line":117,"column":8},"end":{"line":119,"column":9}},"42":{"start":{"line":118,"column":12},"end":{"line":118,"column":62}},"43":{"start":{"line":121,"column":4},"end":{"line":121,"column":14}},"44":{"start":{"line":127,"column":4},"end":{"line":134,"column":5}},"45":{"start":{"line":129,"column":43},"end":{"line":129,"column":70}},"46":{"start":{"line":130,"column":36},"end":{"line":130,"column":86}},"47":{"start":{"line":131,"column":8},"end":{"line":133,"column":9}},"48":{"start":{"line":132,"column":12},"end":{"line":132,"column":62}},"49":{"start":{"line":135,"column":4},"end":{"line":135,"column":14}},"50":{"start":{"line":141,"column":4},"end":{"line":151,"column":5}},"51":{"start":{"line":145,"column":43},"end":{"line":145,"column":82}},"52":{"start":{"line":147,"column":29},"end":{"line":147,"column":82}},"53":{"start":{"line":148,"column":8},"end":{"line":150,"column":9}},"54":{"start":{"line":149,"column":12},"end":{"line":149,"column":62}},"55":{"start":{"line":152,"column":4},"end":{"line":152,"column":14}},"56":{"start":{"line":161,"column":4},"end":{"line":170,"column":94}},"57":{"start":{"line":176,"column":4},"end":{"line":176,"column":61}},"58":{"start":{"line":176,"column":31},"end":{"line":176,"column":58}}},"fnMap":{"0":{"name":"isArrayType","decl":{"start":{"line":11,"column":9},"end":{"line":11,"column":20}},"loc":{"start":{"line":11,"column":27},"end":{"line":13,"column":1}},"line":11},"1":{"name":"isArrayConstructorType","decl":{"start":{"line":15,"column":9},"end":{"line":15,"column":31}},"loc":{"start":{"line":15,"column":38},"end":{"line":17,"column":1}},"line":15},"2":{"name":"checkTypedNode","decl":{"start":{"line":59,"column":9},"end":{"line":59,"column":23}},"loc":{"start":{"line":59,"column":44},"end":{"line":61,"column":1}},"line":59},"3":{"name":"getInvalidNodes","decl":{"start":{"line":62,"column":9},"end":{"line":62,"column":24}},"loc":{"start":{"line":62,"column":45},"end":{"line":79,"column":1}},"line":62},"4":{"name":"checkBinaryExpression","decl":{"start":{"line":84,"column":9},"end":{"line":84,"column":30}},"loc":{"start":{"line":84,"column":51},"end":{"line":95,"column":1}},"line":84},"5":{"name":"checkDeleteExpression","decl":{"start":{"line":99,"column":9},"end":{"line":99,"column":30}},"loc":{"start":{"line":99,"column":51},"end":{"line":108,"column":1}},"line":99},"6":{"name":"checkPrefixUnaryExpression","decl":{"start":{"line":112,"column":9},"end":{"line":112,"column":35}},"loc":{"start":{"line":112,"column":56},"end":{"line":122,"column":1}},"line":112},"7":{"name":"(anonymous_7)","decl":{"start":{"line":115,"column":28},"end":{"line":115,"column":29}},"loc":{"start":{"line":115,"column":41},"end":{"line":115,"column":72}},"line":115},"8":{"name":"checkPostfixUnaryExpression","decl":{"start":{"line":126,"column":9},"end":{"line":126,"column":36}},"loc":{"start":{"line":126,"column":57},"end":{"line":136,"column":1}},"line":126},"9":{"name":"(anonymous_9)","decl":{"start":{"line":129,"column":28},"end":{"line":129,"column":29}},"loc":{"start":{"line":129,"column":41},"end":{"line":129,"column":72}},"line":129},"10":{"name":"checkCallExpression","decl":{"start":{"line":140,"column":9},"end":{"line":140,"column":28}},"loc":{"start":{"line":140,"column":49},"end":{"line":153,"column":1}},"line":140},"11":{"name":"(anonymous_11)","decl":{"start":{"line":145,"column":28},"end":{"line":145,"column":29}},"loc":{"start":{"line":145,"column":41},"end":{"line":145,"column":84}},"line":145},"12":{"name":"isInChainCallAndFollowsNew","decl":{"start":{"line":160,"column":9},"end":{"line":160,"column":35}},"loc":{"start":{"line":160,"column":51},"end":{"line":171,"column":1}},"line":160},"13":{"name":"isExpected","decl":{"start":{"line":175,"column":9},"end":{"line":175,"column":19}},"loc":{"start":{"line":175,"column":30},"end":{"line":177,"column":1}},"line":175},"14":{"name":"(anonymous_14)","decl":{"start":{"line":176,"column":11},"end":{"line":176,"column":12}},"loc":{"start":{"line":176,"column":29},"end":{"line":176,"column":60}},"line":176}},"branchMap":{"0":{"loc":{"start":{"line":12,"column":19},"end":{"line":12,"column":62}},"type":"binary-expr","locations":[{"start":{"line":12,"column":19},"end":{"line":12,"column":30}},{"start":{"line":12,"column":34},"end":{"line":12,"column":62}}],"line":12},"1":{"loc":{"start":{"line":16,"column":19},"end":{"line":16,"column":73}},"type":"binary-expr","locations":[{"start":{"line":16,"column":19},"end":{"line":16,"column":30}},{"start":{"line":16,"column":34},"end":{"line":16,"column":73}}],"line":16},"2":{"loc":{"start":{"line":63,"column":4},"end":{"line":65,"column":5}},"type":"if","locations":[{"start":{"line":63,"column":4},"end":{"line":65,"column":5}},{"start":{"line":63,"column":4},"end":{"line":65,"column":5}}],"line":63},"3":{"loc":{"start":{"line":66,"column":4},"end":{"line":68,"column":5}},"type":"if","locations":[{"start":{"line":66,"column":4},"end":{"line":68,"column":5}},{"start":{"line":66,"column":4},"end":{"line":68,"column":5}}],"line":66},"4":{"loc":{"start":{"line":69,"column":4},"end":{"line":71,"column":5}},"type":"if","locations":[{"start":{"line":69,"column":4},"end":{"line":71,"column":5}},{"start":{"line":69,"column":4},"end":{"line":71,"column":5}}],"line":69},"5":{"loc":{"start":{"line":72,"column":4},"end":{"line":74,"column":5}},"type":"if","locations":[{"start":{"line":72,"column":4},"end":{"line":74,"column":5}},{"start":{"line":72,"column":4},"end":{"line":74,"column":5}}],"line":72},"6":{"loc":{"start":{"line":75,"column":4},"end":{"line":77,"column":5}},"type":"if","locations":[{"start":{"line":75,"column":4},"end":{"line":77,"column":5}},{"start":{"line":75,"column":4},"end":{"line":77,"column":5}}],"line":75},"7":{"loc":{"start":{"line":85,"column":4},"end":{"line":93,"column":5}},"type":"if","locations":[{"start":{"line":85,"column":4},"end":{"line":93,"column":5}},{"start":{"line":85,"column":4},"end":{"line":93,"column":5}}],"line":85},"8":{"loc":{"start":{"line":85,"column":8},"end":{"line":88,"column":49}},"type":"binary-expr","locations":[{"start":{"line":85,"column":8},"end":{"line":85,"column":93}},{"start":{"line":86,"column":8},"end":{"line":86,"column":38}},{"start":{"line":87,"column":8},"end":{"line":87,"column":56}},{"start":{"line":88,"column":8},"end":{"line":88,"column":49}}],"line":85},"9":{"loc":{"start":{"line":90,"column":8},"end":{"line":92,"column":9}},"type":"if","locations":[{"start":{"line":90,"column":8},"end":{"line":92,"column":9}},{"start":{"line":90,"column":8},"end":{"line":92,"column":9}}],"line":90},"10":{"loc":{"start":{"line":100,"column":4},"end":{"line":106,"column":5}},"type":"if","locations":[{"start":{"line":100,"column":4},"end":{"line":106,"column":5}},{"start":{"line":100,"column":4},"end":{"line":106,"column":5}}],"line":100},"11":{"loc":{"start":{"line":100,"column":8},"end":{"line":101,"column":55}},"type":"binary-expr","locations":[{"start":{"line":100,"column":8},"end":{"line":100,"column":104}},{"start":{"line":101,"column":8},"end":{"line":101,"column":55}}],"line":100},"12":{"loc":{"start":{"line":103,"column":8},"end":{"line":105,"column":9}},"type":"if","locations":[{"start":{"line":103,"column":8},"end":{"line":105,"column":9}},{"start":{"line":103,"column":8},"end":{"line":105,"column":9}}],"line":103},"13":{"loc":{"start":{"line":113,"column":4},"end":{"line":120,"column":5}},"type":"if","locations":[{"start":{"line":113,"column":4},"end":{"line":120,"column":5}},{"start":{"line":113,"column":4},"end":{"line":120,"column":5}}],"line":113},"14":{"loc":{"start":{"line":113,"column":8},"end":{"line":115,"column":73}},"type":"binary-expr","locations":[{"start":{"line":113,"column":8},"end":{"line":113,"column":101}},{"start":{"line":114,"column":8},"end":{"line":114,"column":52}},{"start":{"line":115,"column":8},"end":{"line":115,"column":73}}],"line":113},"15":{"loc":{"start":{"line":117,"column":8},"end":{"line":119,"column":9}},"type":"if","locations":[{"start":{"line":117,"column":8},"end":{"line":119,"column":9}},{"start":{"line":117,"column":8},"end":{"line":119,"column":9}}],"line":117},"16":{"loc":{"start":{"line":127,"column":4},"end":{"line":134,"column":5}},"type":"if","locations":[{"start":{"line":127,"column":4},"end":{"line":134,"column":5}},{"start":{"line":127,"column":4},"end":{"line":134,"column":5}}],"line":127},"17":{"loc":{"start":{"line":127,"column":8},"end":{"line":129,"column":73}},"type":"binary-expr","locations":[{"start":{"line":127,"column":8},"end":{"line":127,"column":93}},{"start":{"line":128,"column":8},"end":{"line":128,"column":52}},{"start":{"line":129,"column":8},"end":{"line":129,"column":73}}],"line":127},"18":{"loc":{"start":{"line":131,"column":8},"end":{"line":133,"column":9}},"type":"if","locations":[{"start":{"line":131,"column":8},"end":{"line":133,"column":9}},{"start":{"line":131,"column":8},"end":{"line":133,"column":9}}],"line":131},"19":{"loc":{"start":{"line":141,"column":4},"end":{"line":151,"column":5}},"type":"if","locations":[{"start":{"line":141,"column":4},"end":{"line":151,"column":5}},{"start":{"line":141,"column":4},"end":{"line":151,"column":5}}],"line":141},"20":{"loc":{"start":{"line":141,"column":8},"end":{"line":145,"column":85}},"type":"binary-expr","locations":[{"start":{"line":141,"column":8},"end":{"line":141,"column":93}},{"start":{"line":142,"column":8},"end":{"line":142,"column":57}},{"start":{"line":143,"column":9},"end":{"line":143,"column":85}},{"start":{"line":144,"column":12},"end":{"line":144,"column":65}},{"start":{"line":145,"column":8},"end":{"line":145,"column":85}}],"line":141},"21":{"loc":{"start":{"line":143,"column":11},"end":{"line":143,"column":84}},"type":"binary-expr","locations":[{"start":{"line":143,"column":11},"end":{"line":143,"column":37}},{"start":{"line":143,"column":41},"end":{"line":143,"column":84}}],"line":143},"22":{"loc":{"start":{"line":148,"column":8},"end":{"line":150,"column":9}},"type":"if","locations":[{"start":{"line":148,"column":8},"end":{"line":150,"column":9}},{"start":{"line":148,"column":8},"end":{"line":150,"column":9}}],"line":148},"23":{"loc":{"start":{"line":161,"column":12},"end":{"line":170,"column":92}},"type":"binary-expr","locations":[{"start":{"line":161,"column":12},"end":{"line":161,"column":59}},{"start":{"line":162,"column":9},"end":{"line":162,"column":47}},{"start":{"line":163,"column":12},"end":{"line":163,"column":89}},{"start":{"line":164,"column":9},"end":{"line":164,"column":48}},{"start":{"line":165,"column":12},"end":{"line":165,"column":72}},{"start":{"line":166,"column":12},"end":{"line":166,"column":87}},{"start":{"line":167,"column":12},"end":{"line":167,"column":100}},{"start":{"line":168,"column":9},"end":{"line":168,"column":48}},{"start":{"line":169,"column":12},"end":{"line":169,"column":72}},{"start":{"line":170,"column":12},"end":{"line":170,"column":91}}],"line":161}},"s":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0,0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0,0],"15":[0,0],"16":[0,0],"17":[0,0,0],"18":[0,0],"19":[0,0],"20":[0,0,0,0,0],"21":[0,0],"22":[0,0],"23":[0,0,0,0,0,0,0,0,0,0]}} | ||
,"/Users/JonKel/code/github/jonaskello/tslint-immutable/rules/readonlyArrayRule.js": {"path":"/Users/JonKel/code/github/jonaskello/tslint-immutable/rules/readonlyArrayRule.js","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":11},"end":{"line":3,"column":28}},"2":{"start":{"line":4,"column":12},"end":{"line":4,"column":44}},"3":{"start":{"line":5,"column":13},"end":{"line":5,"column":39}},"4":{"start":{"line":6,"column":19},"end":{"line":6,"column":49}},"5":{"start":{"line":7,"column":18},"end":{"line":7,"column":47}},"6":{"start":{"line":9,"column":0},"end":{"line":9,"column":118}},"7":{"start":{"line":11,"column":4},"end":{"line":13,"column":6}},"8":{"start":{"line":17,"column":4},"end":{"line":37,"column":5}},"9":{"start":{"line":18,"column":8},"end":{"line":21,"column":9}},"10":{"start":{"line":20,"column":12},"end":{"line":20,"column":22}},"11":{"start":{"line":22,"column":8},"end":{"line":27,"column":9}},"12":{"start":{"line":26,"column":12},"end":{"line":26,"column":22}},"13":{"start":{"line":28,"column":8},"end":{"line":30,"column":9}},"14":{"start":{"line":29,"column":12},"end":{"line":29,"column":22}},"15":{"start":{"line":31,"column":8},"end":{"line":36,"column":10}},"16":{"start":{"line":38,"column":4},"end":{"line":38,"column":14}},"17":{"start":{"line":42,"column":4},"end":{"line":56,"column":5}},"18":{"start":{"line":44,"column":8},"end":{"line":47,"column":9}},"19":{"start":{"line":46,"column":12},"end":{"line":46,"column":22}},"20":{"start":{"line":48,"column":8},"end":{"line":50,"column":9}},"21":{"start":{"line":49,"column":12},"end":{"line":49,"column":22}},"22":{"start":{"line":51,"column":8},"end":{"line":55,"column":10}},"23":{"start":{"line":57,"column":4},"end":{"line":57,"column":14}},"24":{"start":{"line":60,"column":4},"end":{"line":62,"column":5}},"25":{"start":{"line":61,"column":8},"end":{"line":61,"column":18}},"26":{"start":{"line":64,"column":4},"end":{"line":74,"column":5}},"27":{"start":{"line":66,"column":23},"end":{"line":66,"column":57}},"28":{"start":{"line":67,"column":23},"end":{"line":67,"column":56}},"29":{"start":{"line":68,"column":27},"end":{"line":68,"column":32}},"30":{"start":{"line":69,"column":8},"end":{"line":73,"column":10}},"31":{"start":{"line":75,"column":4},"end":{"line":75,"column":14}},"32":{"start":{"line":77,"column":0},"end":{"line":77,"column":46}},"33":{"start":{"line":79,"column":4},"end":{"line":81,"column":35}},"34":{"start":{"line":84,"column":4},"end":{"line":85,"column":80}}},"fnMap":{"0":{"name":"checkNode","decl":{"start":{"line":10,"column":9},"end":{"line":10,"column":18}},"loc":{"start":{"line":10,"column":30},"end":{"line":14,"column":1}},"line":10},"1":{"name":"checkArrayType","decl":{"start":{"line":15,"column":9},"end":{"line":15,"column":23}},"loc":{"start":{"line":15,"column":35},"end":{"line":39,"column":1}},"line":15},"2":{"name":"checkTypeReference","decl":{"start":{"line":40,"column":9},"end":{"line":40,"column":27}},"loc":{"start":{"line":40,"column":39},"end":{"line":58,"column":1}},"line":40},"3":{"name":"checkImplicitType","decl":{"start":{"line":59,"column":9},"end":{"line":59,"column":26}},"loc":{"start":{"line":59,"column":38},"end":{"line":76,"column":1}},"line":59},"4":{"name":"checkIsReturnType","decl":{"start":{"line":78,"column":9},"end":{"line":78,"column":26}},"loc":{"start":{"line":78,"column":33},"end":{"line":82,"column":1}},"line":78},"5":{"name":"isUntypedAndHasArrayLiteralExpressionInitializer","decl":{"start":{"line":83,"column":9},"end":{"line":83,"column":57}},"loc":{"start":{"line":83,"column":64},"end":{"line":86,"column":1}},"line":83}},"branchMap":{"0":{"loc":{"start":{"line":17,"column":4},"end":{"line":37,"column":5}},"type":"if","locations":[{"start":{"line":17,"column":4},"end":{"line":37,"column":5}},{"start":{"line":17,"column":4},"end":{"line":37,"column":5}}],"line":17},"1":{"loc":{"start":{"line":18,"column":8},"end":{"line":21,"column":9}},"type":"if","locations":[{"start":{"line":18,"column":8},"end":{"line":21,"column":9}},{"start":{"line":18,"column":8},"end":{"line":21,"column":9}}],"line":18},"2":{"loc":{"start":{"line":18,"column":12},"end":{"line":19,"column":79}},"type":"binary-expr","locations":[{"start":{"line":18,"column":12},"end":{"line":18,"column":23}},{"start":{"line":19,"column":12},"end":{"line":19,"column":79}}],"line":18},"3":{"loc":{"start":{"line":22,"column":8},"end":{"line":27,"column":9}},"type":"if","locations":[{"start":{"line":22,"column":8},"end":{"line":27,"column":9}},{"start":{"line":22,"column":8},"end":{"line":27,"column":9}}],"line":22},"4":{"loc":{"start":{"line":22,"column":12},"end":{"line":25,"column":38}},"type":"binary-expr","locations":[{"start":{"line":22,"column":12},"end":{"line":22,"column":44}},{"start":{"line":23,"column":12},"end":{"line":23,"column":23}},{"start":{"line":24,"column":12},"end":{"line":24,"column":53}},{"start":{"line":25,"column":12},"end":{"line":25,"column":38}}],"line":22},"5":{"loc":{"start":{"line":28,"column":8},"end":{"line":30,"column":9}},"type":"if","locations":[{"start":{"line":28,"column":8},"end":{"line":30,"column":9}},{"start":{"line":28,"column":8},"end":{"line":30,"column":9}}],"line":28},"6":{"loc":{"start":{"line":28,"column":12},"end":{"line":28,"column":67}},"type":"binary-expr","locations":[{"start":{"line":28,"column":12},"end":{"line":28,"column":40}},{"start":{"line":28,"column":44},"end":{"line":28,"column":67}}],"line":28},"7":{"loc":{"start":{"line":42,"column":4},"end":{"line":56,"column":5}},"type":"if","locations":[{"start":{"line":42,"column":4},"end":{"line":56,"column":5}},{"start":{"line":42,"column":4},"end":{"line":56,"column":5}}],"line":42},"8":{"loc":{"start":{"line":42,"column":8},"end":{"line":43,"column":57}},"type":"binary-expr","locations":[{"start":{"line":42,"column":8},"end":{"line":42,"column":39}},{"start":{"line":43,"column":8},"end":{"line":43,"column":57}}],"line":42},"9":{"loc":{"start":{"line":44,"column":8},"end":{"line":47,"column":9}},"type":"if","locations":[{"start":{"line":44,"column":8},"end":{"line":47,"column":9}},{"start":{"line":44,"column":8},"end":{"line":47,"column":9}}],"line":44},"10":{"loc":{"start":{"line":44,"column":12},"end":{"line":45,"column":79}},"type":"binary-expr","locations":[{"start":{"line":44,"column":12},"end":{"line":44,"column":23}},{"start":{"line":45,"column":12},"end":{"line":45,"column":79}}],"line":44},"11":{"loc":{"start":{"line":48,"column":8},"end":{"line":50,"column":9}},"type":"if","locations":[{"start":{"line":48,"column":8},"end":{"line":50,"column":9}},{"start":{"line":48,"column":8},"end":{"line":50,"column":9}}],"line":48},"12":{"loc":{"start":{"line":48,"column":12},"end":{"line":48,"column":67}},"type":"binary-expr","locations":[{"start":{"line":48,"column":12},"end":{"line":48,"column":40}},{"start":{"line":48,"column":44},"end":{"line":48,"column":67}}],"line":48},"13":{"loc":{"start":{"line":60,"column":4},"end":{"line":62,"column":5}},"type":"if","locations":[{"start":{"line":60,"column":4},"end":{"line":62,"column":5}},{"start":{"line":60,"column":4},"end":{"line":62,"column":5}}],"line":60},"14":{"loc":{"start":{"line":64,"column":4},"end":{"line":74,"column":5}},"type":"if","locations":[{"start":{"line":64,"column":4},"end":{"line":74,"column":5}},{"start":{"line":64,"column":4},"end":{"line":74,"column":5}}],"line":64},"15":{"loc":{"start":{"line":64,"column":8},"end":{"line":65,"column":62}},"type":"binary-expr","locations":[{"start":{"line":64,"column":8},"end":{"line":64,"column":68}},{"start":{"line":65,"column":8},"end":{"line":65,"column":62}}],"line":64},"16":{"loc":{"start":{"line":79,"column":19},"end":{"line":81,"column":33}},"type":"binary-expr","locations":[{"start":{"line":79,"column":19},"end":{"line":79,"column":30}},{"start":{"line":80,"column":8},"end":{"line":80,"column":58}},{"start":{"line":81,"column":8},"end":{"line":81,"column":33}}],"line":79},"17":{"loc":{"start":{"line":84,"column":19},"end":{"line":85,"column":78}},"type":"binary-expr","locations":[{"start":{"line":84,"column":19},"end":{"line":84,"column":29}},{"start":{"line":85,"column":9},"end":{"line":85,"column":25}},{"start":{"line":85,"column":29},"end":{"line":85,"column":77}}],"line":84}},"s":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0},"b":{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0,0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0,0],"17":[0,0,0]}} | ||
,"/Users/JonKel/code/github/jonaskello/tslint-immutable/rules/readonlyKeywordRule.js": {"path":"/Users/JonKel/code/github/jonaskello/tslint-immutable/rules/readonlyKeywordRule.js","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":9},"end":{"line":3,"column":30}},"2":{"start":{"line":4,"column":11},"end":{"line":4,"column":28}},"3":{"start":{"line":5,"column":12},"end":{"line":5,"column":44}},"4":{"start":{"line":6,"column":13},"end":{"line":6,"column":39}},"5":{"start":{"line":7,"column":19},"end":{"line":7,"column":49}},"6":{"start":{"line":13,"column":0},"end":{"line":13,"column":123}},"7":{"start":{"line":15,"column":4},"end":{"line":15,"column":80}},"8":{"start":{"line":18,"column":4},"end":{"line":33,"column":5}},"9":{"start":{"line":22,"column":49},"end":{"line":22,"column":97}},"10":{"start":{"line":25,"column":8},"end":{"line":27,"column":9}},"11":{"start":{"line":26,"column":12},"end":{"line":26,"column":22}},"12":{"start":{"line":28,"column":8},"end":{"line":32,"column":10}},"13":{"start":{"line":34,"column":4},"end":{"line":34,"column":14}}},"fnMap":{"0":{"name":"checkNode","decl":{"start":{"line":14,"column":9},"end":{"line":14,"column":18}},"loc":{"start":{"line":14,"column":30},"end":{"line":16,"column":1}},"line":14},"1":{"name":"checkPropertySignatureAndIndexSignature","decl":{"start":{"line":17,"column":9},"end":{"line":17,"column":48}},"loc":{"start":{"line":17,"column":60},"end":{"line":35,"column":1}},"line":17},"2":{"name":"(anonymous_2)","decl":{"start":{"line":22,"column":34},"end":{"line":22,"column":35}},"loc":{"start":{"line":22,"column":47},"end":{"line":22,"column":99}},"line":22}},"branchMap":{"0":{"loc":{"start":{"line":18,"column":4},"end":{"line":33,"column":5}},"type":"if","locations":[{"start":{"line":18,"column":4},"end":{"line":33,"column":5}},{"start":{"line":18,"column":4},"end":{"line":33,"column":5}}],"line":18},"1":{"loc":{"start":{"line":18,"column":8},"end":{"line":23,"column":28}},"type":"binary-expr","locations":[{"start":{"line":18,"column":9},"end":{"line":18,"column":40}},{"start":{"line":19,"column":8},"end":{"line":19,"column":47}},{"start":{"line":20,"column":8},"end":{"line":20,"column":41}},{"start":{"line":21,"column":8},"end":{"line":23,"column":28}}],"line":18},"2":{"loc":{"start":{"line":21,"column":10},"end":{"line":23,"column":27}},"type":"binary-expr","locations":[{"start":{"line":21,"column":10},"end":{"line":21,"column":24}},{"start":{"line":22,"column":12},"end":{"line":23,"column":27}}],"line":21},"3":{"loc":{"start":{"line":25,"column":8},"end":{"line":27,"column":9}},"type":"if","locations":[{"start":{"line":25,"column":8},"end":{"line":27,"column":9}},{"start":{"line":25,"column":8},"end":{"line":27,"column":9}}],"line":25}},"s":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0},"f":{"0":0,"1":0,"2":0},"b":{"0":[0,0],"1":[0,0,0,0],"2":[0,0],"3":[0,0]}} | ||
,"/Users/JonKel/code/github/jonaskello/tslint-immutable/rules/readonlyKeywordRule.js": {"path":"/Users/JonKel/code/github/jonaskello/tslint-immutable/rules/readonlyKeywordRule.js","statementMap":{"0":{"start":{"line":2,"column":0},"end":{"line":2,"column":62}},"1":{"start":{"line":3,"column":9},"end":{"line":3,"column":30}},"2":{"start":{"line":4,"column":11},"end":{"line":4,"column":28}},"3":{"start":{"line":5,"column":12},"end":{"line":5,"column":44}},"4":{"start":{"line":6,"column":13},"end":{"line":6,"column":39}},"5":{"start":{"line":7,"column":19},"end":{"line":7,"column":49}},"6":{"start":{"line":13,"column":0},"end":{"line":13,"column":123}},"7":{"start":{"line":15,"column":4},"end":{"line":15,"column":80}},"8":{"start":{"line":18,"column":4},"end":{"line":34,"column":5}},"9":{"start":{"line":22,"column":49},"end":{"line":22,"column":97}},"10":{"start":{"line":25,"column":8},"end":{"line":27,"column":9}},"11":{"start":{"line":26,"column":12},"end":{"line":26,"column":22}},"12":{"start":{"line":28,"column":20},"end":{"line":30,"column":48}},"13":{"start":{"line":31,"column":8},"end":{"line":33,"column":10}},"14":{"start":{"line":35,"column":4},"end":{"line":35,"column":14}}},"fnMap":{"0":{"name":"checkNode","decl":{"start":{"line":14,"column":9},"end":{"line":14,"column":18}},"loc":{"start":{"line":14,"column":30},"end":{"line":16,"column":1}},"line":14},"1":{"name":"checkPropertySignatureAndIndexSignature","decl":{"start":{"line":17,"column":9},"end":{"line":17,"column":48}},"loc":{"start":{"line":17,"column":60},"end":{"line":36,"column":1}},"line":17},"2":{"name":"(anonymous_2)","decl":{"start":{"line":22,"column":34},"end":{"line":22,"column":35}},"loc":{"start":{"line":22,"column":47},"end":{"line":22,"column":99}},"line":22}},"branchMap":{"0":{"loc":{"start":{"line":18,"column":4},"end":{"line":34,"column":5}},"type":"if","locations":[{"start":{"line":18,"column":4},"end":{"line":34,"column":5}},{"start":{"line":18,"column":4},"end":{"line":34,"column":5}}],"line":18},"1":{"loc":{"start":{"line":18,"column":8},"end":{"line":23,"column":28}},"type":"binary-expr","locations":[{"start":{"line":18,"column":9},"end":{"line":18,"column":40}},{"start":{"line":19,"column":8},"end":{"line":19,"column":47}},{"start":{"line":20,"column":8},"end":{"line":20,"column":41}},{"start":{"line":21,"column":8},"end":{"line":23,"column":28}}],"line":18},"2":{"loc":{"start":{"line":21,"column":10},"end":{"line":23,"column":27}},"type":"binary-expr","locations":[{"start":{"line":21,"column":10},"end":{"line":21,"column":24}},{"start":{"line":22,"column":12},"end":{"line":23,"column":27}}],"line":21},"3":{"loc":{"start":{"line":25,"column":8},"end":{"line":27,"column":9}},"type":"if","locations":[{"start":{"line":25,"column":8},"end":{"line":27,"column":9}},{"start":{"line":25,"column":8},"end":{"line":27,"column":9}}],"line":25},"4":{"loc":{"start":{"line":28,"column":20},"end":{"line":30,"column":48}},"type":"cond-expr","locations":[{"start":{"line":29,"column":14},"end":{"line":29,"column":43}},{"start":{"line":30,"column":14},"end":{"line":30,"column":48}}],"line":28}},"s":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0},"f":{"0":0,"1":0,"2":0},"b":{"0":[0,0],"1":[0,0,0,0],"2":[0,0],"3":[0,0],"4":[0,0]}} | ||
} |
{ | ||
"name": "tslint-immutable", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"description": "TSLint rules to disable mutation in TypeScript.", | ||
@@ -51,3 +51,5 @@ "main": "tslint-immutable.json", | ||
"publish:minor": "npm run build && node scripts/publish.js minor", | ||
"publish:patch": "npm run build && node scripts/publish.js patch" | ||
"publish:patch": "npm run build && node scripts/publish.js patch", | ||
"preversion": "yarn verify", | ||
"postversion": "git push --tags && yarn publish . --tag $npm_package_version && git push && echo \"Successfully released version $npm_package_version!\"" | ||
}, | ||
@@ -54,0 +56,0 @@ "lint-staged": { |
@@ -28,6 +28,7 @@ "use strict"; | ||
} | ||
var start = utils.isIndexSignatureDeclaration(node) | ||
? node.getStart(ctx.sourceFile) | ||
: node.name.getStart(ctx.sourceFile); | ||
return [ | ||
check_node_1.createInvalidNode(node, [ | ||
new Lint.Replacement(node.getStart(ctx.sourceFile), 0, "readonly ") | ||
]) | ||
check_node_1.createInvalidNode(node, [new Lint.Replacement(start, 0, "readonly ")]) | ||
]; | ||
@@ -34,0 +35,0 @@ } |
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
1258
214529
52