-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
chore: add typescript as optionalDependency #1046
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,8 @@ | |
npm install @typescript-eslint/parser --save-dev | ||
``` | ||
|
||
Note: `@typescript-eslint/parser` assumes you have `typescript` already installed. Please read the documentation [here](https://github.com/typescript-eslint/typescript-eslint#supported-typescript-version) for more details. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. probably want this in |
||
|
||
## Usage | ||
|
||
In your ESLint configuration file, set the `parser` property: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,5 +61,8 @@ | |
"glob": "^7.1.4", | ||
"lodash.isplainobject": "4.0.6", | ||
"typescript": "*" | ||
}, | ||
"optionalDependencies": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto for needing this in |
||
"typescript": "*" | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe would be good to add a comment stating explicitly that we expect the user to install typescript in the project root?
might as well be explicit.