From 1d5dd95addd9debe9e482bb47b8b296ba87fc08c Mon Sep 17 00:00:00 2001 From: Jed Fox Date: Mon, 24 Dec 2018 08:26:22 -0500 Subject: [PATCH] Make TypeScript a peerDependency --- README.md | 10 ++++++++-- package.json | 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index de10686..272bb43 100644 --- a/README.md +++ b/README.md @@ -12,13 +12,19 @@ TypeScript support for ESLint. (This is still in the very early stages, so pleas You'll first need to install [ESLint](http://eslint.org): -``` +```shellsession $ npm i eslint --save-dev ``` -Last, install `eslint-plugin-typescript`: +Next, install `typescript` if you haven’t already: +```shellsession +$ npm i typescript@~3.1.1 --save-dev ``` + +Last, install `eslint-plugin-typescript`: + +```shellsession $ npm install eslint-plugin-typescript --save-dev ``` diff --git a/package.json b/package.json index 1fb20c3..73a9fc2 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,8 @@ "typescript": "~3.1.1" }, "peerDependencies": { - "eslint": ">=4.13.1 < 6" + "eslint": ">=4.13.1 < 6", + "typescript": "~3.1.1" }, "nyc": { "include": [