提交 ae3ef942 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

fix(tslint): new parameter format: can not include = (fix #762)

上级 19887f43
......@@ -26,7 +26,7 @@
"check-node-version": "check-node-version --node \">= 6.9\"",
"lint": "npm run clean && npm run check-node-version && npm run lint:es && npm run lint:ts",
"lint:es": "eslint \"{bin,example,src,test}/**/*.js\" --ignore-pattern=\"test/fixture/**\"",
"lint:ts": "tslint --version && tslint --project tsconfig.json --type-check \"{bin,example,src,test}/**/*.ts\" --exclude=\"test/fixture/**\" --exclude=\"dist/\" && npm run clean && tsc --noEmit",
"lint:ts": "tslint --version && tslint --project tsconfig.json --type-check \"{bin,example,src,test}/**/*.ts\" --exclude \"test/fixture/**\" --exclude \"dist/\" && npm run clean && tsc --noEmit",
"lint:sh": "bash -n bin/*.sh",
"nycava": "WECHATY_HEAD=chrome nyc ava --serial --fail-fast --verbose --timeout=5m \"dist/{src,test}/**/*.spec.js\"",
"pretest": "npm run clean && npm run lint && npm run dist",
......@@ -155,7 +155,7 @@
"sinon-test": "^2.1.0",
"sloc": "0.2.0",
"ts-node": "3.3.0",
"tslint": "5.3.2",
"tslint": "5.7.0",
"tslint-jsdoc-rules": "0.1.2",
"tuling123-client": "0.0.1",
"typescript": "2.4.2",
......
......@@ -289,15 +289,15 @@ export class BrowserDriver {
// throw new Error('invalid driver founded')
// }
/* tslint:disable:jsdoc-format */
/**
* FIXME: ISSUE #21 - https://github.com/chatie/wechaty/issues/21
*
* http://phantomjs.org/api/webpage/handler/on-resource-requested.html
* http://stackoverflow.com/a/29544970/1123955
* https://github.com/geeeeeeeeek/electronic-wechat/pull/319
*
*/
/**
* tslint:disable:jsdoc-format
*
* FIXME: ISSUE #21 - https://github.com/chatie/wechaty/issues/21
* http://phantomjs.org/api/webpage/handler/on-resource-requested.html
* http://stackoverflow.com/a/29544970/1123955
* https://github.com/geeeeeeeeek/electronic-wechat/pull/319
*/
// driver.executePhantomJS(`
// this.onResourceRequested = function(request, net) {
// console.log('REQUEST ' + request.url);
......
......@@ -61,13 +61,13 @@ export class Server extends EventEmitter {
/**
* Https Server
*/
public async createHttpsServer(express: express.Application): Promise<https.Server> {
public async createHttpsServer(expressApp: express.Application): Promise<https.Server> {
this.httpsServer = <https.Server>await new Promise((resolve, reject) => {
const srv = https.createServer({
key: require('./ssl-pem').key,
cert: require('./ssl-pem').cert,
}, express) // XXX: is express must exist here? try to get rid it later. 2016/6/11
}, expressApp) // XXX: is express must exist here? try to get rid it later. 2016/6/11
srv.listen(this.port, err => {
if (err) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册