Skip to content

Commit

Permalink
🔧 chore: Fix husky
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Nov 22, 2024
1 parent d2ed2e0 commit ea6ffd6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
1 change: 0 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install lint-staged
2 changes: 1 addition & 1 deletion docs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Center } from 'react-layout-kit';

export default () => {
return (
<Center gap={16} style={{ marginTop: '-6em', maxWidth: 960 }}>
<Center gap={16} style={{ maxWidth: 960 }} width={'100%'}>
<ReadmeHero />
<Link to={'/components/readme-hero'}>
<Button size={'large'}>Find more MAGIC 🔮</Button>
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@
"lint:md": "remark . --quiet --frail --output",
"lint:style": "stylelint \"{src,tests}/**/*.{js,jsx,ts,tsx}\" --fix",
"lint:ts": "eslint \"{src,tests}/**/*.{js,jsx,ts,tsx}\" --fix",
"prepare": "husky install",
"prepare": "husky && npm run setup",
"prettier": "prettier -c --write \"**/**\"",
"pull": "git pull",
"release": "semantic-release",
"setup": "dumi setup",
"start": "next start",
"stylelint": "stylelint \"src/**/*.{js,jsx,ts,tsx}\" --fix",
"test": "vitest --passWithNoTests",
Expand Down Expand Up @@ -90,11 +91,11 @@
"commitlint": "^18.6.1",
"concurrently": "^8.2.2",
"cross-env": "^7.0.3",
"dumi": "2.2.17",
"dumi": "^2.2.17",
"dumi-theme-lobehub": "^1.8.1",
"eslint": "^8.57.1",
"father": "4.3.1",
"husky": "^8.0.3",
"father": "^4.3.1",
"husky": "^9.1.7",
"jsdom": "^23.2.0",
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
Expand Down

0 comments on commit ea6ffd6

Please sign in to comment.