From fc74a935088dc55f9babc3975674f1888e225ddc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fe=CC=81lix=20Pe=CC=81ault?= Date: Tue, 31 Mar 2020 10:48:37 +0200 Subject: [PATCH] Temp Eslint fixes --- .eslintrc.js | 5 ++--- src/animations/Carousel.js | 2 +- src/animations/Photo.js | 8 ++++---- 3 files changed, 7 insertions(+), 8 deletions(-) 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) {