Skip to content

Commit

Permalink
Merge branch 'master' of github.com:vuejs/eslint-plugin-vue
Browse files Browse the repository at this point in the history
  • Loading branch information
michalsnik committed Jun 18, 2017
2 parents bfb4015 + e8e67cc commit 7fb94b9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/config/base.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
root: true,

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

parserOptions: {
ecmaVersion: 6,
Expand Down
2 changes: 1 addition & 1 deletion lib/rules/html-no-self-closing.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function create (context) {
context.report({
node,
loc: node.loc,
message: 'Self-closing shuld not be used.',
message: 'Self-closing should not be used.',
fix: (fixer) => fixer.removeRange([pos, pos + 1])
})
}
Expand Down
6 changes: 3 additions & 3 deletions tests/lib/rules/html-no-self-closing.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,19 @@ tester.run('html-no-self-closing', rule, {
filename: 'test.vue',
code: '<template><div><br/></div></template>',
output: '<template><div><br></div></template>',
errors: ['Self-closing shuld not be used.']
errors: ['Self-closing should not be used.']
},
{
filename: 'test.vue',
code: '<template><div><input/></div></template>',
output: '<template><div><input></div></template>',
errors: ['Self-closing shuld not be used.']
errors: ['Self-closing should not be used.']
},
{
filename: 'test.vue',
code: '<template><div><div/></div></template>',
output: '<template><div><div></div></template>',
errors: ['Self-closing shuld not be used.']
errors: ['Self-closing should not be used.']
}
]
})

0 comments on commit 7fb94b9

Please sign in to comment.