Skip to content

Commit b958c9e

Browse files
committed
Fix code style according to eslint configurations
1 parent e077051 commit b958c9e

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

.eslintignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/node_modules/
2+
/karma.conf.js
3+
/webpack.config.js
4+
/dist/
5+
/example/

src/.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,8 @@
99
"extensions": [".js", ".json", ".vue"]
1010
}
1111
}
12+
},
13+
"env": {
14+
"browser": true
1215
}
1316
}

src/components/InfiniteLoading.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,22 +77,22 @@
7777
},
7878
events: {
7979
// Hide the loading icon when data was loaded
80-
'$InfiniteLoading:loaded'() {
80+
'$InfiniteLoading:loaded': function loaded() {
8181
this.isLoading = false;
8282
},
83-
'$InfiniteLoading:noResults'() {
83+
'$InfiniteLoading:noResults': function noResults() {
8484
this.isLoading = false;
8585
this.isNoMore = false;
8686
this.isNoResults = true;
8787
this.scrollParent.removeEventListener('scroll', this.scrollHandler);
8888
},
89-
'$InfiniteLoading:noMore'() {
89+
'$InfiniteLoading:noMore': function noMore() {
9090
this.isLoading = false;
9191
this.isNoResults = false;
9292
this.isNoMore = true;
9393
this.scrollParent.removeEventListener('scroll', this.scrollHandler);
9494
},
95-
'$InfiniteLoading:reset'() {
95+
'$InfiniteLoading:reset': function reset() {
9696
this.isLoading = false;
9797
this.isNoMore = false;
9898
this.isNoResults = false;

test/unit/.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"extends": "airbnb-base",
33
"env": {
4-
"mocha": true
4+
"mocha": true,
5+
"browser": true
56
},
67
"globals": {
78
"expect": true

0 commit comments

Comments
 (0)