uba 代码检查插件
uba lint -t react src
-t 可指定三个参数 js/react/vue
后面跟的是检查目录,可写多个目录
uba lint -t react src demo
"scripts": {
"dev": "uba server",
"build": "uba build",
"lint": "uba lint -t react src"
},
然后在控制台执行
npm run lint
如果想挖掘更多的uba
插件,请点击Npmjs for uba-*