refactor: používat conventional commit formát

This commit is contained in:
Matyáš Caras 2022-05-19 17:14:58 +02:00
parent 39caef858a
commit 0d4ba7b1a6
6 changed files with 1273 additions and 0 deletions

1
.gitignore vendored
View File

@ -140,3 +140,4 @@ Temporary Items
*.code-workspace
# End of https://www.toptal.com/developers/gitignore/api/flutter,linux,macos,visualstudiocode
node_modules

4
.husky/commit-msg Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx --no -- commitlint --edit "${1}"

4
.husky/pre-commit Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
flutter analyze

1
commitlint.config.js Normal file
View File

@ -0,0 +1 @@
module.exports = {extends: ['@commitlint/config-conventional']}

10
package.json Normal file
View File

@ -0,0 +1,10 @@
{
"devDependencies": {
"@commitlint/config-conventional": "^17.0.0",
"@commitlint/cli": "^17.0.0",
"husky": "^8.0.0"
},
"scripts": {
"prepare": "husky install"
}
}

1253
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load Diff