Commit 5235468
committed
chore: add ruff, mypy, ESLint, and astro check quality tooling
- backend: add ruff>=0.4 and mypy>=1.10 to dev optional-dependencies
with ruff config (E/W/F/I/UP/B rules, py311 target, 120 char line)
and mypy config (ignore_missing_imports, check_untyped_defs)
- frontend: add eslint, typescript-eslint, eslint-plugin-astro as
devDependencies; add 'check' (astro check) and 'lint' scripts
scoped to PR #14 files only ([id]/index.astro, [id]/print.astro,
src/lib/label-template.ts)
- frontend: create eslint.config.mjs with flat config for TS + Astro
- fix: replace @ts-ignore with @ts-expect-error in [id]/index.astro
(QRCode UMD global) as required by @typescript-eslint/ban-ts-comment1 parent cc7e42b commit 5235468
5 files changed
Lines changed: 1841 additions & 87 deletions
File tree
- backend
- frontend
- src/pages/spools/[id]
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
0 commit comments