diff --git a/.husky/pre-commit b/.husky/pre-commit index d37daa0..c27d889 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - -npx --no-install lint-staged +lint-staged diff --git a/README.md b/README.md index 92a1967..e126af6 100644 --- a/README.md +++ b/README.md @@ -203,7 +203,7 @@ If `key` is not provided, the panel's index will be used instead. By default, Collapse will listen `onKeyDown`(<3.7.0 `onKeyPress`) event with `enter` key to toggle panel's active state when `collapsible` is not `disabled`. If you want to disable this behavior, you can prevent the event from bubbling like this: -```jsx +```tsx | pure const App = () => { const items: CollapseProps['items'] = [ { diff --git a/package.json b/package.json index d6b25d2..ee1d669 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "compile": "father build && lessc assets/index.less assets/index.css", "coverage": "npm test -- --coverage", "lint": "eslint src/ --ext .ts,.tsx,.jsx,.js,.md", - "prepare": "husky install", + "prepare": "husky", "prepublishOnly": "npm run compile && np --yolo --no-publish", "prettier": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"", "start": "dumi dev",