mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
chore: remove unused imports and update eslint config (#29876)
This commit is contained in:
parent
13109cf821
commit
05328d68e4
@ -72,8 +72,9 @@ export default createConfigForNuxt({
|
|||||||
'error',
|
'error',
|
||||||
{
|
{
|
||||||
argsIgnorePattern: '^_',
|
argsIgnorePattern: '^_',
|
||||||
|
destructuredArrayIgnorePattern: '^_',
|
||||||
ignoreRestSiblings: true,
|
ignoreRestSiblings: true,
|
||||||
varsIgnorePattern: '^_',
|
varsIgnorePattern: '',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
'@typescript-eslint/triple-slash-reference': 'off',
|
'@typescript-eslint/triple-slash-reference': 'off',
|
||||||
|
@ -6,7 +6,7 @@ import { isIgnored } from '@nuxt/kit'
|
|||||||
import type { Nuxt, NuxtConfig, NuxtConfigLayer } from '@nuxt/schema'
|
import type { Nuxt, NuxtConfig, NuxtConfigLayer } from '@nuxt/schema'
|
||||||
import { hash, murmurHash, objectHash } from 'ohash'
|
import { hash, murmurHash, objectHash } from 'ohash'
|
||||||
import { glob } from 'tinyglobby'
|
import { glob } from 'tinyglobby'
|
||||||
import _consola, { consola } from 'consola'
|
import { consola } from 'consola'
|
||||||
import { dirname, join, relative } from 'pathe'
|
import { dirname, join, relative } from 'pathe'
|
||||||
import { createTar, parseTar } from 'nanotar'
|
import { createTar, parseTar } from 'nanotar'
|
||||||
import type { TarFileInput } from 'nanotar'
|
import type { TarFileInput } from 'nanotar'
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import { findPath, logger } from '@nuxt/kit'
|
import { findPath, logger } from '@nuxt/kit'
|
||||||
import { basename } from 'pathe'
|
import { basename } from 'pathe'
|
||||||
import { generateApp as _generateApp } from './app'
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check for those external configuration files that are not compatible with Nuxt,
|
* Check for those external configuration files that are not compatible with Nuxt,
|
||||||
|
@ -5,7 +5,6 @@ import { createDebugger, createHooks } from 'hookable'
|
|||||||
import ignore from 'ignore'
|
import ignore from 'ignore'
|
||||||
import type { LoadNuxtOptions } from '@nuxt/kit'
|
import type { LoadNuxtOptions } from '@nuxt/kit'
|
||||||
import { addBuildPlugin, addComponent, addPlugin, addRouteMiddleware, addServerPlugin, addVitePlugin, addWebpackPlugin, installModule, loadNuxtConfig, logger, nuxtCtx, resolveAlias, resolveFiles, resolveIgnorePatterns, resolvePath, tryResolveModule, useNitro } from '@nuxt/kit'
|
import { addBuildPlugin, addComponent, addPlugin, addRouteMiddleware, addServerPlugin, addVitePlugin, addWebpackPlugin, installModule, loadNuxtConfig, logger, nuxtCtx, resolveAlias, resolveFiles, resolveIgnorePatterns, resolvePath, tryResolveModule, useNitro } from '@nuxt/kit'
|
||||||
import { resolvePath as _resolvePath } from 'mlly'
|
|
||||||
import type { Nuxt, NuxtHooks, NuxtModule, NuxtOptions } from 'nuxt/schema'
|
import type { Nuxt, NuxtHooks, NuxtModule, NuxtOptions } from 'nuxt/schema'
|
||||||
import type { PackageJson } from 'pkg-types'
|
import type { PackageJson } from 'pkg-types'
|
||||||
import { readPackageJSON } from 'pkg-types'
|
import { readPackageJSON } from 'pkg-types'
|
||||||
|
Loading…
Reference in New Issue
Block a user