diff --git a/package.json b/package.json index 1278236..58051f1 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "start": "node ./dist/index.js", "postinstall": "typings install", "build": "tsc", - "test": "npm run build && nsp check" + "test": "npm run build && nsp check", + "lint": "tslint src/**/*.ts" }, "engines": { "node": "6.9.4" @@ -43,6 +44,7 @@ "mocha": "=3.2.0", "nsp": "=2.6.2", "supertest": "=3.0.0", + "tslint": "=4.4.2", "typescript": "=2.1.6", "typings": "=2.1.0" } diff --git a/tslint.json b/tslint.json new file mode 100644 index 0000000..501c52d --- /dev/null +++ b/tslint.json @@ -0,0 +1,7 @@ +{ + "extends": "tslint:recommended", + "rules": { + "quotemark": [true, "single"], + "trailing-comma": [false] + } +}