File tree 4 files changed +21
-2
lines changed
4 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 1
1
package-lock.json
2
2
dist /
3
+ .idea
4
+ node_modules
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ . " $( dirname " $0 " ) /_/husky.sh"
3
+
4
+ git update-index --again
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ . " $( dirname " $0 " ) /_/husky.sh"
3
+
4
+ npx lint-staged
Original file line number Diff line number Diff line change 8
8
"lint" : " eslint . --ext .ts" ,
9
9
"test" : " mocha __tests__/**/*.test.ts" ,
10
10
"test:browser" : " karma start" ,
11
- "test:all" : " npm run test; npm run test:browser"
11
+ "test:all" : " npm run test; npm run test:browser" ,
12
+ "prepare" : " husky install"
12
13
},
13
14
"author" : {
14
15
"name" : " Mikhail Shustov" ,
54
55
"karma-chrome-launcher" : " ^3.1.1" ,
55
56
"karma-mocha" : " ^2.0.1" ,
56
57
"karma-webpack" : " ^5.0.0" ,
58
+ "lint-staged" : " ^13.0.3" ,
57
59
"mocha" : " ^10.0.0" ,
58
60
"prettier" : " 2.7.1" ,
59
61
"sinon" : " ^14.0.0" ,
60
62
"ts-loader" : " ^9.3.1" ,
61
63
"ts-node" : " ^10.9.1" ,
62
64
"typescript" : " ^4.7.4" ,
63
65
"webpack" : " ^5.74.0" ,
64
- "webpack-cli" : " ^4.10.0"
66
+ "webpack-cli" : " ^4.10.0" ,
67
+ "husky" : " ^7.0.0"
68
+ },
69
+ "lint-staged" : {
70
+ "*.ts" : [
71
+ " prettier --write" ,
72
+ " eslint --fix"
73
+ ]
65
74
}
66
75
}
You can’t perform that action at this time.
0 commit comments