Skip to content

Commit c41f790

Browse files
committed
Fix lint errors
1 parent f6b63df commit c41f790

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

.eslintrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"extends": "standard",
33
"parserOptions": {
4-
"ecmaVersion": 6,
4+
"ecmaVersion": 2021,
55
"sourceType": "module"
66
},
77
"env": {

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ dist/
55
.idea
66
.vscode
77
.DS_Store
8+
.sass-cache/

src/components/autoplay.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function (Glide, Components, Events) {
1818
* @return {Void}
1919
*/
2020
mount () {
21-
this.enable();
21+
this.enable()
2222
this.start()
2323

2424
if (Glide.settings.hoverpause) {
@@ -150,7 +150,7 @@ export default function (Glide, Components, Events) {
150150
})
151151

152152
Events.on(['pause', 'destroy'], () => {
153-
Autoplay.disable();
153+
Autoplay.disable()
154154
Autoplay.stop()
155155
})
156156

@@ -164,15 +164,14 @@ export default function (Glide, Components, Events) {
164164
Autoplay.start()
165165
})
166166

167-
168167
/**
169168
* Start autoplaying:
170169
* - after each run, to restart autoplaying
171170
* - on playing via API
172171
* - while ending a swipe
173172
*/
174173
Events.on(['play'], () => {
175-
Autoplay.enable();
174+
Autoplay.enable()
176175
Autoplay.start()
177176
})
178177

src/components/run.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ export default function (Glide, Components, Events) {
6767
// While direction is `=` we want jump to
6868
// a specified index described in steps.
6969
if (direction === '=') {
70-
// Check if bound is true,
70+
// Check if bound is true,
7171
// as we want to avoid whitespaces.
72-
if( Glide.settings.bound && toInt(steps) > length ) {
72+
if (Glide.settings.bound && toInt(steps) > length) {
7373
Glide.index = length
7474
return
7575
}

tests/functional/carousel.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ describe('Glide initialized as `carousel`', () => {
9090
let glide = new Glide('#glide', {
9191
type: 'carousel',
9292
perView: 2,
93-
cloningRatio: 2,
93+
cloningRatio: 2
9494
})
9595

9696
glide.on('build.after', () => {

0 commit comments

Comments
 (0)