chore: fix lint & type

This commit is contained in:
YunYouJun
2022-08-08 01:56:04 +08:00
parent eb06ad91a7
commit b8a4ee2c0b
2 changed files with 6 additions and 3 deletions

View File

@@ -1,12 +1,12 @@
// convert csv to json
import fs from 'fs'
import path from 'path'
import url from 'url'
import consola from 'consola'
import url from "url";
import type { Recipe, RecipeItem } from '~/types'
import { generateEmojisFromStuff } from '~/utils'
const __dirname = url.fileURLToPath(new URL('.', import.meta.url));
const __dirname = url.fileURLToPath(new URL('.', import.meta.url))
const recipeCsvFile = path.resolve(__dirname, '../src/data/recipe.csv')
const recipeJsonFile = path.resolve(__dirname, '../src/data/recipe.json')