improvements - TSlint
MODIFY
package.json
package.json
"example": "ts-node example/index.ts",
"example:watch": "nodemon --watch src --watch example --ext ts --ignore '*.spec.ts' --exec npm run example",
"watch": "tsc -w",
- "lint": "tslint --config tslint.json --project tsconfig.json --type-check",
+ "lint": "tslint --config tslint.json --project tsconfig.json",
"test": "NODE_ENV=test jest --expand",
"test:all": "NODE_ENV=test jest --expand",
"test:watch": "NODE_ENV=test jest --expand --onlyChanged --watch",

MODIFY
tsconfig.json
tsconfig.json
"module": "commonjs",
"moduleResolution": "node",
"noImplicitAny": false,
- "noUnusedLocals": true,
- "noUnusedParameters": true,
"noEmitOnError": true,
"outDir": "./dist",
"pretty": true,

MODIFY
tslint.json
tslint.json
"no-trailing-whitespace": true,
"no-bitwise": true,
"no-unused-expression": true,
+ "no-unused-variable": true,
"no-var-keyword": true,
"one-line": [
true,

improvements - TSlint