Skip to content

feat: add fixer to require-store-callbacks-use-set-param #1165

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 29, 2025

Conversation

43081j
Copy link
Contributor

@43081j 43081j commented Mar 28, 2025

Adds a fixer which adds or changes the param to set.

For example:

// before
readable(val, () => ...);
readable(val, function () { ... });

// after
readable(val, (set) => ...);
readable(val, function (set) { ... });

Copy link

changeset-bot bot commented Mar 28, 2025

🦋 Changeset detected

Latest commit: f651936

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
eslint-plugin-svelte Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Mar 29, 2025

Try the Instant Preview in Online Playground

ESLint Online Playground

Install the Instant Preview to Your Local

npm i https://pkg.pr.new/eslint-plugin-svelte@1165

Published Instant Preview Packages:

View Commit

43081j added 3 commits March 29, 2025 16:57
Adds a fixer which adds or changes the param to `set`.

For example:

```ts
// before
readable(val, () => ...);
readable(val, function () { ... });

// after
readable(val, (set) => ...);
readable(val, function (set) { ... });
```
@baseballyama baseballyama merged commit 2b7e164 into sveltejs:main Mar 29, 2025
17 checks passed
@43081j 43081j deleted the fixer-useset branch March 29, 2025 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants