Skip to content

Commit

Permalink
Add usage instructions to README
Browse files Browse the repository at this point in the history
  • Loading branch information
adidahiya authored Jun 16, 2016
1 parent be01b00 commit d0c1364
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,23 @@ tslint-react

Lint rules related to React & JSX for [TSLint](https://github.com/palantir/tslint/).

### Usage

Sample configuration where `tslint.json` lives adjacent to your `node_modules` folder:

```js
{
"extends": "tslint:latest",
"rulesDirectory": [
"./node_modules/tslint-react/rules"
],
"rules": {
// enable tslint-react rules here
"jsx-no-lambda": true
}
}
```

### Rules

- `jsx-no-lambda`
Expand Down

0 comments on commit d0c1364

Please sign in to comment.