Skip to content

Commit

Permalink
ci: added husky, prettier and commitlint (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
CptSchnitz authored Dec 25, 2024
1 parent 1e1bcc7 commit 271d0ff
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 1 deletion.
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx --no -- commitlint --edit $1
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pretty-quick --staged
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dist
CHANGELOG.md
package-lock.json
README.md
coverage
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"@map-colonies/prettier-config"
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: {
'scope-enum': [2, 'always', ['deps', 'dev-deps', 'configurations', 'error-handler']],
},
};
16 changes: 15 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,23 @@
"publishConfig": {
"access": "public"
},
"scripts": {
"prepare": "husky",
"format": "prettier --check .",
"format:fix": "prettier --write ."
},
"files": [
"tsconfig-base.json",
"tsconfig-app.json",
"tsconfig-library.json"
]
],
"devDependencies": {
"husky": "9.1.7",
"prettier": "^3.3.3",
"pretty-quick": "^4.0.0",
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@map-colonies/prettier-config": "^0.0.1",
"commitlint": "^19.5.0"
}
}

0 comments on commit 271d0ff

Please sign in to comment.