Commit be33bec
authored
Migrate ESLint to @hasparus/eslint-config (flat config, ESLint 10) (#115)
* Migrate ESLint to @hasparus/eslint-config (flat config, ESLint 10)
- replace inlined @edgeandnode .eslintrc.cjs with flat eslint.config.js
- extend @hasparus/eslint-config/the-guild; disable perfectionist/sort-*
and unicorn/prefer-global-this
- astro block lints frontmatter (projectService off; astro parser can't
drive type-aware linting)
- solid + check-file + better-tailwindcss blocks
- pnpm override pins @typescript-eslint/* to 8.62.1: @theguild/eslint-config
drags in utils@8.26 which crashes on ESLint 10
* Use @hasparus/eslint-config astro + solid presets
Thin consumer config: [...astro, ...solid] + per-repo tailwind entrypoint
and check-file. Drops direct astro-parser/solid/better-tailwindcss/compat
deps (now transitive via presets). Aligns @typescript-eslint override to
8.61.1 to match the shared config.
* Green up lint: rename .ts→.tsx, fix errors, pin 2.3.0
- rename 18 src .ts → .tsx (check-file .tsx-only convention)
- fix genuine errors: no-empty-function (noop), innerText→textContent,
no-array-reduce→loop, no-await-expression-member, prefer-top-level-await,
no-explicit-any→MarkdownInstance, prefer-add-event-listener (+ latent
removeEventListener bug), a11y backdrop-dismiss (intent-disabled)
- add DOM.Iterable to tsconfig lib (NodeList spread/.at were untyped)
- disable low-value unicorn/consistent-function-scoping; suppress
astro no-undef + solid react/display-name false positives
- pin @hasparus/eslint-config to exact 2.3.0
Remaining: 7 solid/reactivity + 1 no-console warnings (non-blocking).
* Patch prettier-plugin-astro to not crash on unformattable <style>
- pnpm patch: embedStyle falls back to raw <style> when the CSS parser
throws, instead of aborting the whole file (upstream withastro/
prettier-plugin-astro#459)
- fix malformed empty-selector rule in PostLayout <style>
* Bump @hasparus/eslint-config to 2.3.1; drop consumer suppressions
no-undef(astro) + react/display-name(solid) now live in the presets.
* Bump @hasparus/eslint-config to 3.0.0; drop @typescript-eslint override
3.0.0 dropped @TheGuild, so the @typescript-eslint/utils@8.26 dedup override
is no longer needed. Uses /astro + /solid (unaffected by the /the-guild removal).
* Address review nits: execFileSync, leaner error log, MDXInstance type
- derivedTitleAndDatePlugin: execSync shell string -> execFileSync arg array
- Image.astro: log available image keys, not the whole glob map
- [...path].astro: MDXInstance (not MarkdownInstance) for the .mdx glob1 parent c2ddfbf commit be33bec
41 files changed
Lines changed: 2589 additions & 1451 deletions
File tree
- patches
- src
- build-time
- layouts
- lib
- TableOfContents
- color-scheme
- prose
- seo
- pages
- types
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
This file was deleted.
This file was deleted.
| 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 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
40 | 38 | | |
41 | 39 | | |
42 | 40 | | |
| |||
55 | 53 | | |
56 | 54 | | |
57 | 55 | | |
58 | | - | |
| 56 | + | |
59 | 57 | | |
60 | 58 | | |
61 | 59 | | |
62 | 60 | | |
63 | | - | |
| 61 | + | |
| 62 | + | |
64 | 63 | | |
65 | 64 | | |
66 | 65 | | |
| |||
83 | 82 | | |
84 | 83 | | |
85 | 84 | | |
86 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
87 | 89 | | |
88 | 90 | | |
| 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 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
0 commit comments