Skip to content

Commit

Permalink
chore: fix lint updates
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed May 27, 2021
1 parent 8160c1c commit d3cdd5e
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/module.ts
Expand Up @@ -2,12 +2,12 @@ import { resolve } from 'upath'

import defu from 'defu'

import type { Module } from '@nuxt/types'
import { setupStaticGeneration } from './generate'
import { createIPXMiddleware } from './ipx'
import { resolveProviders, detectProvider } from './provider'
import { pick, pkg } from './utils'
import type { ModuleOptions, CreateImageOptions } from './types'
import type { Module } from '@nuxt/types'

const imageModule: Module<ModuleOptions> = async function imageModule (moduleOptions) {
const { nuxt, addPlugin, addServerMiddleware } = this
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/components/nuxt-img.vue
Expand Up @@ -7,9 +7,9 @@
</template>

<script lang="ts">
import { imageMixin } from './image.mixin'
import type { DefineComponentWithMixin } from '../../types/vue'
import type { ImageSizes } from '../../types'
import { imageMixin } from './image.mixin'
import { parseSize } from '~image'
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/components/nuxt-picture.vue
Expand Up @@ -16,8 +16,8 @@
</template>

<script lang="ts">
import { imageMixin } from './image.mixin'
import type { DefineComponentWithMixin } from '../../types/vue'
import { imageMixin } from './image.mixin'
import { getFileExtension } from '~image'
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/image.ts
@@ -1,8 +1,8 @@
import defu from 'defu'
import type { ImageOptions, ImageSizesOptions, CreateImageOptions, ResolvedImage, MapToStatic, ImageCTX, $Img } from '../types/image'
import { imageMeta } from './utils/meta'
import { parseSize } from './utils'
import { useStaticImageMap } from './utils/static-map'
import type { ImageOptions, ImageSizesOptions, CreateImageOptions, ResolvedImage, MapToStatic, ImageCTX, $Img } from '../types/image'

export function createImage (globalOptions: CreateImageOptions, nuxtContext: any) {
const staticImageManifest: Record<string, string> = (process.client && process.static) ? useStaticImageMap(nuxtContext) : {}
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/providers/prismic.ts
@@ -1,6 +1,6 @@
import { joinURL, parseQuery, parseURL, stringifyQuery } from 'ufo'
import { operationsGenerator } from './imgix'
import type { ProviderGetImage } from 'src'
import { operationsGenerator } from './imgix'

const PRISMIC_IMGIX_BUCKET = 'https://images.prismic.io'

Expand Down
2 changes: 1 addition & 1 deletion test/unit/image.test.ts
Expand Up @@ -4,8 +4,8 @@

import { Wrapper } from '@vue/test-utils'

import { getSrc, mountWithImg } from './utils/mount'
import type Vue from 'vue'
import { getSrc, mountWithImg } from './utils/mount'

import NuxtImg from '~/runtime/components/nuxt-img.vue'

Expand Down
2 changes: 1 addition & 1 deletion test/unit/picture.test.ts
Expand Up @@ -4,9 +4,9 @@

import { Wrapper } from '@vue/test-utils'

import type Vue from 'vue'
import { getSrc, mountWithImg } from './utils/mount'
import { nextTick } from './utils/tick'
import type Vue from 'vue'

import NuxtPicture from '~/runtime/components/nuxt-picture.vue'

Expand Down

0 comments on commit d3cdd5e

Please sign in to comment.