forked from JamesHenry/typescript-estree
-
Notifications
You must be signed in to change notification settings - Fork 0
Offer semantic services alongside AST #1
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
Merged
Merged
Changes from 21 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
da8b9c6
feat: use cwd to find tsconfig and build program
80b59ea
fix: use text read by eslint
a956b37
fix: ensure ast maps are unique to each parse result
feacd1e
fix: handle files not included in ts project more robustly
5703f20
chore: fix indentation
fa07d36
fix: remove duplicated code from merge
aeac88b
fix: re-add missing argument
3e6307b
fix: take tsconfig paths from eslintrc rather than finding one
789b058
perf: reuse existing programs and supply outdated to create new programs
f3b7be0
fix: appropriately handle malformed tsconfigs
fc56c25
test: add test for semantic info in isolated file
7d1772c
test: add bad project input tests
e6b1098
test: add test validating cross-file type resolution
86bcf05
chore: add comment to test
b8da9c1
chore: limit badtsconfig for readability
ea1f7ce
chore: update test header
f901b06
perf: use TS watch API to track changes to programs
1c9289f
fix: ensure changes to the linted file are detected
c0f4a1b
fix: improve project option validation
6637f6c
chore: remove unnecessary comments from tsconfig in tests
7fc634f
fix: report config file errors whenever the program updates
455ffc8
fix: add sourcefile to more operations
f25a85f
refactor: only pass projects to project option handling
4a857b5
refactor: break up program creation for readability
d5e69af
refactor: add comment and use util function
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
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.
We should just make this public.
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.
Note that the implementation I wrote differs very slightly (but importantly) from our implementation, so we should fix that too. But that's why I had to change it.