PR Title: chore!: modernize toolchain (Vite 7, Vitest 3), migrate ESLint to flat config, add Prettier, and update Sass to module API #80
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
This PR upgrades the dev toolchain and tidies up configuration so the package builds cleanly on modern Node (≥20), reduces maintenance overhead, and silences upcoming deprecations (Sass
@import).Summary
Upgrade build/test stack:
ESLint 9 flat config: replace legacy
.eslintrcwitheslint.config.mjs(andeslint.config.tsexample), update scripts.Prettier: add strict
.prettierrc.json+ broadened.prettierignore; format codebase (HTML/JS/README).Sass modules: move away from deprecated
@importinsrc/styles/index.scssto the module system (@forwardbarrel).Small component cleanups/renames and prop/emit typings; minor README formatting fixes.
CI/workflow and scripts polishing (lint/prettier run against repo root).
Relevant Technical Choices
ESLint 9 flat config:
eslint.config.mjsusesvue-eslint-parser,eslint-plugin-vueflat preset, and@typescript-eslintfor TS/.vue<script>blocks.eslint ./eslint . --fix.Prettier:
.prettierrc.jsonwithsemi: false,singleQuote: true,printWidth: 100,vueIndentScriptAndStyle: true, etc.Vitest coverage:
@vitest/coverage-c8→@vitest/coverage-v8for Vitest 3 compatibility.Sass:
@imports with an@forwardbarrel (src/styles/index.scss) to align with Dart Sass deprecation.Build outputs:
vite-plugin-dtswithrollupTypes: true; TypeScript 5.9 warning about API Extractor noted but non-blocking.User-facing changes
Checklist