tslint-react
Advanced tools
Comparing version 0.3.2 to 0.4.0
{ | ||
"name": "tslint-react", | ||
"version": "0.3.2", | ||
"version": "0.4.0", | ||
"description": "React-specific rules for TSLint", | ||
@@ -5,0 +5,0 @@ "main": "tslint-react.json", |
@@ -53,2 +53,11 @@ [![NPM version](https://badge.fury.io/js/tslint-react.svg)](https://www.npmjs.com/package/tslint-react) | ||
- Rule options: _none_ | ||
- `jsx-self-close` (since v0.4.0) | ||
- Enforces that JSX elements with no children are self-closing. | ||
```ts | ||
// bad | ||
<div className="foo"></div> | ||
// good | ||
<div className="foo" /> | ||
``` | ||
- Rule options: _none_ | ||
@@ -55,0 +64,0 @@ ### Development |
25807
15
521
68