diff --git a/.eslintrc.js b/.eslintrc.js index 9cd6290..88c58b6 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,17 +1,16 @@ module.exports = { extends: [ - 'eslint:recommended' + // 'eslint:recommended' ], env: { 'browser': true, - // 'node': true, 'es6': true }, + plugins: ['svelte3'], parserOptions: { 'ecmaVersion': 2019, 'sourceType': 'module' }, - plugins: [ 'svelte3' ], overrides: [{ files: ['**/*.svelte'], processor: 'svelte3/svelte3' diff --git a/src/animations/Carousel.js b/src/animations/Carousel.js index 0fe7761..b177c8e 100644 --- a/src/animations/Carousel.js +++ b/src/animations/Carousel.js @@ -1,6 +1,6 @@ import anime from 'animejs' import ScrollOut from 'scroll-out' -import { animDuration } from 'utils/store' +// import { animDuration } from 'utils/store' /* diff --git a/src/animations/Photo.js b/src/animations/Photo.js index 749c3b0..2b10ccd 100644 --- a/src/animations/Photo.js +++ b/src/animations/Photo.js @@ -1,8 +1,8 @@ import anime from 'animejs' import ScrollOut from 'scroll-out' import imagesLoaded from 'imagesloaded' -import { animDuration, animDurationLong } from 'utils/store' -import { throttle, parallaxAnime } from 'utils/functions' +import { parallaxAnime } from 'utils/functions' +// import { animDuration, animDurationLong } from 'utils/store' /* @@ -46,8 +46,8 @@ export const animateIn = scope => { // Number parallax on scroll const nbParallaxMedia = window.matchMedia('(min-width: 768px)') - const nbParallax = nbParallaxMedia => { - if (nbParallaxMedia.matches) { + const nbParallax = matchMedia => { + if (matchMedia.matches) { const scroll = ScrollOut({ targets: scope.querySelector('.photo__number span'), onShown (el) {