1 Star 0 Fork 0

张小西 / vite-project-demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Vue 3 + TypeScript + Vite

This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.

Recommended IDE Setup

Type Support For .vue Imports in TS

TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need TypeScript Vue Plugin (Volar) to make the TypeScript language service aware of .vue types.

If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:

  1. Disable the built-in TypeScript Extension
    1. Run Extensions: Show Built-in Extensions from VSCode's command palette
    2. Find TypeScript and JavaScript Language Features, right click and select Disable (Workspace)
  2. Reload the VSCode window by running Developer: Reload Window from the command palette.

插件安装

配置eslint 和 prettier

//eslint 安装 yarn add eslint -D

//eslint vue插件安装 yarn add eslint-plugin-vue -D

//eslint 识别ts语法 yarn add @typescript-eslint/parser -D //eslint ts默认规则补充 yarn add @typescript-eslint/eslint-plugin -D //eslint prettier插件安装 yarn add eslint-plugin-prettier -D //用来解决与eslint的冲突 yarn add eslint-config-prettier -D //安装prettier yarn add prettier -D

规范提交

yarn add husky -D

yarn add lint-staged -D

yarn add @commitlint/cli @commitlint/config-conventional -D

空文件

简介

取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/zhang_xiaoxi/vite-project-demo.git
git@gitee.com:zhang_xiaoxi/vite-project-demo.git
zhang_xiaoxi
vite-project-demo
vite-project-demo
master

搜索帮助