en cours: règles ESLint/Oxlint

- eslint OK
- imports EN COURS
This commit is contained in:
gcch 2026-03-29 22:36:32 +02:00
commit 93dd909919
14 changed files with 2293 additions and 1509 deletions

View file

@ -15,16 +15,26 @@ format:
update:
bun update --interactive
# Analyse le code TypeScript avec Oxlint.
# Reporte les soucis du code TypeScript avec Oxlint.
lint-js:
bun --bun oxlint \
--config cfg/oxlint.config.ts
# Fixe le code TypeScript avec Oxlint.
fix-js:
bun --bun oxlint \
--config cfg/oxlint.config.ts \
--fix-dangerously
# Analyse le code mort et les dépendances inutilisées du projet.
find-dead-code:
-bun --bun knip --cache --cache-location ".cache/knipcache" --strict
-bun --bun knip --cache --cache-location ".cache/knipcache" --production --strict
-bun --bun knip \
--cache --cache-location ".cache/knipcache" \
--strict
-bun --bun knip \
--cache --cache-location ".cache/knipcache" \
--production \
--strict
# Compile le projet.
build:
@ -32,17 +42,9 @@ build:
--config "cfg/tsdown.config.ts" \
--attw --publint
# Nettoie le dosiser de compilation.
# Nettoie le dossier de compilation.
clean:
rm -rf .cache/
rm -rf bun.lock
rm -rf node_modules/
rm -rfv dist/
# Nettoie le dossier de cache.
clean-cache:
rm -rf .cache/
# Publie le paquet sur le registre local.
publish:
npm publish --registry http://localhost:4873