Skip to content

Commit

Permalink
Merge pull request #100 from nestjsx/fix/linting
Browse files Browse the repository at this point in the history
Fix/linting
  • Loading branch information
michaelyali committed Jun 14, 2019
2 parents 35acb44 + b430f8e commit 792fde0
Show file tree
Hide file tree
Showing 4 changed files with 433 additions and 24 deletions.
8 changes: 8 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,12 @@ module.exports = {
'!**/__fixture__/**',
'!integration/*',
],
coverageThreshold: {
global: {
branches: 98,
functions: 98,
lines: 98,
statements: 98,
},
},
};
31 changes: 29 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,26 @@
"db:sync:typeorm": "cd ./integration/crud-typeorm && npx ts-node -r tsconfig-paths/register ../../node_modules/.bin/typeorm schema:sync -f=orm",
"db:drop:typeorm": "cd ./integration/crud-typeorm && npx ts-node -r tsconfig-paths/register ../../node_modules/.bin/typeorm schema:drop -f=orm",
"db:seeds:typeorm": "cd ./integration/crud-typeorm && npx ts-node -r tsconfig-paths/register ../../node_modules/.bin/typeorm migration:run -f=orm",
"db:prepare:typeorm": "npm run db:drop:typeorm && npm run db:sync:typeorm && npm run db:seeds:typeorm"
"db:prepare:typeorm": "npm run db:drop:typeorm && npm run db:sync:typeorm && npm run db:seeds:typeorm",
"format": "npx pretty-quick",
"lint": "npx tslint 'packages/**/*.ts'",
"commit": "npx git-cz"
},
"config": {
"commitizen": {
"path": "node_modules/cz-conventional-changelog"
},
"validate-commit-msg": {
"types": "conventional-commit-types",
"helpMessage": "Use \"yarn commit\" instead, we use conventional-changelog format :) (https://github.com/commitizen/cz-cli)"
}
},
"husky": {
"hooks": {
"pre-commit": "yarn format --staged",
"pre-push": "yarn test",
"commit-msg": "npx validate-commit-msg"
}
},
"peerDependencies": {},
"optionalDependencies": {},
Expand All @@ -35,14 +54,19 @@
"@types/supertest": "^2.0.7",
"class-transformer": "^0.2.3",
"class-validator": "^0.9.1",
"commitizen": "^3.1.1",
"coveralls": "^3.0.4",
"cz-conventional-changelog": "^2.1.0",
"husky": "^2.4.1",
"jest": "^24.8.0",
"lerna": "^3.14.1",
"nodemon": "^1.19.1",
"npm-check": "^5.9.0",
"nps": "^5.9.5",
"nps-utils": "^1.7.0",
"pg": "^7.11.0",
"prettier": "^1.18.2",
"pretty-quick": "^1.11.0",
"redis": "^2.8.0",
"reflect-metadata": "^0.1.13",
"rimraf": "^2.6.3",
Expand All @@ -52,8 +76,11 @@
"ts-jest": "^24.0.2",
"ts-node": "^8.2.0",
"tsconfig-paths": "^3.8.0",
"tslint": "^5.17.0",
"tslint-config-prettier": "^1.18.0",
"typeorm": "^0.2.17",
"typescript": "3.3.3"
"typescript": "3.3.3",
"validate-commit-msg": "^2.14.0"
},
"devDependencies": {},
"author": {
Expand Down
7 changes: 7 additions & 0 deletions tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"defaultSeverity": "error",
"extends": ["tslint:latest", "tslint-config-prettier"],
"jsRules": {},
"rules": {},
"rulesDirectory": []
}
Loading

0 comments on commit 792fde0

Please sign in to comment.