File tree Expand file tree Collapse file tree 4 files changed +24
-2
lines changed Expand file tree Collapse file tree 4 files changed +24
-2
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "extends": [
3
+ "@commitlint/config-conventional"
4
+ ]
5
+ }
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env sh
2
+ . " $( dirname -- " $0 " ) /_/husky.sh"
3
+
4
+ npx --no -- commitlint --edit $1
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env sh
2
+ . " $( dirname -- " $0 " ) /_/husky.sh"
3
+
4
+ npx lint-staged
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " e-ipfs-core-lib" ,
3
- "version" : " 0.3.0-beta-1 " ,
3
+ "version" : " 0.3.0" ,
4
4
"description" : " E-IPFS core library" ,
5
5
"license" : " (Apache-2.0 AND MIT)" ,
6
6
"homepage" : " https://github.com/elastic-ipfs/core-lib" ,
7
7
"scripts" : {
8
8
"test" : " c8 --reporter=text --reporter=html tap test/*.test.js" ,
9
9
"test:ci" : " npm test && c8 check-coverage --lines 100 --functions 100 --branches 100" ,
10
10
"format" : " standard src test --fix" ,
11
- "lint" : " standard src test"
11
+ "lint" : " standard src test | snazzy" ,
12
+ "prepare" : " husky install"
12
13
},
13
14
"engines" : {
14
15
"node" : " 18.12"
28
29
"xml-js" : " ^1.6.11"
29
30
},
30
31
"devDependencies" : {
32
+ "@commitlint/cli" : " ^17.3.0" ,
33
+ "@commitlint/config-conventional" : " ^17.3.0" ,
31
34
"c8" : " ^7.12.0" ,
32
35
"dedent" : " ^0.7.0" ,
36
+ "husky" : " ^8.0.2" ,
37
+ "lint-staged" : " ^13.0.4" ,
38
+ "snazzy" : " ^9.0.0" ,
33
39
"split2" : " ^4.1.0" ,
34
40
"standard" : " ^17.0.0" ,
35
41
"tap" : " ^16.3.2"
36
42
},
43
+ "lint-staged" : {
44
+ "*.{js,jsx}" : " standard --cache --fix"
45
+ },
37
46
"type" : " module" ,
38
47
"exports" : " ./src/index.js" ,
39
48
"main" : " ./src/index.js"
You can’t perform that action at this time.
0 commit comments