diff --git a/package.json b/package.json index f5a04a0..173fc2e 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,8 @@ "scripts": { "build": "npm run clean && tsc", "watch": "npm run clean && tsc --watch", - "clean": "rm -rf ./dist" + "clean": "rm -rf ./dist", + "lint": "tslint --force './src/**/*.ts'" }, "repository": { "type": "git", @@ -40,11 +41,14 @@ }, "config": {}, "devDependencies": { - "typescript": "~2.0.10" - }, - "dependencies": { + "@types/cheerio": "^0.17.31", "@types/glob": "^5.0.30", "@types/lodash": "^4.14.41", + "tslint": "^4.0.2", + "tslint-eslint-rules": "^3.1.0", + "typescript": "^2.0.10" + }, + "dependencies": { "cheerio": "~0.22.0", "cli": "^1.0.1", "fs": "0.0.1-security", diff --git a/tsconfig.json b/tsconfig.json index a5205ca..7876b35 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,7 @@ { "compilerOptions": { "allowSyntheticDefaultImports": true, + "noUnusedLocals": true, "declaration": true, "target": "ES6", "module": "commonjs",