Add tslint
This commit is contained in:
		
							
								
								
									
										12
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								package.json
									
									
									
									
									
								
							| @@ -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", | ||||||
|   | |||||||
| @@ -1,6 +1,7 @@ | |||||||
| { | { | ||||||
|     "compilerOptions": { |     "compilerOptions": { | ||||||
|         "allowSyntheticDefaultImports": true, |         "allowSyntheticDefaultImports": true, | ||||||
|  |         "noUnusedLocals": true, | ||||||
|         "declaration": true, |         "declaration": true, | ||||||
|         "target": "ES6", |         "target": "ES6", | ||||||
|         "module": "commonjs", |         "module": "commonjs", | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user