Skip to content

Commit

Permalink
Explicit peer dependencies (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
adidahiya authored Jul 18, 2017
1 parent 21f3308 commit 35f49a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ Lint rules related to React & JSX for [TSLint](https://github.com/palantir/tslin

### Usage

tslint-react has _implicit_ peer dependencies on TSLint and TypeScript. The recommended versions of those packages are
listed as `devDependencies`.
tslint-react has peer dependencies on TSLint and TypeScript.

To use these lint rules with the default preset, use configuration inheritance via the `extends` keyword.
Here's a sample configuration where `tslint.json` lives adjacent to your `node_modules` folder:
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
"test-rules": "scripts/testRules.sh",
"verify": "npm-run-all build test-rules"
},
"peerDependencies": {
"tslint": "^5.1.0",
"tsutils": "^1.7.0",
"typescript": ">=2.1.0 || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev"
},
"devDependencies": {
"@types/colors": "^1.1.3",
"@types/glob": "^5.0.30",
Expand Down

0 comments on commit 35f49a5

Please sign in to comment.