Skip to content
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

fix: broken indentation of if condition in svelte/indent rule #802

Merged
merged 2 commits into from
Jun 23, 2024

Conversation

ota-meshi
Copy link
Member

Previously it was indented like this:

  if (
    a === b ||
      c === d ||
      e === f
  ) { }

This PR will fix it so that it is indented like this:

  if (
    a === b ||
    c === d ||
    e === f
  ) { }

Copy link

changeset-bot bot commented Jun 19, 2024

🦋 Changeset detected

Latest commit: f1036ce

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

@ota-meshi ota-meshi added the bug Something isn't working label Jun 20, 2024
@baseballyama baseballyama merged commit be64d36 into main Jun 23, 2024
13 checks passed
@baseballyama baseballyama deleted the indent branch June 23, 2024 17:36
ota-meshi pushed a commit that referenced this pull request Jun 24, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## eslint-plugin-svelte@2.41.0

### Minor Changes

- [#802](#802)
[`be64d36`](be64d36)
Thanks [@ota-meshi](https://github.com/ota-meshi)! - fix: broken
indentation of if condition in `svelte/indent` rule

### Patch Changes

- [#789](#789)
[`0bc17df`](0bc17df)
Thanks [@KuSh](https://github.com/KuSh)! - chore: Use eslint types for
exported configs

- [#805](#805)
[`6e4d3ed`](6e4d3ed)
Thanks [@baseballyama](https://github.com/baseballyama)! - fix: update
`svelte-eslint-parser` to fix nested `{#snippet}`

- [#800](#800)
[`580f44f`](580f44f)
Thanks [@ota-meshi](https://github.com/ota-meshi)! - feat: add name to
flat configs.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants