File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change
1
+ npm run lint-staged
Original file line number Diff line number Diff line change 24
24
"storybook" : " storybook dev -p 6006" ,
25
25
"build-storybook" : " storybook build" ,
26
26
"test" : " jest --watch" ,
27
- "test-all" : " jest --watchAll"
27
+ "test-all" : " jest --watchAll" ,
28
+ "lint-staged" : " lint-staged" ,
29
+ "prepare" : " husky"
28
30
},
29
31
"devDependencies" : {
30
32
"@babel/core" : " ^7.22.10" ,
68
70
"fs-extra" : " ^11.1.1" ,
69
71
"glob" : " ^11.0.0" ,
70
72
"globals" : " ^16.0.0" ,
73
+ "husky" : " ^9.1.7" ,
71
74
"jest" : " ^29.7.0" ,
72
75
"jest-environment-jsdom" : " ^29.7.0" ,
76
+ "lint-staged" : " ^15.5.1" ,
73
77
"prettier" : " ^3.5.3" ,
74
78
"react" : " ^18.3.1" ,
75
79
"react-dom" : " ^18.3.1" ,
95
99
"react-toastify" : " ^11.0.3" ,
96
100
"react-tooltip" : " ^5.21.1"
97
101
},
102
+ "lint-staged" : {
103
+ "*.{js,jsx,ts,tsx}" : [
104
+ " prettier --write" ,
105
+ " eslint --fix"
106
+ ]
107
+ },
98
108
"repository" : {
99
109
"type" : " git" ,
100
110
"url" : " git+https://github.com/openinfradev/tksui-components.git"
You can’t perform that action at this time.
0 commit comments