Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds support to the
walker
for parsingts
andtsx
files. It also add a flag to ignore thecache
.The way to support typescript is to simply compile it before parsing it with
babel.parse
with thetypescript
compiler. We can't really use the babel typescript plugin/preset because it can still cause compilation errors and it would conflict with theflow
plugin that comes from the babel options fromreify
.We also added the flag
METEOR_ESLINT_PLUGIN_IGNORE_CACHE
to allow the user to ignore or not the cache. This is needed because there seems to be a race condition between the 2 rules that uses thewalker
, and the end result is the cache file empty. I think this happens only in larger projects because ESLint might run the rules concurrently. I tested with the TS meteor sample and it worked with the cache without a problem.