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

update husky #49

Merged
merged 2 commits into from
Jan 13, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn precommit
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm test
yarn precommit
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A system for animal shelters, providing an easy and free way for shelter owners
Перед тем, как закоммитить изменения, необходимо установить зависимости:

```
yarn install
npx husky-init && yarn install
```

### Возможные проблемы
Expand Down
59 changes: 30 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
{
"name": "shelterpaws",
"version": "1.0.0",
"repository": "[email protected]:qase-tms/shelterpaws.git",
"license": "MIT",
"scripts": {
"stylelint": "stylelint --ignore-path .gitignore \"**/*.scss\"",
"stylelint:fix": "stylelint --ignore-path .gitignore \"**/*.scss\" --fix",
"precommit": "lint-staged",
"prepare": "husky install"
},
"lint-staged": {
"*.scss": [
"yarn stylelint"
]
},
"devDependencies": {
"husky": "^8.0.3",
"lint-staged": "^15.2.0",
"stylelint": "^16.1.0",
"stylelint-config-prettier": "^9.0.5",
"stylelint-config-prettier-scss": "^1.0.0",
"stylelint-config-recommended": "^14.0.0",
"stylelint-config-standard-scss": "^13.0.0",
"stylelint-declaration-strict-value": "^1.10.4",
"stylelint-prettier": "^5.0.0",
"stylelint-scss": "^6.0.0"
}
}
{
"name": "shelterpaws",
"version": "1.0.0",
"repository": "[email protected]:qase-tms/shelterpaws.git",
"license": "MIT",
"scripts": {
"test": "echo \"[Husky] running\"",
"stylelint": "stylelint --ignore-path .gitignore \"**/*.scss\"",
"stylelint:fix": "stylelint --ignore-path .gitignore \"**/*.scss\" --fix",
"precommit": "lint-staged",
"prepare": "npx husky add .husky/pre-commit \"yarn precommit\" && husky install"
},
"lint-staged": {
"*.scss": [
"yarn stylelint"
]
},
"devDependencies": {
"husky": "^8.0.0",
"lint-staged": "^15.2.0",
"stylelint": "^16.1.0",
"stylelint-config-prettier": "^9.0.5",
"stylelint-config-prettier-scss": "^1.0.0",
"stylelint-config-recommended": "^14.0.0",
"stylelint-config-standard-scss": "^13.0.0",
"stylelint-declaration-strict-value": "^1.10.4",
"stylelint-prettier": "^5.0.0",
"stylelint-scss": "^6.0.0"
}
}
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ human-signals@^5.0.0:
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-5.0.0.tgz#42665a284f9ae0dade3ba41ebc37eb4b852f3a28"
integrity sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==

husky@^8.0.3:
husky@^8.0.0:
version "8.0.3"
resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.3.tgz#4936d7212e46d1dea28fef29bb3a108872cd9184"
integrity sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==
Expand Down