Hola a los @contributors Gladys
Un pequeño mensaje para avisaros de que he hecho un poco de limpieza de primavera en la configuración de ESLint del front de Gladys.
Al final, ya hace más de 2 años que trabajamos en la v4 (¡vuela el tiempo!), y esta configuración no había cambiado mucho:
Sin embargo, desde Preact ha sacado una configuración oficial de ESLint que está realmente bien: GitHub - preactjs/eslint-config-preact: Unopinionated baseline ESLint config for Preact and Preact CLI codebases. · GitHub
La configuración de Synacor que usábamos ya no se mantenía y le faltaban muchas cosas
La famosa browserlist que le da a ESLint la lista de navegadores que soportamos no estaba actualizada, y nos impedía usar ciertas funciones disponibles en todos los navegadores modernos
Preact y preact-cli se han actualizado recientemente, sin nuevas funcionalidades importantes, pero su configuración ha evolucionado, han eliminado polyfills que ya no son necesarios, han solucionado algunos pequeños bugs, y también han actualizado su browserlist para dejar de construir para navegadores obsoletos.
En resumen, son pequeños detalles, pero que hay que hacer de vez en cuando.
He actualizado la configuración en este PR:
master ← upgrade-eslint-configuration
ouvert 01:44PM - 14 May 22 UTC
### Pull Request check-list
To ensure your Pull Request can be accepted as fa… st as possible, make sure to review and check all of these items:
- [ ] If your changes affects code, did your write the tests?
- [ ] Are tests passing? (`npm test` on both front/server)
- [ ] Is the linter passing? (`npm run eslint` on both front/server)
- [ ] Did you run prettier? (`npm run prettier` on both front/server)
- [ ] If you are adding a new features/services, did you run integration comparator? (`npm run compare-translations` on front)
- [ ] Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to [the community](https://community.gladysassistant.com/) for testing before merging.
- [ ] If your changes modify the API (REST or Node.js), did you modify the API documentation? (Documentation is based on comments in code)
- [ ] If you are adding a new features/services which needs explanation, did you modify the user documentation? See [the GitHub repo](https://github.com/GladysAssistant/v4-website) and the [website](https://gladysassistant.com).
- [ ] Did you add fake requests data for the demo mode (`front/src/config/demo.js`) so that the demo website is working without a backend? (if needed) See [https://demo.gladysassistant.com](https://demo.gladysassistant.com).
NOTE: these things are not required to open a PR and can be done afterwards / while the PR is open.
### Description of change
Please provide a description of the change here. It's always best with screenshots, so don't hesitate to add some!
No dudéis en hacer un pequeño rebase en vuestras PR para ver si hay cambios que hacer por vuestra parte
Si tenéis preguntas, ¡este tema es para eso!
¡Limpieza de primavera con más de 16.000 líneas modificadas!
No me gustaría estar en tu casa cuando haces la limpieza, ¡debe ser una locura!
Solo el archivo package-lock.json ha cambiado mucho, es un archivo generado ¡La PR es relativamente pequeña!