Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare v2.6.0 #88

Merged
merged 1 commit into from
Apr 18, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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