en cours: règles ESLint/Oxlint
- eslint
This commit is contained in:
parent
bc3b1606e9
commit
638529fc57
5 changed files with 464 additions and 158 deletions
26
justfile
26
justfile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue