Skip to content

Commit 2af4c25

Browse files
committed
Use es6 and eslint vue rules.
1 parent 8c472f0 commit 2af4c25

File tree

4 files changed

+739
-163
lines changed

4 files changed

+739
-163
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
demos/dev/
22
demos/dev*/
3+
demos/**/*.min.js
4+
demos/**/*build.js

.eslintrc.json

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
{
22
"extends": [
33
"standard",
4-
"plugin:es5/no-es2015",
5-
"plugin:es5/no-es2016"
4+
"plugin:vue/recommended"
65
],
76
"env": {
87
"browser": true,
98
"amd": true
109
},
10+
"globals": {
11+
"it": "readonly",
12+
"expect": "readonly",
13+
"describe": "readonly"
14+
},
1115
"parserOptions": {
1216
"ecmaVersion": 5,
1317
"sourceType": "module"
@@ -16,6 +20,18 @@
1620
"indent": ["error", 4],
1721
"arrow-parens": 0,
1822
"generator-star-spacing": 0,
19-
"no-trailing-spaces": [0, { "skipBlankLines": true }]
23+
"no-trailing-spaces": [ 0, { "skipBlankLines": true } ],
24+
"vue/html-indent": ["error", 4, {
25+
"baseIndent": 0,
26+
"alignAttributesVertically": false
27+
}],
28+
"vue/script-indent": ["error", 4],
29+
"vue/max-attributes-per-line": ["error", {
30+
"singleline": 10,
31+
"multiline": {
32+
"max": 10,
33+
"allowFirstLine": true
34+
}
35+
}]
2036
}
2137
}

0 commit comments

Comments
 (0)