Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "eslint"
-
Why the fuck why are tslint and prettier are always sucking their dicks and fuck each others asses.
Do you know this moment when you think:.... 🤔 They have millions of downloads, why do I bother formatting my code so much. Mabye all this people are smarter and saving so much time.
Then you set up eslint and prettier adjusting 10000k rules just to find eslint and prettier five minutes later in one file fucking their asses again how to indent on save😠😱7 -
About a year ago I had the great idea to enforce ago I had the great idea of proposing that we all lint our legacy code base using eslint to increase the overall quality of our JS.
I distributed the task of initially fixing all the errors eslint would find to the whole Frontend team (Luckily we only use JS there). I've finished my part in a couple of weeks and came across this piece of spaghetti.
One of the guys who has been with the company for over 10 years said, that the guy who wrote this monster was very proud of it...
In case you cannot understand what this does: It calculates the distance between 2 points on earth.9 -
My current assignment is to refactor a React app and get it up to speed. All dependencies have been updated and necessary changes made. Currently I’m working to get class components moved to functional components when React hooks can replace the lifecycle methods used. Additionally I am updating it with ESLint to follow the Google JavaScript Style Guide because the code quality is questionable. What are some of the things you’d do to refactor a React application?5
-
Anyone know of a good non-opinionated ESlint default config that does a little more than eslint:recommended? I find eslint-config-airbnb-base & eslint-config-standard to be way too annoying and restrictive1