Skip to content

Commit 7fb94b9

Browse files
committed
Merge branch 'master' of github.com:vuejs/eslint-plugin-vue
2 parents bfb4015 + e8e67cc commit 7fb94b9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/config/base.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
root: true,
33

4-
parser: 'vue-eslint-parser',
4+
parser: require.resolve('vue-eslint-parser'),
55

66
parserOptions: {
77
ecmaVersion: 6,

lib/rules/html-no-self-closing.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function create (context) {
2929
context.report({
3030
node,
3131
loc: node.loc,
32-
message: 'Self-closing shuld not be used.',
32+
message: 'Self-closing should not be used.',
3333
fix: (fixer) => fixer.removeRange([pos, pos + 1])
3434
})
3535
}

tests/lib/rules/html-no-self-closing.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,19 @@ tester.run('html-no-self-closing', rule, {
4545
filename: 'test.vue',
4646
code: '<template><div><br/></div></template>',
4747
output: '<template><div><br></div></template>',
48-
errors: ['Self-closing shuld not be used.']
48+
errors: ['Self-closing should not be used.']
4949
},
5050
{
5151
filename: 'test.vue',
5252
code: '<template><div><input/></div></template>',
5353
output: '<template><div><input></div></template>',
54-
errors: ['Self-closing shuld not be used.']
54+
errors: ['Self-closing should not be used.']
5555
},
5656
{
5757
filename: 'test.vue',
5858
code: '<template><div><div/></div></template>',
5959
output: '<template><div><div></div></template>',
60-
errors: ['Self-closing shuld not be used.']
60+
errors: ['Self-closing should not be used.']
6161
}
6262
]
6363
})

0 commit comments

Comments
 (0)