Temp Eslint fixes

This commit is contained in:
2020-03-31 10:48:37 +02:00
parent 5ac5d6803f
commit fc74a93508
3 changed files with 7 additions and 8 deletions

View File

@@ -1,17 +1,16 @@
module.exports = { module.exports = {
extends: [ extends: [
'eslint:recommended' // 'eslint:recommended'
], ],
env: { env: {
'browser': true, 'browser': true,
// 'node': true,
'es6': true 'es6': true
}, },
plugins: ['svelte3'],
parserOptions: { parserOptions: {
'ecmaVersion': 2019, 'ecmaVersion': 2019,
'sourceType': 'module' 'sourceType': 'module'
}, },
plugins: [ 'svelte3' ],
overrides: [{ overrides: [{
files: ['**/*.svelte'], files: ['**/*.svelte'],
processor: 'svelte3/svelte3' processor: 'svelte3/svelte3'

View File

@@ -1,6 +1,6 @@
import anime from 'animejs' import anime from 'animejs'
import ScrollOut from 'scroll-out' import ScrollOut from 'scroll-out'
import { animDuration } from 'utils/store' // import { animDuration } from 'utils/store'
/* /*

View File

@@ -1,8 +1,8 @@
import anime from 'animejs' import anime from 'animejs'
import ScrollOut from 'scroll-out' import ScrollOut from 'scroll-out'
import imagesLoaded from 'imagesloaded' import imagesLoaded from 'imagesloaded'
import { animDuration, animDurationLong } from 'utils/store' import { parallaxAnime } from 'utils/functions'
import { throttle, parallaxAnime } from 'utils/functions' // import { animDuration, animDurationLong } from 'utils/store'
/* /*
@@ -46,8 +46,8 @@ export const animateIn = scope => {
// Number parallax on scroll // Number parallax on scroll
const nbParallaxMedia = window.matchMedia('(min-width: 768px)') const nbParallaxMedia = window.matchMedia('(min-width: 768px)')
const nbParallax = nbParallaxMedia => { const nbParallax = matchMedia => {
if (nbParallaxMedia.matches) { if (matchMedia.matches) {
const scroll = ScrollOut({ const scroll = ScrollOut({
targets: scope.querySelector('.photo__number span'), targets: scope.querySelector('.photo__number span'),
onShown (el) { onShown (el) {