Minor Changes
- #1553
8cca2e0Thanks @marekdedic! - feat(no-navigation-without-resolve): track resolve() through array elements, object properties and {#each} iteration variables
Patch Changes
-
#1380
9944910Thanks @baseballyama! - fix(no-navigation-without-resolve): check completereltokens before exempting external links -
#1566
e49015dThanks @arpitjain099! - fix(no-unused-props): fix false positives and negatives around spreads, aliases, dotted keys, and props that share a type -
#1516
7538afaThanks @kevin-easygo! - fix(no-reactive-functions): useisSpaceBetweeninstead ofisSpaceBetweenTokens, which was removed in ESLint v10 -
#1618
7999ad4Thanks @baseballyama! - fix(valid-compile): read the parser fromcontext.languageOptions.parserOptions, sincecontext.parserOptionswas removed in ESLint v10 -
#1606
78def78Thanks @ozenyunus35! - Allow a comment before a closing token insvelte/indentto be aligned with the previous line instead of requiring the indentation of the closing token. -
#1581
3b308f3Thanks @badreddinesaadioui! - fix(prefer-svelte-reactivity): stop reporting in legacy (non-runes) components, where thesvelte/reactivityclasses are not tracked -
#1627
36abd30Thanks @baseballyama! - Fix false positives insvelte/no-unused-props:- The props object is destructured (e.g.
const { a } = props). A destructured key now counts as used when its binding is used, and an unused one is reported. Nested destructuring (e.g.const { name } = user) can now report unused nested properties, the same asuser.name. - The props object is used as a whole (e.g.
$inspect(props)orfn(props)). Every property now counts as used. A type query liketypeof props.ais not counted as a use. - A dynamic key like
user[key]now counts as using every property ofuser. - Numeric and template literal keys like
props[0].aandprops[`a`], and wrapped values likeprops!.a,(props as Props).aand(props satisfies Props).aare now tracked. - Instances of generic classes are now skipped like other class instances.
- With
allowUnusedNestedProperties, nested properties are never reported. - Class members that cannot be read from outside (
#foo,private,protected) are no longer reported, e.g. in intersections.
- The props object is destructured (e.g.
-
#1629
5e0c7bfThanks @baseballyama! - Stopsvelte/no-unused-svelte-ignorefrom reportingsvelte-ignorecomments for runtime warnings (e.g.ownership_invalid_binding), which the compiler can't report. -
#1626
9aa3a7aThanks @baseballyama! - Requirepostcss@^8.5.10to avoid GHSA-qx2v-qp2m-jg93. -
#1613
80e66ecThanks @smile-alive! - fix(sort-attributes): do not report or move shorthand attributes and directives across spread attributes -
#1635
cf11995Thanks @baseballyama! - fix(require-store-reactive-access): with type information, don't report callable stores used as functions, actions, transitions, or event handlers, and stores from function calls such asgetContext()checked with??/??=with a store fallback. Don't auto-fix stores that are not declared at the top level, are used in the module script, or are on the left side of||=/&&=/??=. -
#1616
a972353Thanks @eknathdj! - Honorsvelte-ignorecomments on nested script nodes insvelte/no-unused-svelte-ignoreandsvelte/valid-compile(Svelte 5), and no longer treat a comment at the end of the previous line as an ignore comment for the next node. -
#1648
ae85b36Thanks @baseballyama! - chore: updatesvelte-eslint-parserto 1.10.1 -
#1625
9b859e3Thanks @baseballyama! - PasscompilerOptions.runesfrom the Svelte config to the compiler insvelte/valid-compileandsvelte/no-unused-svelte-ignore, so runes-mode warnings are reported for files that rely onrunes: true. The function form (runes: ({ filename }) => ...) is also supported.