From 7018daf1ae381b3824fc59ce1e2ce89654f243d1 Mon Sep 17 00:00:00 2001 From: Adi Dahiya Date: Tue, 18 Apr 2017 11:43:56 -0400 Subject: [PATCH] Prepare v2.6.0 (#88) --- README.md | 5 +++++ package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5fd7ca5..32f76f9 100644 --- a/README.md +++ b/README.md @@ -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_ diff --git a/package.json b/package.json index 77c6e38..74237a1 100644 --- a/package.json +++ b/package.json @@ -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": {