File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ Sample configuration where `tslint.json` lives adjacent to your `node_modules` f
59
59
- Passing strings to the ` ref ` prop of React elements is considered a legacy feature and will soon be deprecated.
60
60
Instead, [ use a callback] ( https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute ) .
61
61
- Rule options: _ none_
62
- - ` jsx-use-translation-function ` (since v2.3.1 )
62
+ - ` jsx-use-translation-function ` (since v2.4.0 )
63
63
- Enforces use of a translation function. Plain string literals are disallowed in JSX when enabled.
64
64
- Rule options: _ none_
65
65
- Off by default
@@ -76,6 +76,7 @@ Sample configuration where `tslint.json` lives adjacent to your `node_modules` f
76
76
- Enforces that multiline JSX expressions are wrapped with parentheses.
77
77
- Opening parenthesis must be followed by a newline.
78
78
- Closing parenthesis must be preceded by a newline.
79
+ - Off by default
79
80
``` ts
80
81
// bad
81
82
const button = <button type = " submit" >
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " tslint-react" ,
3
- "version" : " 2.3 .0" ,
3
+ "version" : " 2.4 .0" ,
4
4
"description" : " Lint rules related to React & JSX for TSLint" ,
5
5
"main" : " tslint-react.json" ,
6
6
"repository" : {
You can’t perform that action at this time.
0 commit comments