diff --git a/docs/rules/README.md b/docs/rules/README.md index 2e79091a4..4380327c3 100644 --- a/docs/rules/README.md +++ b/docs/rules/README.md @@ -141,6 +141,7 @@ For example: |:--------|:------------|:---| | [vue/array-bracket-spacing](./array-bracket-spacing.md) | enforce consistent spacing inside array brackets | :wrench: | | [vue/arrow-spacing](./arrow-spacing.md) | enforce consistent spacing before and after the arrow in arrow functions | :wrench: | +| [vue/block-spacing](./block-spacing.md) | disallow or enforce spaces inside of blocks after opening block and before closing block | :wrench: | | [vue/component-name-in-template-casing](./component-name-in-template-casing.md) | enforce specific casing for the component naming style in template | :wrench: | | [vue/eqeqeq](./eqeqeq.md) | require the use of `===` and `!==` | :wrench: | | [vue/key-spacing](./key-spacing.md) | enforce consistent spacing between keys and values in object literal properties | :wrench: | diff --git a/docs/rules/block-spacing.md b/docs/rules/block-spacing.md new file mode 100644 index 000000000..2c468cf31 --- /dev/null +++ b/docs/rules/block-spacing.md @@ -0,0 +1,23 @@ +--- +pageClass: rule-details +sidebarDepth: 0 +title: vue/block-spacing +description: disallow or enforce spaces inside of blocks after opening block and before closing block +--- +# vue/block-spacing +> disallow or enforce spaces inside of blocks after opening block and before closing block + +- :wrench: The `--fix` option on the [command line](https://eslint.org/docs/user-guide/command-line-interface#fixing-problems) can automatically fix some of the problems reported by this rule. + +This rule is the same rule as core [block-spacing] rule but it applies to the expressions in `