Skip to content

Commit d9ef0cc

Browse files
authored
site: husky update useage, demo jsx to tsx (#348)
* fix: husky update useage, demo jsx to tsx * fix: demo
1 parent aa53445 commit d9ef0cc

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

.husky/pre-commit

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
4-
npx --no-install lint-staged
1+
lint-staged

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ If `key` is not provided, the panel's index will be used instead.
203203

204204
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:
205205

206-
```jsx
206+
```tsx | pure
207207
const App = () => {
208208
const items: CollapseProps['items'] = [
209209
{

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"compile": "father build && lessc assets/index.less assets/index.css",
3333
"coverage": "npm test -- --coverage",
3434
"lint": "eslint src/ --ext .ts,.tsx,.jsx,.js,.md",
35-
"prepare": "husky install",
35+
"prepare": "husky",
3636
"prepublishOnly": "npm run compile && np --yolo --no-publish",
3737
"prettier": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"",
3838
"start": "dumi dev",

0 commit comments

Comments
 (0)