diff --git a/docs/rules/attribute-hyphenation.md b/docs/rules/attribute-hyphenation.md index 53feb9c8a..803baab0a 100644 --- a/docs/rules/attribute-hyphenation.md +++ b/docs/rules/attribute-hyphenation.md @@ -15,7 +15,8 @@ description: enforce attribute naming style on custom components in template This rule enforces using hyphenated attribute names on custom components in Vue templates. -``` + +```vue ``` + ## :wrench: Options @@ -46,7 +48,8 @@ Default casing is set to `always` with `['data-', 'aria-', 'slot-scope']` set to It errors on upper case letters. -``` + +```vue ``` + ### `"never"` It errors on hyphens except `data-`, `aria-` and `slot-scope`. -``` + +```vue ``` + ### `"never", { "ignore": ["custom-prop"] }` Don't use hyphenated name but allow custom attributes -``` + +```vue ``` + ## :mag: Implementation diff --git a/docs/rules/attributes-order.md b/docs/rules/attributes-order.md index d703d7f58..cbd38eee0 100644 --- a/docs/rules/attributes-order.md +++ b/docs/rules/attributes-order.md @@ -40,7 +40,8 @@ This rule aims to enforce ordering of component attributes. The default order is ### the default order -``` + +```vue ``` + ## :wrench: Options @@ -113,7 +115,8 @@ This rule aims to enforce ordering of component attributes. The default order is #### `['LIST_RENDERING', 'CONDITIONALS', 'RENDER_MODIFIERS', 'GLOBAL', 'UNIQUE', 'TWO_WAY_BINDING', 'DEFINITION', 'OTHER_DIRECTIVES', 'OTHER_ATTR', 'EVENTS', 'CONTENT']` -``` + +```vue ``` + #### `[['LIST_RENDERING', 'CONDITIONALS', 'RENDER_MODIFIERS'], ['DEFINITION', 'GLOBAL', 'UNIQUE'], 'TWO_WAY_BINDING', 'OTHER_DIRECTIVES', 'OTHER_ATTR', 'EVENTS', 'CONTENT']` -``` + +```vue ``` + ## :books: Further reading diff --git a/docs/rules/comment-directive.md b/docs/rules/comment-directive.md index 7be264cec..9db00825f 100644 --- a/docs/rules/comment-directive.md +++ b/docs/rules/comment-directive.md @@ -30,6 +30,7 @@ ESLint doesn't provide any API to enhance `eslint-disable` functionality and ESL This rule sends all `eslint-disable`-like comments as errors to the post-process of the `.vue` file processor, then the post-process removes all `vue/comment-directive` errors and the reported errors in disabled areas. + ```vue ``` + ## :books: Further reading diff --git a/docs/rules/component-name-in-template-casing.md b/docs/rules/component-name-in-template-casing.md index c7ea7ea84..c2bd52900 100644 --- a/docs/rules/component-name-in-template-casing.md +++ b/docs/rules/component-name-in-template-casing.md @@ -33,7 +33,8 @@ This rule aims to warn the tag names other than the configured casing in Vue.js ### `"PascalCase"` -``` + +```vue ``` + ### `"kebab-case"` -``` + +```vue ``` + ### `"PascalCase", { ignores: ["custom-element"] }` -``` + +```vue ``` + ## :books: Further reading diff --git a/docs/rules/html-closing-bracket-newline.md b/docs/rules/html-closing-bracket-newline.md index 056905fea..d91987052 100644 --- a/docs/rules/html-closing-bracket-newline.md +++ b/docs/rules/html-closing-bracket-newline.md @@ -31,7 +31,8 @@ This rule enforces a line break (or no line break) before tag's closing brackets This rule aims to warn the right angle brackets which are at the location other than the configured location. -``` + +```vue ``` + ## :wrench: Options @@ -73,7 +75,8 @@ Plus, you can use [`vue/html-indent`](./html-indent.md) rule to enforce indent-l ### `"multiline": "never"` -``` + +```vue ``` + ## :mag: Implementation diff --git a/docs/rules/html-closing-bracket-spacing.md b/docs/rules/html-closing-bracket-spacing.md index 20292810c..e77b9d7ec 100644 --- a/docs/rules/html-closing-bracket-spacing.md +++ b/docs/rules/html-closing-bracket-spacing.md @@ -15,7 +15,8 @@ description: require or disallow a space before tag's closing brackets This rule aims to enforce consistent spacing style before closing brackets `>` of tags. -``` + +```vue ``` + ## :wrench: Options @@ -63,7 +65,8 @@ This rule aims to enforce consistent spacing style before closing brackets `>` o ### `"startTag": "always", "endTag": "always", "selfClosingTag": "always"` -``` + +```vue ``` + ## :couple: Related rules diff --git a/docs/rules/html-end-tags.md b/docs/rules/html-end-tags.md index fe8b704bb..9cf5c1105 100644 --- a/docs/rules/html-end-tags.md +++ b/docs/rules/html-end-tags.md @@ -15,7 +15,8 @@ description: enforce end tag style This rule aims to disallow lacking end tags. -``` + +```vue ``` + ## :wrench: Options diff --git a/docs/rules/html-indent.md b/docs/rules/html-indent.md index fb5aab263..4c366451c 100644 --- a/docs/rules/html-indent.md +++ b/docs/rules/html-indent.md @@ -18,7 +18,8 @@ This rule enforces a consistent indentation style in `