uniapp+vite+vue3+ts配置eslint代码检查及prettier规范检查

可以参考 https://waite.wang/posts/web/vue-project-construction-specification/ 参考: https://blog.csdn.net/u011296285/article/details/136597099 配置eslint代码检查 npm i eslint -D 初始化 npx eslint --init 选择配置(根据自己需求选择) ? How would you like to use ESLint? To check syntax and find problems ? What type of modules does your project use? JavaScript modules (import/export) ? Which framework does your project use? Vue.js ? Does your project use TypeScript? Yes ? Where does your code run? None ? How would you like to define a style for your project? Use a popular style guide ? Which style guide do you want to follow? Airbnb ? What format do you want your config file to be in? JavaScript 修改.eslintrc.js ...

2024-05-02 · 5 min · 2152 words · Waite Wang

UniApp 入门

https://uniapp.dcloud.net.cn/ uni 和 原生小程序开发区别 每个页面是一个 .vue 文件,数据绑定及事件处理同 Vue.js 规范: 属性绑定 src="{{ url }}" 升级成 :src=“url” 事件绑定 bindtap=“eventName” 升级成 @tap=“eventName”,支持()传参 支持 Vue 常用指令 v-for、 v-if、v-show、v-model 等 温馨提示:调用接口能力,建议前缀 wx 替换为 uni ,养成好习惯,这样支持多端开发。 ...

2024-03-02 · 5 min · 2078 words · Waite Wang