diff --git a/.eslintrc b/.eslintrc index ee3cf42f..ea86a3ce 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,7 +1,7 @@ { "extends": "standard", "parserOptions": { - "ecmaVersion": 6, + "ecmaVersion": 2021, "sourceType": "module" }, "env": { diff --git a/.gitignore b/.gitignore index d1bde521..8da69328 100755 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ dist/ .idea .vscode .DS_Store +.sass-cache/ diff --git a/src/components/autoplay.js b/src/components/autoplay.js index d4fe8783..4955067d 100644 --- a/src/components/autoplay.js +++ b/src/components/autoplay.js @@ -18,7 +18,7 @@ export default function (Glide, Components, Events) { * @return {Void} */ mount () { - this.enable(); + this.enable() this.start() if (Glide.settings.hoverpause) { @@ -150,7 +150,7 @@ export default function (Glide, Components, Events) { }) Events.on(['pause', 'destroy'], () => { - Autoplay.disable(); + Autoplay.disable() Autoplay.stop() }) @@ -164,7 +164,6 @@ export default function (Glide, Components, Events) { Autoplay.start() }) - /** * Start autoplaying: * - after each run, to restart autoplaying @@ -172,7 +171,7 @@ export default function (Glide, Components, Events) { * - while ending a swipe */ Events.on(['play'], () => { - Autoplay.enable(); + Autoplay.enable() Autoplay.start() }) diff --git a/src/components/run.js b/src/components/run.js index 7615a001..d33e5a98 100644 --- a/src/components/run.js +++ b/src/components/run.js @@ -67,9 +67,9 @@ export default function (Glide, Components, Events) { // While direction is `=` we want jump to // a specified index described in steps. if (direction === '=') { - // Check if bound is true, + // Check if bound is true, // as we want to avoid whitespaces. - if( Glide.settings.bound && toInt(steps) > length ) { + if (Glide.settings.bound && toInt(steps) > length) { Glide.index = length return } diff --git a/tests/functional/carousel.test.js b/tests/functional/carousel.test.js index b7c1f597..27d83ce6 100644 --- a/tests/functional/carousel.test.js +++ b/tests/functional/carousel.test.js @@ -90,7 +90,7 @@ describe('Glide initialized as `carousel`', () => { let glide = new Glide('#glide', { type: 'carousel', perView: 2, - cloningRatio: 2, + cloningRatio: 2 }) glide.on('build.after', () => {