File tree 3 files changed +17
-2
lines changed
3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change
1
+ _
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ . " $( dirname " $0 " ) /_/husky.sh"
3
+
4
+ npx lint-staged --allow-empty
Original file line number Diff line number Diff line change 8
8
"@codecademy/eslint-config" : " ^3.1.0" ,
9
9
"@codecademy/prettier-config" : " ^0.1.10" ,
10
10
"@codecademy/tsconfig" : " ^0.2.0" ,
11
- "@types/jest" : " ^26.0.24" ,
12
11
"@types/glob" : " ^7.1.4" ,
12
+ "@types/jest" : " ^26.0.24" ,
13
13
"@types/node" : " ^16.4.3" ,
14
14
"eslint" : " ^7.25.0" ,
15
+ "husky" : " ^7.0.4" ,
15
16
"jest" : " ^27.0.6" ,
17
+ "lint-staged" : " ^12.1.2" ,
16
18
"markdownlint-cli" : " ~0.28.1" ,
17
19
"prettier" : " ^2.2.1" ,
18
20
"ts-jest" : " ^27.0.4" ,
19
21
"typescript" : " ^4.2.4"
20
22
},
23
+ "lint-staged" : {
24
+ "*.md" : [
25
+ " npm run format" ,
26
+ " markdownlint"
27
+ ]
28
+ },
21
29
"scripts" : {
22
30
"compile" : " tsc --noEmit" ,
23
31
"format" : " prettier --ignore-path .prettierignore --write" ,
32
+ "format:md" : " prettier --ignore-path .prettierignore --write \" ./**/*.(md)\" " ,
24
33
"format:all" : " prettier --ignore-path .prettierignore --write \" ./**/*.(ts|md)\" " ,
25
34
"format:verify" : " prettier \" ./**/*.(ts|md)\" --list-different" ,
26
35
"lint:js" : " eslint \" ./**.ts\" --max-warnings 0 " ,
27
36
"lint:md" : " markdownlint \" ./content/**/*.md\" " ,
28
37
"lint" : " yarn lint:md && yarn lint:js" ,
29
- "test" : " jest"
38
+ "test" : " jest" ,
39
+ "prepare" : " husky install"
30
40
},
31
41
"license" : " UNLICENSED" ,
32
42
"version" : " 1.0.0"
You can’t perform that action at this time.
0 commit comments