techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

4.6K
active users

#eslint

0 posts0 participants0 posts today

Avant, avec #eslint < 9, je pouvais installer le trucs globalement et appliquer les même règles pour les dizaines de projets sur lesquels je travaille.

Aujourd'hui, j'ai essayé de migrer le code source de mon site web sous ESLint 9.

Je me retrouve avec 40 MEGA OCTETS de dépendances dans node_modules !!!!!

Le truc est 100 FOIS plus lourd que mon code source 😱

Et imaginez ça multiplier par 10 ou 20 !

Le progrès qu'on vous dis 🤦

step away for 5 minutes and eslint, a successful ~10yo open source project decides to not only break all of their plugin configurations and have the migrate script generate configs that don't typecheck, but also make it impossible to configure some combinations of plugins because every library has a different way of telling you to integrate their config? why?? #eslint

Continued thread

"One of the biggest reasons #ESLint users haven’t upgraded to ESLint v9.x is migrating a configuration file seems difficult and complicated. Some plugins support flat config and the ESLint v9.x rule APIs and some don’t. Sometimes you need to use FlatCompat and sometimes you need to use the compatibility utilities."

eslint.org/blog/2024/05/eslint
---
That's simple 🤯

c:\>npx @eslint/migrate-config .eslintrc.json

ESLint logo
eslint.orgIntroducing the ESLint Configuration Migrator - ESLint - Pluggable JavaScript LinterA pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.