added tslint support

This commit is contained in:
Dolan
2017-03-07 22:56:59 +00:00
parent 0e9301c0b5
commit f5de5fef4d
2 changed files with 38 additions and 1 deletions

View File

@ -6,7 +6,8 @@
"scripts": {
"pretest": "rimraf ./build-tests && tsc -p ts/test-tsconfig.json",
"test": "mocha ./build-tests --recursive",
"prepublish": "tsc -p ts"
"prepublish": "tsc -p ts",
"lint": "tslint --project ./ts"
},
"repository": {
"type": "git",
@ -43,6 +44,7 @@
"chai": "^3.5.0",
"mocha": "^3.2.0",
"rimraf": "^2.5.2",
"tslint": "^4.5.1",
"typescript": "^2.2.1"
}
}

35
ts/tslint.json Normal file
View File

@ -0,0 +1,35 @@
{
"extends": "tslint:latest",
"rules": {
"curly": true,
"one-variable-per-declaration": [
true
],
"no-any": true,
"no-consecutive-blank-lines": [
true
],
"no-require-imports": true,
"member-access": [
true
],
"indent": [
true,
"spaces"
],
"object-literal-sort-keys": false,
"object-literal-shorthand": false,
"typedef": [
true,
"call-signature",
"parameter",
"property-declaration"
],
"max-line-length": [
false
],
"max-classes-per-file": [
false
]
}
}