Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/linting #100

Merged
merged 3 commits into from Jun 14, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions jest.config.js
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
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
@@ -0,0 +1,7 @@
{
"defaultSeverity": "error",
"extends": ["tslint:latest", "tslint-config-prettier"],
"jsRules": {},
"rules": {},
"rulesDirectory": []
}