Skip to content
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

fix(typescript-estree): parsing error for vue sfc #1083

Merged
merged 2 commits into from
Oct 20, 2019

Conversation

yoyo930021
Copy link
Contributor

@yoyo930021 yoyo930021 commented Oct 15, 2019

@typescript-eslint
Copy link
Contributor

Thanks for the PR, @yoyo930021!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitors per day.

@yoyo930021 yoyo930021 force-pushed the fix-vue-sfc branch 2 times, most recently from 1993d1f to 97ae5e7 Compare October 15, 2019 09:52
@yoyo930021
Copy link
Contributor Author

Reason:
The TypeScript program will read all the files and include the .vue files.
The .vue files were read include no-ts part in the TypeScript program.

Copy link
Member

@bradzacher bradzacher left a comment

Choose a reason for hiding this comment

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

Could you please add tests for this?
It's hard to verify that this will fix anything without them.
Additionally we want to ensure that we don't accidentally break this in future, which we can't do without tests.

@bradzacher bradzacher added the bug Something isn't working label Oct 15, 2019
@yoyo930021
Copy link
Contributor Author

yoyo930021 commented Oct 16, 2019

Could you please add tests for this?
It's hard to verify that this will fix anything without them.
Additionally we want to ensure that we don't accidentally break this in future, which we can't do without tests.

I finished.

No pass test snap:
test.js.snap.log

@codecov
Copy link

codecov bot commented Oct 18, 2019

Codecov Report

Merging #1083 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master    #1083   +/-   ##
=======================================
  Coverage   94.09%   94.09%           
=======================================
  Files         120      120           
  Lines        5200     5200           
  Branches     1442     1442           
=======================================
  Hits         4893     4893           
  Misses        176      176           
  Partials      131      131
Impacted Files Coverage Δ
...pt-estree/src/create-program/createWatchProgram.ts 92.99% <100%> (ø) ⬆️

@yoyo930021
Copy link
Contributor Author

@bradzacher
This PR will update file content in Typescript program when lint this file.

Need to update file content when checking about file content isn't equal linting code?

Copy link
Member

@bradzacher bradzacher left a comment

Choose a reason for hiding this comment

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

The changes look good to me.
I just rebased this on top of master, and fixed the conflicts.
I'll merge this when it passes

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

False positives when using with Vue SFC
2 participants