sveltejs / eslint-plugin-svelte

ESLint plugin for Svelte using AST
https://sveltejs.github.io/eslint-plugin-svelte/
MIT License
276 stars 29 forks source link

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

Closed ota-meshi closed 1 week ago

ota-meshi commented 1 week ago

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
  ) { }
changeset-bot[bot] commented 1 week ago

🦋 Changeset detected

Latest commit: f1036ce5db1ac3b7d655d4a8ec56f2ad1b9d3bda

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