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.
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
implements autofix in define-props-declaration (#2465) #2466
base: master
Are you sure you want to change the base?
implements autofix in define-props-declaration (#2465) #2466
Changes from 23 commits
4844612
b770232
99e2f3e
f0294e8
5a4a15e
583c0db
4499597
17ac982
5e1d3b1
bc506f9
f301546
207477e
d08bed1
6cb7153
f6c205f
536c6a1
100065d
7d9e731
0715943
bbdc134
2a1c654
7cdf3ff
0e6ea56
e9d4400
0bd915b
1d58a2b
da17d74
6634c2d
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Why does it need to throw an error here?
Can't we make it guard against those before processing the autofix?
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.
What do you mean?
I think it's more clear if we throw an error here.
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.
I think that if we throw an error, the user's eslint command will fail.
Did you throw the error with that intention? If so, why is that?
If auto-fix is not possible, I think it should be handled so that auto-fix is not performed, rather than throwing an error.
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.
I see. Let me catch errors and ignore them.
I prefer to leave a sign of an error somewhere, maybe in
console.debug()
, but it is up to you.Check warning on line 128 in lib/rules/define-props-declaration.js
GitHub Actions / Lint