Skip to content
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

Revert "Revert "js: introduce the Biome linter/formatter (#20754)"" #20765

Merged
merged 5 commits into from
Sep 18, 2024

Conversation

freesteph
Copy link
Contributor

@freesteph freesteph commented Sep 18, 2024

Reverts #20763 and fix the search bug associated I introduced: 8160f5b

@revolunet
Copy link
Member

Pour moi la recherche est toujours pétée, on ne peut pas combiner les filtres.

@freesteph
Copy link
Contributor Author

Pour moi la recherche est toujours pétée, on ne peut pas combiner les filtres.

OK genre quoi ? moi ça a l'air de fonctionner mais je la comprend moins bien je crois

freesteph and others added 3 commits September 18, 2024 15:37
It's a case of for..in vs for..of which is my mistake, sorry.
Avoid mutating the parameter – which is why I broke it in the first
place by using a new variable that was being overwritten on each
filter instead of being successively filtered.

Go for a functional approach where these filters are combined or
shortcut if necessary.
@revolunet
Copy link
Member

search-team j'ai l'impression que ce n'est plus utilisé ?

Et le reste du JS.... mériterait un petit nettoyage mais bon il y a p-e une approche un peu plus globale à revoir

@freesteph
Copy link
Contributor Author

search-team j'ai l'impression que ce n'est plus utilisé ?

Effectivement, apparemment c'était utilisé sur feu la page Brigade

Et le reste du JS.... mériterait un petit nettoyage mais bon il y a p-e une approche un peu plus globale à revoir

doux euphémisme

@freesteph
Copy link
Contributor Author

Et le reste du JS.... mériterait un petit nettoyage mais bon il y a p-e une approche un peu plus globale à revoir

Cela dit c'est un peu le but de la PR – rafistoler le JS au moins sur l'esthétique (quand je fais pas des fix à la va vite par dessus) – pour faciliter le nettoyage, refactor, entretien, etc

@revolunet revolunet merged commit 0d9992b into master Sep 18, 2024
7 checks passed
@revolunet revolunet deleted the revert-20763-restore-js branch September 18, 2024 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants