Skip to content

fix: lazy-load optional Svelte and Vue ESLint parsers - #19

Merged
MaisonnatM merged 2 commits into
mainfrom
fix/lazy-load-framework-parsers
Jul 15, 2026
Merged

MaisonnatM merged 2 commits into
mainfrom
fix/lazy-load-framework-parsers

Conversation

@MaisonnatM

Copy link
Copy Markdown
Owner

Summary

  • Defer loading of svelte-eslint-parser and vue-eslint-parser until flat/svelte or flat/vue configs are accessed
  • Fixes ESLint crash in React-only projects that import the plugin without optional framework parsers installed
  • Add test asserting flat/recommended does not set a parser

Test plan

  • npm run test:run (95 tests pass)
  • Verified plugin import works in React-only yampa/front project without svelte/vue parsers

Bring runtime and dev tooling to current majors (ESLint 10, Babel 8, semantic-release 25, synckit 0.11) with ESLint 8/9 compatibility preserved in rule context helpers.
Defer require() of svelte-eslint-parser and vue-eslint-parser until flat/svelte
and flat/vue configs are accessed via lazy getters, so flat/recommended works
without those optional dependencies installed.
@cursor

cursor Bot commented Jul 15, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@MaisonnatM
MaisonnatM merged commit 3f92f43 into main Jul 15, 2026
6 checks passed
github-actions Bot pushed a commit that referenced this pull request Jul 15, 2026
## [1.4.1](v1.4.0...v1.4.1) (2026-07-15)

### Bug Fixes

* lazy-load optional Svelte and Vue ESLint parsers ([#19](#19)) ([3f92f43](3f92f43))
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.4.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant