File tree Expand file tree Collapse file tree 9 files changed +10
-9
lines changed Expand file tree Collapse file tree 9 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ This rule will enforce consistency of line break after the `<!--` and before the
66
66
- This rule can also take a 2nd option, an object with the following key: ` "exceptions" ` .
67
67
- The ` "exceptions" ` value is an array of string patterns which are considered exceptions to the rule.
68
68
69
- ```
69
+ ``` json
70
70
"vue/html-comment-content-newline" : [" error" , { ... }, { "exceptions" : [" *" ] }]
71
71
```
72
72
Original file line number Diff line number Diff line change @@ -46,15 +46,15 @@ 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
53
53
- This rule can also take a 2nd option, an object with the following key: ` "exceptions" ` .
54
54
- The ` "exceptions" ` value is an array of string patterns which are considered exceptions to the rule.
55
55
Please note that exceptions are ignored if the first argument is ` "never" ` .
56
56
57
- ```
57
+ ``` json
58
58
"vue/html-comment-content-spacing" : [" error" , " always" , { "exceptions" : [" *" ] }]
59
59
```
60
60
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