30
30
"storybook:vue" : " yarn workspace storybook-vue start --no-open" ,
31
31
"build:css" : " yarn workspace @cypress-design/css build" ,
32
32
"build:icons" : " yarn workspace @cypress-design/icon-registry build && yarn workspace @cypress-design/react-icon build:codegen && yarn workspace @cypress-design/vue-icon build:codegen" ,
33
- "postinstall" : " yarn build:css && yarn build:icons" ,
33
+ "postinstall" : " yarn husky install && yarn build:css && yarn build:icons" ,
34
34
"new:component" : " hygen component new"
35
35
},
36
36
"dependencies" : {
41
41
"@rollup/plugin-node-resolve" : " ^13.2.1" ,
42
42
"@rollup/plugin-sucrase" : " ^4.0.3" ,
43
43
"@rollup/plugin-typescript" : " ^8.3.2" ,
44
+ "@typescript-eslint/eslint-plugin" : " ^5.27.0" ,
45
+ "@typescript-eslint/parser" : " ^5.27.0" ,
44
46
"@vitejs/plugin-vue" : " ^2.3.1" ,
45
47
"@vitejs/plugin-vue-jsx" : " ^1.3.9" ,
46
48
"@vue/tsconfig" : " ^0.1.3" ,
47
49
"axe-core" : " ^4.4.2" ,
48
50
"concurrently" : " ^7.1.0" ,
49
51
"cypress" : " ^10.0.1" ,
50
52
"cypress-axe" : " ^0.14.0" ,
53
+ "eslint" : " ^8.17.0" ,
54
+ "eslint-plugin-no-only-tests" : " ^2.6.0" ,
51
55
"execa" : " ^6.1.0" ,
56
+ "husky" : " ^8.0.1" ,
52
57
"hygen" : " ^6.2.0" ,
58
+ "lint-staged" : " >=10" ,
53
59
"prettier" : " ^2.6.2" ,
54
60
"rollup" : " ^2.70.2" ,
55
61
"typescript" : " ~4.6.3" ,
56
62
"vite" : " ^2.9.1" ,
63
+ "vue-eslint-parser" : " ^9.0.2" ,
57
64
"vue-tsc" : " ^0.33.9"
65
+ },
66
+ "lint-staged" : {
67
+ "*.{js,ts,jsx,tsx,vue}" : " eslint --cache --fix" ,
68
+ "*.{js,css,md}" : " prettier --write"
69
+ },
70
+ "gitHooks" : {
71
+ "pre-commit" : " lint-staged"
58
72
}
59
73
}
0 commit comments