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

Add autofixer to block-indentation rule #2281

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -88,7 +88,7 @@ Each rule has emojis denoting:
| Name | ✅ | 💅 | ⌨️ | 🔧 |
| :-------------------------------------------------------------------------------------------------------- | :-- | :-- | :-- | --- |
| [attribute-indentation](./docs/rule/attribute-indentation.md) | | | | |
| [block-indentation](./docs/rule/block-indentation.md) | | 💅 | | |
| [block-indentation](./docs/rule/block-indentation.md) | | 💅 | | 🔧 |
| [builtin-component-arguments](./docs/rule/builtin-component-arguments.md) | ✅ | | | |
| [deprecated-each-syntax](./docs/rule/deprecated-each-syntax.md) | | | | |
| [deprecated-inline-view-helper](./docs/rule/deprecated-inline-view-helper.md) | ✅ | | | |
Expand Down
2 changes: 2 additions & 0 deletions docs/rule/block-indentation.md
Expand Up @@ -2,6 +2,8 @@

💅 The `extends: 'stylistic'` property in a configuration file enables this rule.

🔧 The `--fix` option on the command line can automatically fix some of the problems reported by this rule.

Good indentation is crucial for long-term maintenance of templates. For example, having blocks misaligned is a common cause of logic errors.

## Examples
Expand Down