Skip to content

Commit 983f6ec

Browse files
committedJan 2, 2018
add eslint-plugin-vue
1 parent 52003cd commit 983f6ec

File tree

3 files changed

+2219
-5
lines changed

3 files changed

+2219
-5
lines changed
 

Diff for: ‎package-lock.json

+2,209
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: ‎template/.eslintrc.js

+9-4
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,28 @@
22

33
module.exports = {
44
root: true,
5-
parser: 'babel-eslint',
65
parserOptions: {
6+
parser: 'babel-eslint',
77
sourceType: 'module'
88
},
99
env: {
1010
browser: true,
1111
},
1212
{{#if_eq lintConfig "standard"}}
1313
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
14-
extends: 'standard',
14+
extends: ['plugin:vue/recommended', 'standard'],
1515
{{/if_eq}}
1616
{{#if_eq lintConfig "airbnb"}}
17-
extends: 'airbnb-base',
17+
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
18+
extends: ['plugin:vue/recommended', 'airbnb-base'],
19+
{{/if_eq}}
20+
{{#if_eq lintConfig "none"}}
21+
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
22+
extends: ['plugin:vue/recommended'],
1823
{{/if_eq}}
1924
// required to lint *.vue files
2025
plugins: [
21-
'html'
26+
'vue'
2227
],
2328
{{#if_eq lintConfig "airbnb"}}
2429
// check if imports actually resolve

Diff for: ‎template/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"eslint": "^3.19.0",
3535
"eslint-friendly-formatter": "^3.0.0",
3636
"eslint-loader": "^1.7.1",
37-
"eslint-plugin-html": "^3.0.0",
37+
"eslint-plugin-vue": "^4.0.0",
3838
{{#if_eq lintConfig "standard"}}
3939
"eslint-config-standard": "^10.2.1",
4040
"eslint-plugin-promise": "^3.4.0",

0 commit comments

Comments
 (0)
Please sign in to comment.