Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed May 16, 2020
1 parent 79eb091 commit 61786f5
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/rules/html-comment-content-spacing.md
Expand Up @@ -46,7 +46,7 @@ Whitespace after the `<!--` and before the `-->` makes it easier to read text in
```

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


Expand Down
2 changes: 1 addition & 1 deletion lib/rules/html-comment-content-newline.js
Expand Up @@ -37,7 +37,7 @@ module.exports = {

docs: {
description: 'enforce unified line brake in HTML comments',
category: undefined,
categories: undefined,
url: 'https://eslint.vuejs.org/rules/html-comment-content-newline.html'
},
fixable: 'whitespace',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/html-comment-content-spacing.js
Expand Up @@ -20,7 +20,7 @@ module.exports = {

docs: {
description: 'enforce unified spacing in HTML comments',
category: undefined,
categories: undefined,
url: 'https://eslint.vuejs.org/rules/html-comment-content-spacing.html'
},
fixable: 'whitespace',
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/html-comment-indent.js
Expand Up @@ -70,7 +70,7 @@ module.exports = {

docs: {
description: 'enforce consistent indentation in HTML comments',
category: undefined,
categories: undefined,
url: 'https://eslint.vuejs.org/rules/html-comment-indent.html'
},
fixable: 'whitespace',
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/rules/html-comment-content-newline.js
Expand Up @@ -9,7 +9,7 @@ const rule = require('../../../lib/rules/html-comment-content-newline')
const RuleTester = require('eslint').RuleTester

const tester = new RuleTester({
parser: 'vue-eslint-parser',
parser: require.resolve('vue-eslint-parser'),
parserOptions: {
ecmaVersion: 2015
}
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/rules/html-comment-content-spacing.js
Expand Up @@ -9,7 +9,7 @@ const rule = require('../../../lib/rules/html-comment-content-spacing')
const RuleTester = require('eslint').RuleTester

const tester = new RuleTester({
parser: 'vue-eslint-parser',
parser: require.resolve('vue-eslint-parser'),
parserOptions: {
ecmaVersion: 2015
}
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/rules/html-comment-indent.js
Expand Up @@ -9,7 +9,7 @@ const rule = require('../../../lib/rules/html-comment-indent')
const RuleTester = require('eslint').RuleTester

const tester = new RuleTester({
parser: 'vue-eslint-parser',
parser: require.resolve('vue-eslint-parser'),
parserOptions: {
ecmaVersion: 2015
}
Expand Down
1 change: 1 addition & 0 deletions tests/lib/utils/html-comments.js
Expand Up @@ -36,6 +36,7 @@ function tokenize (code, option) {
result.push(commentTokens)
})
)
linter.defineParser('vue-eslint-parser', require('vue-eslint-parser'))
linter.verify(
code,
{
Expand Down

0 comments on commit 61786f5

Please sign in to comment.