<template>
<view class="content">
<UniBadge :text="9" />
</view>
</template>
<script setup lang="ts">
// 组件引用
import UniBadge from "@ui/uni-badge/uni-badge.vue";
</script>
- eslint-plugin-vue : Vue.js 的官方 ESLint 插件。
- @typescript-eslint/eslint-plugin: 为 TypeScript 代码库提供 eslint 规则。
- eslint-plugin-prettier: 将 Prettier 作为 ESLint 规则运行,并将差异作为 ESLint 问题。
- eslint-plugin-import : 此插件支持 ES2015+ (ES6+) 导入/导出语法的检查(仅引用
eslint-plugin-import/order
模块) - eslint-plugin-you-dont-need-lodash-underscore : 识别代码库中不需要 Lodash/Underscore 的地方。(由于小程序轻量级特性, 禁止使用 Lodash/Underscore 等类库)
- unocss-preset-weapp : 为 UniApp 和 Taro 的微信小程序提供的预设
- @unocss/transformer-directives: @apply、@screen 和 theme()指令的 UnoCSS 转换器, 使用对应的指令, 将支持的样式或主题应用到 css 中
项目中的
tailwind.config.cjs
只是为了利用 tailwind 的 vscode 拓展进行主题提示, 后续 unocss 支持相关 vscode 提示的话再移除此配置
- type-fest ts 类型工具集