-
-
Notifications
You must be signed in to change notification settings - Fork 920
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
infra(deps): add eslint unicorn #2418
Conversation
6bcf8e9
to
4d917db
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## next #2418 +/- ##
==========================================
- Coverage 99.59% 99.59% -0.01%
==========================================
Files 2823 2823
Lines 255523 255523
Branches 1107 1105 -2
==========================================
- Hits 254488 254480 -8
- Misses 1007 1015 +8
Partials 28 28 |
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.
This PR looks good to me, but I'm not sure whether we actually need it.
IMO we should definitely use and secondly: I'm sick of getting asked such question, so I now try to bring forward more linting to prevent such questions proactively |
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'm with @ST-DDT here. While this is cool and all, what is the actual value we gain from this? I've seen people go absolutly crazy over static code analysis and I fear that we might run into one of those rabbit holes here as well. If one of those rules is actually helpful I'm here for enabling them, but do we really need all of them? I'll have read into the explaination why we should use each rule but that will take a while.
I'm sick of the lack of design patterns getting used in this library to ensure code readabilty and maintainablity, but I was getting shut down as it is "kind of overengineered". How is "proactively" disallowing certain programming styles though static code analysis not overengineered tho? |
4d917db
to
d204153
Compare
I'm sorry. |
Accepted 🙂 Now I started to put a whole half day already to find a way to ensure a modern, uniform, stable code base, so there is no much place for doing it this way or that way it's a bit like the script, generation of locale files and auto-generating the docs |
Don't take this the wrong way, but i feel that we do spend a lot of time debating on adding more and more lint rules; and although the goals of a more modern and consistent codebase are noble, this shouldn't come at the expense of actually working on new features and fixing bugs. |
Obviously its partly personal preference, but i would much rather be brainstorming on adding a food module (1593) or figuring out steps towards solving bundle shaking (1791) than debating precisely when to use spread syntax :D |
Good that I'm not the only developer contributing to this project and stuff can be done in parallel
Feel absolutely free to do that, I don't hold you back It's right now consuming a lot of my time while doing reviews to make up argues why something should be this or that way
just by applying this lint rule, we get not even stylistic choices, but even performance-fixes |
Team Decision ST-DDT will take over this PR and check whether all recommended rules or individual rules are shorter. |
This PR adds https://github.com/sindresorhus/eslint-plugin-unicorn to out eslint configuration
For now this is just the start of using this huge improvement-driven eslint plugin
I will do individual PRs for each rule, so the review process can be optimized and also individual rules can be discussed if needed
there is a PR that is an approximation of what it looks like when all is finished #2417