Skip to content

Commit

Permalink
Add autofixer to block-indentation rule (#2281)
Browse files Browse the repository at this point in the history
Co-authored-by: Vincent Molinié <vincent.molinie@epita.fr>
  • Loading branch information
VincentMolinie and Vincent Molinié committed Jan 4, 2022
1 parent 3b90b4a commit b39d9d1
Show file tree
Hide file tree
Showing 5 changed files with 445 additions and 124 deletions.
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

0 comments on commit b39d9d1

Please sign in to comment.