Skip to content

Commit cece113

Browse files
LinusBorgyyx990803
authored andcommitted
Housekeeping eslint (#516)
* dev build threw some errors with eslint for me, so I added what was missing. Please review. * added babel-eslint package to devDependencies * added eslint config to support ES6 * added another .eslintrc file in the test folder to make eslint aware of jasmine globals. * small config correction of eslint
1 parent 7804b6c commit cece113

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.eslintrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
22
"root": true,
3+
"parser": "babel-eslint",
4+
"parserOptions": {
5+
"sourceType": "module"
6+
},
37
"extends": "vue"
48
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"homepage": "https://github.com/vuejs/vuex#readme",
3838
"devDependencies": {
3939
"babel-core": "^6.2.1",
40+
"babel-eslint": "^7.1.1",
4041
"babel-loader": "^6.2.0",
4142
"babel-plugin-transform-runtime": "^6.1.18",
4243
"babel-polyfill": "^6.2.0",

test/unit/.eslintrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"env": {
3+
"jasmine": true
4+
}
5+
}

0 commit comments

Comments
 (0)