Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Fix: SyntaxKind code checks, update TS peerDependency ^1.7.3 (fixes #15) #16

Merged
merged 1 commit into from
Mar 2, 2016
Merged

Fix: SyntaxKind code checks, update TS peerDependency ^1.7.3 (fixes #15) #16

merged 1 commit into from
Mar 2, 2016

Conversation

JamesHenry
Copy link
Member

Fixes #15

@@ -293,11 +293,11 @@ function getTokenType(token) {
}
}

if (token.kind >= 68 && token.kind <= 112) {
if (token.kind >= 70 && token.kind <= 114) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than just hardcoding the numbers, I think we should try to make use of the token boundary values: microsoft/TypeScript@b24c3a7#diff-29796169c2bd635765a9f574727f77f3R310

As far as I can tell, using SyntaxKind.FirstKeyword and SyntaxKind.LastFutureReservedWord here might inoculate us from this problem in the future.

@JamesHenry
Copy link
Member Author

Thanks for the feedback and for setting up travis - I updated the PR.

It seems like it failed on node 0.10.x build, but passed on the others. NPM version issue?

@nzakas
Copy link
Member

nzakas commented Mar 2, 2016

Looks like the TypeScript module isn't being installed because it's a peer dependency. We can probably stop testing in 0.10 at this point, so I'm not too worried.

nzakas added a commit that referenced this pull request Mar 2, 2016
Fix: SyntaxKind code checks, update TS peerDependency ^1.7.3 (fixes #15)
@nzakas nzakas merged commit b51a3fe into eslint:master Mar 2, 2016
@JamesHenry JamesHenry deleted the issue-15 branch August 22, 2016 20:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants