-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[core] Remove unnecessary plugins in .eslintrc #14161
[core] Remove unnecessary plugins in .eslintrc #14161
Conversation
@oliviertassinari I just checked the failing test and I don't quite get it. |
It's because you have branched off of v3.5.1 if you pull in master the tests will pass |
0bb188f
to
9fc9a88
Compare
@joshwooding @oliviertassinari Cheers for the clarification. Is there anything else that I need to do? I'm quite new to contributing to a project |
375b453
to
b51077a
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.
I went pushing the change further. I have tried to reduce the number of custom rule we have.
@oliviertassinari Great, I like the changes. Shall I close this now? |
@WebDeg-Brian Close? No, we are waiting on the other to review, we will merge once they are happy or after 24h. |
@oliviertassinari Got it. Btw wouldn't it be better if we use |
|
@oliviertassinari you probably missed my point. I understand that you still have to tweak the rules, but based on what I've seen in your
And the config's rules:
I believe we can remove those 3 lines above because they have already been touched by |
I don't see the benefit of Rationale for separation of linting for code format: That's why linting and formatting are generally executed at different times when writing code. I personally have gone so far as either having format on save or having a shortcut for formatting that has become second nature after every. That's the theoretical argument. The practical side was outlined in the original PR #12564. Simply put: eslint can only run on js files while prettier can run on js, json, ts etc. Since we have to execute prettier anyway on the ts files we might as well consolidate code style rules in a single task instead of running some formatting with eslint and some with prettier. If eslint can run on ts files then I would agree that we can move it back there. |
@eps1lon Fair point. |
@eps1lon I agree it's why I have added this package in this pull-request.
The one thing I miss is a shorter feedback loop when I have forgotten to run prettier. |
@WebDeg-Brian Thank you |
@oliviertassinari Morning. As I said above I believe these 3 lines in the
Is it possible to remove those? |
@WebDeg-Brian I couldn't manage to remove them. If you can, please go ahead :). |
@oliviertassinari My pleasure. Shall I open a new PR? |
@WebDeg-Brian Yes. |
I understand that. It's not that big of an issue for me anymore since I just autoformat and assume that every line I write isn't formatted anyway. Saves mental overhead if I don't have to think about whether a statement requires a newline, or whitespace or should have a trialing comma etc. I don't think you should fix code style manually. It may be possible to use |
Remove unnecessary eslint plugins. I have checked different rules in different files in different locations of the project, and it works fine