8000 Update formating from html to vue · vuejs/eslint-plugin-vue@a4971b1 · GitHub
[go: up one dir, main page]

Skip to content

Commit a4971b1

Browse files
committed
Update formating from html to vue
1 parent 1e07433 commit a4971b1

19 files changed

+24
-24
lines changed

docs/rules/comment-directive.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ESLint doesn't provide any API to enhance `eslint-disable` functionality and ESL
2222

2323
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.
2424

25-
<eslint-code-block :rules="{'vue/comment-directive': ['error']}">
25+
<eslint-code-block :rules="{'vue/comment-directive': ['error'], 'vue/max-attributes-per-line': ['error']}">
2626
```vue
2727
<template>
2828
<!-- eslint-disable-next-line vue/max-attributes-per-line -->

docs/rules/singleline-html-element-content-newline.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This rule enforces a line break before and after the contents of a singleline el
88

99

1010
<eslint-code-block :rules="{'vue/singleline-html-element-content-newline': ['error']}">
11-
```html
11+
```vue
1212
<template>
1313
<!-- ✓ GOOD -->
1414
<div attr>
@@ -58,7 +58,7 @@ This rule enforces a line break before and after the contents of a singleline el
5858
### `"ignoreWhenNoAttributes": true`
5959

6060
<eslint-code-block :rules="{'vue/singleline-html-element-content-newline': ['error', {'ignoreWhenNoAttributes': true}]}">
61-
```html
61+
```vue
6262
<template>
6363
<!-- ✗ BAD -->
6464
<div attr>content</div>
@@ -73,7 +73,7 @@ This rule enforces a line break before and after the contents of a singleline el
7373
### `"ignoreWhenNoAttributes": false`
7474

7575
<eslint-code-block :rules="{'vue/singleline-html-element-content-newline': ['error', {'ignoreWhenNoAttributes': false}]}">
76-
```html
76+
```vue
7777
<template>
7878
<!-- ✗ BAD -->
7979
<div>content</div>

docs/rules/use-v-on-exact.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
This rule enforce usage of `exact` modifier on `v-on` when there is another `v-on` with modifier.
66

77
<eslint-code-block :rules="{'vue/use-v-on-exact': ['error']}">
8-
```html
8+
```vue
99
<template>
1010
<!-- ✓ GOOD -->
1111
<button @click="foo" :click="foo"></button>

docs/rules/v-bind-style.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
This rule enforces `v-bind` directive style which you should use shorthand or long form.
99

1010
<eslint-code-block :rules="{'vue/v-bind-style': ['error']}">
11-
```html
11+
```vue
1212
<template>
1313
<!-- ✓ GOOD -->
1414
<div :foo="bar"/>
@@ -34,7 +34,7 @@ Default is set to `shorthand`.
3434
### `"longform"`
3535

3636
<eslint-code-block :rules="{'vue/v-bind-style': ['error', 'longform']}">
37-
```html
37+
```vue
3838
<template>
3939
<!-- ✓ GOOD -->
4040
<div v-bind:foo="bar"/>

docs/rules/v-on-style.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
This rule enforces `v-on` directive style which you should use shorthand or long form.
1010

1111
<eslint-code-block :rules="{'vue/v-on-style': ['error']}">
12-
```html
12+
```vue
1313
<template>
1414
<!-- ✓ GOOD -->
1515
<div @click="foo"/>
@@ -35,7 +35,7 @@ Default is set to `shorthand`.
3535
### `"longform"`
3636

3737
<eslint-code-block :rules="{'vue/v-on-style': ['error', 'longform']}">
38-
```html
38+
```vue
3939
<template>
4040
<!-- ✓ GOOD -->
4141
<div v-on:click="foo"/>

docs/rules/valid-v-bind.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This rule does not report `v-bind` directives which do not have their argument (
1616
This rule does not check syntax errors in directives because it's checked by [no-parsing-error] rule.
1717

1818
<eslint-code-block :rules="{'vue/valid-v-bind': ['error']}">
19-
```html
19+
```vue
2020
<template>
2121
<!-- ✓ GOOD -->
2222
<div v-bind="foo"/>

docs/rules/valid-v-cloak.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This rule reports `v-cloak` directives in the following cases:
1313
- The directive has that attribute value. E.g. `<div v-cloak="ccc"></div>`
1414

1515
<eslint-code-block :rules="{'vue/valid-v-cloak': ['error']}">
16-
```html
16+
```vue
1717
<template>
1818
<!-- ✓ GOOD -->
1919
<div v-cloak/>

docs/rules/valid-v-else-if.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This rule reports `v-else-if` directives in the following cases:
1717
This rule does not check syntax errors in directives because it's checked by [no-parsing-error] rule.
1818

1919
<eslint-code-block :rules="{'vue/valid-v-else-if': ['error']}">
20-
```html
20+
```vue
2121
<template>
2222
<!-- ✓ GOOD -->
2323
<div v-if="foo"/>

docs/rules/valid-v-else.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This rule reports `v-else` directives in the following cases:
1515
- The directive is on the elements which have `v-if`/`v-if-else` directives. E.g. `<div v-if="foo" v-else></div>`
1616

1717
<eslint-code-block :rules="{'vue/valid-v-else': ['error']}">
18-
```html
18+
```vue
1919
<template>
2020
<!-- ✓ GOOD -->
2121
<div v-if="foo"/>

docs/rules/valid-v-for.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The following cases are syntax errors:
2323
- The alias is not LHS. E.g. `<div v-for="foo() in list"></div>`
2424

2525
<eslint-code-block :rules="{'vue/valid-v-for': ['error']}">
26-
```html
26+
```vue
2727
<template>
2828
<!-- ✓ GOOD -->
2929
<div v-for="todo in todos"/>

docs/rules/valid-v-html.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This rule reports `v-html` directives in the following cases:
1515
This rule does not check syntax errors in directives because it's checked by [no-parsing-error] rule.
1616

1717
<eslint-code-block :rules="{'vue/valid-v-html': ['error']}">
18-
```html
18+
```vue
1919
<template>
2020
<!-- ✓ GOOD -->
2121
<div v-html="foo"/>

docs/rules/valid-v-if.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This rule reports `v-if` directives in the following cases:
1616
This rule does not check syntax errors in directives because it's checked by [no-parsing-error] rule.
1717

1818
<eslint-code-block :rules="{'vue/valid-v-if': ['error']}">
19-
```html
19+
```vue
2020
<template>
2121
<!-- ✓ GOOD -->
2222
<div v-if="foo"/>

docs/rules/valid-v-model.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This rule reports `v-model` directives in the following cases:
1919
This rule does not check syntax errors in directives because it's checked by [no-parsing-error] rule.
2020

2121
<eslint-code-block :rules="{'vue/valid-v-model': ['error']}">
22-
```html
22+
```vue
2323
<template>
2424
<!-- ✓ GOOD -->
2525
<input v-model="foo">

docs/rules/valid-v-on.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This rule reports `v-on` directives in the following cases:
1515
This rule does not check syntax errors in directives because it's checked by [no-parsing-error] rule.
1616

1717
<eslint-code-block :rules="{'vue/valid-v-on': ['error']}">
18-
```html
18+
```vue
1919
<templ 17AE ate>
2020
<!-- ✓ GOOD -->
2121
<div v-on="foo"/>
@@ -51,7 +51,7 @@ This rule has an object option:
5151
### `"modifiers": ["foo"]`
5252

5353
<eslint-code-block :rules="{'vue/valid-v-on': ['error', { modifiers: ['foo']}]}">
54-
```html
54+
```vue
5555
<template>
5656
<div @click.foo="foo"/>
5757
<div v-on:click.foo="foo"/>

docs/rules/valid-v-once.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This rule reports `v-once` directives in the following cases:
1313
- The directive has that attribute value. E.g. `<div v-once="ccc"></div>`
1414

1515
<eslint-code-block :rules="{'vue/valid-v-once': ['error']}">
16-
```html
16+
```vue
1717
<template>
1818
<!-- ✓ GOOD -->
1919
<div v-once/>

docs/rules/valid-v-pre.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This rule reports `v-pre` directives in the following cases:
1313
- The directive has that attribute value. E.g. `<div v-pre="ccc"></div>`
1414

1515
<eslint-code-block :rules="{'vue/valid-v-pre': ['error']}">
16-
```html
16+
```vue
1717
<template>
1818
<!-- ✓ GOOD -->
1919
<div v-pre/>

docs/rules/valid-v-show.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This rule does not check syntax errors in directives because it's checked by [no
1616

1717

1818
<eslint-code-block :rules="{'vue/valid-v-show': ['error']}">
19-
```html
19+
```vue
2020
<template>
2121
<!-- ✓ GOOD -->
2222
<div v-show="foo"/>

docs/rules/valid-v-text.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This rule reports `v-text` directives in the following cases:
1515
This rule does not check syntax errors in directives because it's checked by [no-parsing-error] rule.
1616

1717
<eslint-code-block :rules="{'vue/valid-v-text': ['error']}">
18-
```html
18+
```vue
1919
<template>
2020
<!-- ✓ GOOD -->
2121
<div v-text="foo"/>

docs/user-guide/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ You can use `<!-- eslint-disable -->`-like HTML comments in `<template>` of `.vu
117117

118118
For example:
119119

120-
```html
120+
```vue
121121
<template>
122122
<!-- eslint-disable-next-line vue/max-attributes-per-line -->
123123
<div a="1" b="2" c="3" d="4">

0 commit comments

Comments
 (0)
0