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

code clean

上级 f5307c7f
language: node_js
node_js:
- "9"
- "8"
os:
- linux
......
......@@ -24,7 +24,7 @@
"lint": "npm run check-node-version && npm run lint:ts && npm run lint:es && npm run lint:sh",
"lint:es": "eslint \"{bin,examples,scripts,src,tests}/**/*.js\" --ignore-pattern=\"tests/fixtures/**\"",
"lint:md": "markdownlint README.md",
"lint:ts": "npm run clean && echo tslint v`tslint --version` && tslint --project tsconfig.json \"{bin,examples,scripts,src,tests}/**/*.ts\" --exclude \"tests/fixtures/**\" --exclude \"dist/\" && tsc --noEmit",
"lint:ts": "tslint --project tsconfig.json --exclude \"tests/fixtures/**\" && tsc --noEmit",
"lint:sh": "bash -n bin/*.sh",
"sloc": "sloc bin examples scripts src tests --details --format cli-table --keys total,source,comment && sloc bin examples scripts src tests",
"ts-node": "ts-node",
......@@ -180,7 +180,6 @@
],
"publishConfig": {
"access": "public",
"tagBak": "next",
"tag": "latest"
}
}
......@@ -7,6 +7,8 @@ import { log } from './config'
import { Puppet } from './puppet/'
// use Symbol to prevent conflicting with the child class properties
// This symbol must be exported (for now).
// See: https://github.com/Microsoft/TypeScript/issues/20080
export const PUPPET_ACCESSORY_NAME = Symbol('name')
export abstract class PuppetAccessory extends EventEmitter {
......
......@@ -83,7 +83,8 @@
true,
{
"multiline": "always",
"singleline": "never"
"singleline": "never",
"esSpecCompliant": true
}
],
"triple-equals": [true],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册