github sveltejs/eslint-plugin-svelte eslint-plugin-svelte@3.24.1

40 minutes ago

Patch Changes

  • #1665 4b06717 Thanks @officialasishkumar! - fix(prefer-derived-over-derived-by): keep type annotations, comments and sequence expressions in the autofix, and skip it when it would change the code

  • #1414 fbae40a Thanks @ai! - fix(require-event-prefix): ignore function props that return a value (e.g. getHref: (item: T) => string). This also changes two cases: () => Promise<void> is now ignored unless checkAsyncFunctions is enabled, and functions that return a Promise of a value (e.g. Promise<string>) are now ignored even when checkAsyncFunctions is enabled.

    Only known no-value returns are checked; any, unknown, never, and unresolved generic returns are ignored. In generic components, only explicit no-value annotations and their Promise wrappers are checked to avoid false positives from parser substitutions.

  • #1666 d5ad32a Thanks @officialasishkumar! - fix: recognize <script module> in no-export-load-in-svelte-module-in-kit-pages and prefer-destructured-store-props

Don't miss a new eslint-plugin-svelte release

NewReleases is sending notifications on new releases.