# Neue ESLint-Regeln + Browserlist-Aktualisierung + preact/preact-cli-Aktualisierung

**URL:** <https://community.gladysassistant.com/t/nouvelles-regles-eslint-mise-a-jour-de-la-browserlist-mise-a-jour-de-preact-preact-cli/7296>\
**Category:** Développement\
**Created:** [16. Mai 2022 um 13:06 UTC](https://community.gladysassistant.com/t/nouvelles-regles-eslint-mise-a-jour-de-la-browserlist-mise-a-jour-de-preact-preact-cli/7296 "2022-05-16T13:06:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [16. Mai 2022 um 13:06 UTC](https://community.gladysassistant.com/t/nouvelles-regles-eslint-mise-a-jour-de-la-browserlist-mise-a-jour-de-preact-preact-cli/7296/1 "2022-05-16T13:06:16Z")

</div>

Hallo [@contributors](https://community.gladysassistant.com/groups/contributors) Gladys 🙂

Eine kleine Nachricht, um euch zu informieren, dass ich eine kleine Frühjahrsputz-Aktion in der ESLint-Konfiguration des Gladys-Frontends durchgeführt habe.

Letztlich arbeiten wir schon über 2 Jahre an der v4 (die Zeit vergeht schnell!), und diese Konfiguration hatte sich kaum verändert:

- Trotzdem hat Preact eine offizielle ESLint-Konfiguration veröffentlicht, die wirklich nicht schlecht ist: [GitHub - preactjs/eslint-config-preact: Unopinionated baseline ESLint config for Preact and Preact CLI codebases. · GitHub](https://github.com/preactjs/eslint-config-preact)
- Die Synacor-Konfiguration, die wir verwendet haben, wurde nicht mehr gewartet und fehlten viele Dinge
- Die berühmte [browserlist](https://github.com/browserslist/browserslist), die ESLint die Liste der unterstützten Browser gibt, war nicht auf dem neuesten Stand und verhinderte die Verwendung bestimmter Funktionen, die eigentlich in allen modernen Browsern verfügbar sind
- Preact und preact-cli wurden kürzlich aktualisiert, keine großen neuen Funktionen, aber ihre Konfiguration hat sich weiterentwickelt, sie haben unnötige Polyfills entfernt, einige kleine Bugs behoben und ihre browserlist aktualisiert, um nicht mehr für veraltete Browser zu bauen!

Kurz gesagt, es sind kleine Dinge, die man aber ab und zu erledigen muss.

Ich habe die Konfiguration in diesem PR aktualisiert:

> <https://github.com/GladysAssistant/Gladys/pull/1520>
>
> \### 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!

Zögert nicht, einen kleinen Rebase auf eurem PR durchzuführen, um zu sehen, ob Änderungen auf eurer Seite erforderlich sind 🙂

Falls ihr Fragen habt, ist dieses Thema dafür da!

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [16. Mai 2022 um 15:06 UTC](https://community.gladysassistant.com/t/nouvelles-regles-eslint-mise-a-jour-de-la-browserlist-mise-a-jour-de-preact-preact-cli/7296/2 "2022-05-16T15:06:50Z")

</div>

> [@pierre-gilles](#):
>
> Ich habe eine kleine Frühjahrsputz-Aktion in der Konfiguration durchgeführt

Frühjahrsputz mit über 16.000 geänderten Zeilen!!  
Ich möchte nicht bei dir sein, wenn du putzt, das muss ja ein Ding sein!

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [16. Mai 2022 um 15:27 UTC](https://community.gladysassistant.com/t/nouvelles-regles-eslint-mise-a-jour-de-la-browserlist-mise-a-jour-de-preact-preact-cli/7296/3 "2022-05-16T15:27:09Z")

</div>

> [@Tlse-vins](#):
>
> Frühlingsputz mit über 16.000 geänderten Zeilen!!

Es ist nur die package-lock.json, die sich stark verändert hat, das ist eine generierte Datei 😉 Der PR ist relativ klein!
