Add tslint

This commit is contained in:
Kim Biesbjerg 2016-12-07 06:03:23 +01:00 committed by Kim Biesbjerg
parent 14972efec2
commit 691d89184e
2 changed files with 9 additions and 4 deletions

View File

@ -14,7 +14,8 @@
"scripts": { "scripts": {
"build": "npm run clean && tsc", "build": "npm run clean && tsc",
"watch": "npm run clean && tsc --watch", "watch": "npm run clean && tsc --watch",
"clean": "rm -rf ./dist" "clean": "rm -rf ./dist",
"lint": "tslint --force './src/**/*.ts'"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -40,11 +41,14 @@
}, },
"config": {}, "config": {},
"devDependencies": { "devDependencies": {
"typescript": "~2.0.10" "@types/cheerio": "^0.17.31",
},
"dependencies": {
"@types/glob": "^5.0.30", "@types/glob": "^5.0.30",
"@types/lodash": "^4.14.41", "@types/lodash": "^4.14.41",
"tslint": "^4.0.2",
"tslint-eslint-rules": "^3.1.0",
"typescript": "^2.0.10"
},
"dependencies": {
"cheerio": "~0.22.0", "cheerio": "~0.22.0",
"cli": "^1.0.1", "cli": "^1.0.1",
"fs": "0.0.1-security", "fs": "0.0.1-security",

View File

@ -1,6 +1,7 @@
{ {
"compilerOptions": { "compilerOptions": {
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,
"noUnusedLocals": true,
"declaration": true, "declaration": true,
"target": "ES6", "target": "ES6",
"module": "commonjs", "module": "commonjs",