File tree 8 files changed +8
-7
lines changed
8 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ Whitespace after the `<!--` and before the `-->` makes it easier to read text in
46
46
```
47
47
48
48
- 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 ` --> ` .
50
50
- ` "never" ` ... there should be no whitespace at after the ` <!-- ` and before the ` --> ` .
51
51
52
52
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ module.exports = {
37
37
38
38
docs : {
39
39
description : 'enforce unified line brake in HTML comments' ,
40
- category : undefined ,
40
+ categories : undefined ,
41
41
url : 'https://eslint.vuejs.org/rules/html-comment-content-newline.html'
42
42
} ,
43
43
fixable : 'whitespace' ,
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ module.exports = {
20
20
21
21
docs : {
22
22
description : 'enforce unified spacing in HTML comments' ,
23
- category : undefined ,
23
+ categories : undefined ,
24
24
url : 'https://eslint.vuejs.org/rules/html-comment-content-spacing.html'
25
25
} ,
26
26
fixable : 'whitespace' ,
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ module.exports = {
70
70
71
71
docs : {
72
72
description : 'enforce consistent indentation in HTML comments' ,
73
- category : undefined ,
73
+ categories : undefined ,
74
74
url : 'https://eslint.vuejs.org/rules/html-comment-indent.html'
75
75
} ,
76
76
fixable : 'whitespace' ,
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const rule = require('../../../lib/rules/html-comment-content-newline')
9
9
const RuleTester = require ( 'eslint' ) . RuleTester
10
10
11
11
const tester = new RuleTester ( {
12
- parser : 'vue-eslint-parser' ,
12
+ parser : require . resolve ( 'vue-eslint-parser' ) ,
13
13
parserOptions : {
14
14
ecmaVersion : 2015
15
15
}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const rule = require('../../../lib/rules/html-comment-content-spacing')
9
9
const RuleTester = require ( 'eslint' ) . RuleTester
10
10
11
11
const tester = new RuleTester ( {
12
- parser : 'vue-eslint-parser' ,
12
+ parser : require . resolve ( 'vue-eslint-parser' ) ,
13
13
parserOptions : {
14
14
ecmaVersion : 2015
15
15
}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const rule = require('../../../lib/rules/html-comment-indent')
9
9
const RuleTester = require ( 'eslint' ) . RuleTester
10
10
11
11
const tester = new RuleTester ( {
12
- parser : 'vue-eslint-parser' ,
12
+ parser : require . resolve ( 'vue-eslint-parser' ) ,
13
13
parserOptions : {
14
14
ecmaVersion : 2015
15
15
}
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ function tokenize (code, option) {
36
36
result . push ( commentTokens )
37
37
} )
38
38
)
39
+ linter . defineParser ( 'vue-eslint-parser' , require ( 'vue-eslint-parser' ) )
39
40
linter . verify (
40
41
code ,
41
42
{
You can’t perform that action at this time.
0 commit comments