nvsky

Results comments of nvsky

需要在路由里注册数据模型,即namespace

![image](https://user-images.githubusercontent.com/8436965/40824112-7d29896c-65a5-11e8-984e-52b54e30dde2.png) ![image](https://user-images.githubusercontent.com/8436965/40824167-ba9a2fea-65a5-11e8-85b1-997d36c59e96.png) 我是这么实现的,你参考下

@zmayor 按我方案实现可以closed此问题了

{ "name": "ss-rdap", "version": "2.0.0-beta.1", "description": "An out-of-box UI solution for enterprise applications", "private": true, "scripts": { "precommit": "npm run lint-staged", "start": "cross-env ESLINT=none roadhog dev", "start:no-proxy": "cross-env NO_PROXY=true ESLINT=none...

@chenshuai2144 代码有错误格式的没报出来,全No staged files match,难道husky、lint-staged与我后装的eslint-plugin-prettier插件有冲突导致commit hook失效了?

![image](https://user-images.githubusercontent.com/8436965/40819407-7fbfb02e-658d-11e8-9d94-8798d37b9ab9.png) 这是eslint-plugin-prettier插件配置

@yoyo837 现在问题是不知道为什么所有匹配都是 Running tasks for **/*.{js,jsx,less} [skipped] → No staged files match **/*.{js,jsx,less} 明显文件没匹配到…… ![image](https://user-images.githubusercontent.com/8436965/40819588-76bc3046-658e-11e8-8df1-8b240e932194.png) 这里是有错误的没匹配到

直接克隆的husky确实生效,我这里用[eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier)稍加改造了 ![image](https://user-images.githubusercontent.com/8436965/40819822-b70e761c-658f-11e8-9822-53a4d4e1f40f.png)结果precommit失效了 ![image](https://user-images.githubusercontent.com/8436965/40819859-e4005bb8-658f-11e8-9499-16b8ed2eaf3e.png) 不管有多少错误都这个熊样

我也出现这问题,怎么解决了? ![image](https://user-images.githubusercontent.com/8436965/81558392-2b703800-93c0-11ea-9585-4ff9f82803f6.png)

@tarojs/webpack-runner": "2.1.1"临时从2.2.3降到2.1.1解决了