Skip to content

Commit

Permalink
chore: add husky related deps & scripts, pass jest with no tests, add…
Browse files Browse the repository at this point in the history
… commitlint config

Signed-off-by: Sai Sankeerth <sanpj2292@github.com>
  • Loading branch information
Sai Sankeerth committed Jan 25, 2024
1 parent 671fee4 commit 07c544c
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 3 deletions.
6 changes: 6 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': () => [2, 'always', ['fix', 'feat', 'chore', 'refactor', 'docs', 'test']],
},
};
50 changes: 49 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
"release": "npx standard-version",
"release:github": "DEBUG=conventional-github-releaser npx conventional-github-releaser -p angular --config github-release.config.js",
"commit-msg": "commitlint --edit",
"test": "jest",
"pre-commit": "npx lint-staged && npm run test"
"test": "jest --passWithNoTests",
"pre-commit": "npx lint-staged && npm run test",
"prepare": "husky install"
},
"lint-staged": {
"*.{js,ts}": "eslint --cache --fix",
Expand All @@ -30,10 +31,12 @@
"standard-version": "^9.5.0"
},
"devDependencies": {
"@commitlint/config-conventional": "^18.5.0",
"eslint": "^8.49.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-prettier": "^5.1.3",
"husky": "^8.0.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"nodemon": "^2.0.15",
Expand Down

0 comments on commit 07c544c

Please sign in to comment.