xpx-check
v1.0.5
Published
Vue代码检查工具
Downloads
19
Readme
Vue前端代码检测工具
主要功能
|功能 | 描述| |:-----: |:-----: | |结构检查| 按照web代码规范(Vue2.6)页面开发函数顺序| |行数检检查| 超过700警告,超过1000标红提示| |文件名称检查| 只能是字母组合| |注释检查| 判断是否有注释|
结构检查
- Ref
- Prop/PropSync
- Provide/ProvideReactive
- Inject/InjectReactive
- get/set
- 变量
- Watch、Emit
- beforeCreate、created 、beforeMount、 mounted、 activated、 deactivated、 beforeUpdate、 updated
- 页面方法
- beforeDestroy、 destroyed、 errorCaptured、 serverPrefetch
错误提示
-- 错误信息自动合并
使用方法
安装
npm install xpx-check -g
执行检测
使用命令窗口,跳转到需要检测的文件夹下,执行下面命令
xpx-check