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 e488c5f
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/rules/html-comment-content-newline.md
Expand Up @@ -66,7 +66,7 @@ This rule will enforce consistency of line break after the `<!--` and before the
- This rule can also take a 2nd option, an object with the following key: `"exceptions"`.
- The `"exceptions"` value is an array of string patterns which are considered exceptions to the rule.

```
```json
"vue/html-comment-content-newline": ["error", { ... }, { "exceptions": ["*"] }]
```

Expand Down
4 changes: 2 additions & 2 deletions docs/rules/html-comment-content-spacing.md
Expand Up @@ -46,15 +46,15 @@ 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 `-->`.


- This rule can also take a 2nd option, an object with the following key: `"exceptions"`.
- The `"exceptions"` value is an array of string patterns which are considered exceptions to the rule.
Please note that exceptions are ignored if the first argument is `"never"`.

```
```json
"vue/html-comment-content-spacing": ["error", "always", { "exceptions": ["*"] }]
```

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 e488c5f

Please sign in to comment.