chore: fix lint issues

This commit is contained in:
Pooya Parsa 2021-01-20 21:02:43 +01:00
parent a8fc68fec0
commit 776e12f362
1 changed files with 0 additions and 21 deletions

View File

@ -2,27 +2,6 @@ import path from 'path'
import get from 'lodash/get' import get from 'lodash/get'
import consola from 'consola' 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 // Guard dir1 from dir2 which can be indiscriminately removed
export const guardDir = function guardDir (options: Record<string, any>, key1: string, key2: string) { export const guardDir = function guardDir (options: Record<string, any>, key1: string, key2: string) {
const dir1 = get(options, key1, false) as string const dir1 = get(options, key1, false) as string