陳彥廷

@RulerChen

Joined on Jan 25, 2022

  • Introduction 在這篇文章中,我會示範如何建立一個新的 Express.js 專案,並整合 ESM、TypeScript、Jest、Prettier、ESLint 和 Path alias。 你可以手動完成這些步驟,或是使用 gen-express-cli 指令來生成一個新專案。 npx gen-express-cli@latest <project-name> Step 1 - Create a new project 首先,使用以下命令創建一個新專案: mkdir express-project
     Like 1 Bookmark
  • 新版網址 建立 eslint npm init @eslint/config 建立設定檔,按照以下建議回答問題 ? How would you like to use ESLint? ... To check syntax only > To check syntax and find problems
     Like 2 Bookmark
  • 新版網址 use npx create-next-app@latest <project_name> to build a Next.js project. remove package-lock.json and node_modules add package.json and eslintrc.json as follows { "extends": [ "next/core-web-vitals",
     Like  Bookmark