Skip to content

Commit

Permalink
chore: update config (#763)
Browse files Browse the repository at this point in the history
* chore: update lint-staged config

* chore: use czg instead of cz + cz-git

re #738

* chore: use cat instead of vim editor to write commits

re #738

* chore: use secrets.GITHUB_TOKEN instead of secrets.GH_TOKEN

re #738

* style: add a space at the end of the pre-commit file
  • Loading branch information
vplasencia authored May 1, 2024
1 parent 82bc47f commit f8deb64
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 398 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ jobs:
steps:
- uses: wow-actions/auto-assign@v3
with:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
reviewers: org/core-devs
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
2 changes: 1 addition & 1 deletion .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
. "$(dirname -- "$0")/_/husky.sh"

if [ "$NO_HOOK" != "1" ]; then
exec < /dev/tty && yarn cz --hook || true
exec < /dev/tty && npx czg --hook || true
fi
3 changes: 2 additions & 1 deletion .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"**/*.{js,ts}": ["prettier --write", "eslint --fix"]
"**/*.{js,ts,jsx,tsx,md,json,sol}": "prettier --write",
"**/*.{js,ts,jsx,tsx}": "eslint"
}
10 changes: 2 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"clean:cli-templates": "ts-node scripts/clean-cli-templates.ts",
"remove:stable-version-field": "ts-node scripts/remove-stable-version-field.ts && yarn format:write",
"precommit": "lint-staged",
"postinstall": "husky install"
"postinstall": "husky && git config --local core.editor cat"
},
"keywords": [
"ethereum",
Expand Down Expand Up @@ -58,8 +58,7 @@
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"changelogithub": "0.12.7",
"commitizen": "^4.3.0",
"cz-git": "^1.9.0",
"czg": "^1.9.1",
"dotenv": "^16.0.2",
"eslint": "^8.56.0",
"eslint-config-airbnb": "^19.0.4",
Expand All @@ -83,11 +82,6 @@
"typedoc": "^0.25.8",
"typescript": "^5.3.3"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-git"
}
},
"resolutions": {
"[email protected]": "patch:changelogithub@npm:0.12.7#.yarn/patches/changelogithub-npm-0.12.7-72f348805d.patch"
}
Expand Down
Loading

0 comments on commit f8deb64

Please sign in to comment.