-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
chore!: update recommended config #1033
Conversation
commit: |
44282f1
to
a390730
Compare
🦋 Changeset detectedLatest commit: 7d1bdf4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
a390730
to
6532e5b
Compare
6532e5b
to
aeac0ad
Compare
@ota-meshi |
I like this new config 👍 I think it might be a good idea to remove |
Hi, thanks, I am thinking about whether these shouldn't be added as well (in decreasing order of certainty):
|
I don’t think this needs to be added. (In fact, it’s better not to add it.) This is because it would result in meaningless linting errors for users who don’t use basepath. Only users who use basepath should opt in to this rule.
This is not included in the recommended rules for Vue either. IIRC it was added to the Vue's recommended config once before but was removed due to user pushback.
This was initially added, but in the codebases I tested, false positives occurred. Therefore, I judged that it was not mature enough to be included in the recommended rules. |
Thanks, in reverse order now :D
Hmm, if it has too many FPs, it shouldn't be added , I agree. Could you open an issue for the FPs? I'd like to fix them (regardless of the recommended config)
I can't find anything about the removal, maybe @ota-meshi can explain what the reason was?
I am torn on this one - on the one hand, it would be more warnings for users, on the other, I consider not adding the base path to be incorrect - if the code is e.g. reused in the future, this is a serious foot-gun (So much so that the SvelteKit team considers fixing it on their end). |
IMO: Code is read more often than it is written, so reducing unnecessary noise is important. For projects where the basepath doesn’t need to be considered, the code added by this rule would just become noise. |
The config provided by eslint-plugin-vue follows the Vue style guide, so if something is not mentioned in the style guide, it will not be added to the config. Therefore, the However, neither |
I believe we’ve agreed on the recommended config. Finally, I’ll document the changes in detail in the changeset and wrap it up. |
0143138
to
a93dd61
Compare
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.
Thank you very much!
close: #755
close: #785
close: #894