mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 17:35:57 +00:00
chore: fix lint issues
This commit is contained in:
parent
a8fc68fec0
commit
776e12f362
@ -2,27 +2,6 @@ import path from 'path'
|
||||
import get from 'lodash/get'
|
||||
import consola from 'consola'
|
||||
|
||||
import type { Component } from 'vue'
|
||||
import type { _RouteRecordBase } from 'vue-router'
|
||||
|
||||
import { r } from './resolve'
|
||||
|
||||
interface CreateRouteOptions {
|
||||
files: string[]
|
||||
srcDir: string
|
||||
pagesDir?: string
|
||||
routeNameSplitter?: string
|
||||
supportedExtensions?: string[]
|
||||
trailingSlash: boolean
|
||||
}
|
||||
|
||||
interface NuxtRouteConfig extends Omit<_RouteRecordBase, 'children'> {
|
||||
component?: Component | string
|
||||
chunkName?: string
|
||||
pathToRegexpOptions?: any
|
||||
children?: NuxtRouteConfig[]
|
||||
}
|
||||
|
||||
// Guard dir1 from dir2 which can be indiscriminately removed
|
||||
export const guardDir = function guardDir (options: Record<string, any>, key1: string, key2: string) {
|
||||
const dir1 = get(options, key1, false) as string
|
||||
|
Loading…
Reference in New Issue
Block a user