Skip to content

Commit 61786f5

Browse files
committed
update
1 parent 79eb091 commit 61786f5

8 files changed

+8
-7
lines changed

docs/rules/html-comment-content-spacing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Whitespace after the `<!--` and before the `-->` makes it easier to read text in
4646
```
4747

4848
- The first is a string which be either `"always"` or `"never"`. The default is `"always"`.
49-
- `"always"` ... there must be at least one whitespace at after the `<!--` and before the `-->`.
49+
- `"always"` (default) ... there must be at least one whitespace at after the `<!--` and before the `-->`.
5050
- `"never"` ... there should be no whitespace at after the `<!--` and before the `-->`.
5151

5252

lib/rules/html-comment-content-newline.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = {
3737

3838
docs: {
3939
description: 'enforce unified line brake in HTML comments',
40-
category: undefined,
40+
categories: undefined,
4141
url: 'https://eslint.vuejs.org/rules/html-comment-content-newline.html'
4242
},
4343
fixable: 'whitespace',

lib/rules/html-comment-content-spacing.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = {
2020

2121
docs: {
2222
description: 'enforce unified spacing in HTML comments',
23-
category: undefined,
23+
categories: undefined,
2424
url: 'https://eslint.vuejs.org/rules/html-comment-content-spacing.html'
2525
},
2626
fixable: 'whitespace',

lib/rules/html-comment-indent.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ module.exports = {
7070

7171
docs: {
7272
description: 'enforce consistent indentation in HTML comments',
73-
category: undefined,
73+
categories: undefined,
7474
url: 'https://eslint.vuejs.org/rules/html-comment-indent.html'
7575
},
7676
fixable: 'whitespace',

tests/lib/rules/html-comment-content-newline.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const rule = require('../../../lib/rules/html-comment-content-newline')
99
const RuleTester = require('eslint').RuleTester
1010

1111
const tester = new RuleTester({
12-
parser: 'vue-eslint-parser',
12+
parser: require.resolve('vue-eslint-parser'),
1313
parserOptions: {
1414
ecmaVersion: 2015
1515
}

tests/lib/rules/html-comment-content-spacing.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const rule = require('../../../lib/rules/html-comment-content-spacing')
99
const RuleTester = require('eslint').RuleTester
1010

1111
const tester = new RuleTester({
12-
parser: 'vue-eslint-parser',
12+
parser: require.resolve('vue-eslint-parser'),
1313
parserOptions: {
1414
ecmaVersion: 2015
1515
}

tests/lib/rules/html-comment-indent.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const rule = require('../../../lib/rules/html-comment-indent')
99
const RuleTester = require('eslint').RuleTester
1010

1111
const tester = new RuleTester({
12-
parser: 'vue-eslint-parser',
12+
parser: require.resolve('vue-eslint-parser'),
1313
parserOptions: {
1414
ecmaVersion: 2015
1515
}

tests/lib/utils/html-comments.js

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ function tokenize (code, option) {
3636
result.push(commentTokens)
3737
})
3838
)
39+
linter.defineParser('vue-eslint-parser', require('vue-eslint-parser'))
3940
linter.verify(
4041
code,
4142
{

0 commit comments

Comments
 (0)