From 35f49a5b05c98b4fb3792eac28510d0ee7bb7a09 Mon Sep 17 00:00:00 2001 From: Adi Dahiya Date: Mon, 17 Jul 2017 23:28:43 -0400 Subject: [PATCH] Explicit peer dependencies (#108) --- README.md | 3 +-- package.json | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1538b9e..eb726c9 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/package.json b/package.json index a4a8124..7b86d87 100644 --- a/package.json +++ b/package.json @@ -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",