Skip to content

Commit

Permalink
Prepare v2.6.0 (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
adidahiya authored Apr 18, 2017
1 parent 84759ad commit 7018daf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ Sample configuration where `tslint.json` lives adjacent to your `node_modules` f
- Requires _or_ bans spaces between curly brace characters in JSX.
- Rule options: `["always", "never"]`
- _Includes automatic code fix_
- `jsx-no-bind` (since v2.6.0)
- Forbids function binding in JSX attributes. This has the same intent as `jsx-no-lambda` in helping you avoid excessive re-rendres.
- Note that this currently only does a simple _syntactic_ check, not a _semantic_ one (it doesn't use the type checker). So it may have some
rare false positives if you define your own `.bind` function and supply `this` as a parameter.
- Rule options: _none_
- `jsx-no-lambda`
- Creating new anonymous functions (with either the `function` syntax or ES2015 arrow syntax) inside the `render` call stack works against _pure component rendering_. When doing an equality check between two lambdas, React will always consider them unequal values and force the component to re-render more often than necessary.
- Rule options: _none_
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tslint-react",
"version": "2.5.0",
"version": "2.6.0",
"description": "Lint rules related to React & JSX for TSLint",
"main": "tslint-react.json",
"repository": {
Expand Down

0 comments on commit 7018daf

Please sign in to comment.