Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Commit

Permalink
build: added pre-commit and commitlint configs
Browse files Browse the repository at this point in the history
  • Loading branch information
niloofar-deriv committed Oct 13, 2023
1 parent 82cda93 commit a06f7d2
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 5 deletions.
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = {extends: ['@commitlint/config-conventional']}
22 changes: 19 additions & 3 deletions package-lock.json

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

11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@
"prettier": "prettier --write \"./src/**/*.{js,jsx,ts,tsx}\"",
"preview": "vite preview",
"test": "vitest",
"test:coverage": "vitest run --coverage"
"test:coverage": "vitest run --coverage",
"precommit": "npm run lint && npm run test && npm run prettier"
},
"dependencies": {
"clsx": "^2.0.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tailwind-merge": "^1.14.0",
Expand All @@ -32,6 +33,7 @@
"@vitest/coverage-v8": "^0.34.6",
"autoprefixer": "^10.4.16",
"eslint-plugin-react-refresh": "^0.4.3",
"husky": "^8.0.3",
"jsdom": "^22.1.0",
"postcss": "^8.4.31",
"prettier": "3.0.3",
Expand All @@ -40,5 +42,10 @@
"typescript": "^5.0.2",
"vite": "^4.4.5",
"vitest": "^0.34.5"
},
"husky": {
"hooks": {
"pre-commit": "npm run precommit"
}
}
}

0 comments on commit a06f7d2

Please sign in to comment.