File tree Expand file tree Collapse file tree 1 file changed +41
-1
lines changed Expand file tree Collapse file tree 1 file changed +41
-1
lines changed Original file line number Diff line number Diff line change 22
22
"version" : " >=8.0.0"
23
23
}
24
24
],
25
+ "scripts" : {
26
+ "commitmsg" : " echo 'validate commit messages'; commitlint -e $GIT_PARAMS" ,
27
+ "precommit" : " echo 'run prettier on commit'; lint-staged" ,
28
+ "prettier" : " echo 'run prettier'; prettier --write './{src,testbed,tests}/**/*.js'" ,
29
+ "lint" : " echo 'run code linter'; eslint --ext=js --fix ./src"
30
+ },
31
+ "eslintConfig" : {
32
+ "extends" : [
33
+ " airbnb-base/legacy"
34
+ ],
35
+ "rules" : {
36
+ "no-console" : 0 ,
37
+ "no-alert" : 0 ,
38
+ "no-use-before-define" : 0
39
+ },
40
+ "globals" : {
41
+ "Promise" : true ,
42
+ "Branch" : true
43
+ }
44
+ },
45
+ "commitlint" : {
46
+ "extends" : [
47
+ " @commitlint/config-conventional"
48
+ ]
49
+ },
50
+ "lint-staged" : {
51
+ "src/*.{js,json,css,md}" : [
52
+ " prettier --write" ,
53
+ " git add"
54
+ ]
55
+ },
25
56
"dependencies" : {
26
57
"fs" : " 0.0.1-security" ,
27
58
"glob" : " ^7.1.4" ,
33
64
"xcode" : " ^2.0.0" ,
34
65
"xml2js" : " ^0.4.19"
35
66
},
36
- "devDependencies" : {}
67
+ "devDependencies" : {
68
+ "@commitlint/cli" : " ^8.3.5" ,
69
+ "@commitlint/config-conventional" : " ^8.3.4" ,
70
+ "eslint" : " ^6.8.0" ,
71
+ "eslint-config-airbnb-base" : " ^14.1.0" ,
72
+ "eslint-plugin-import" : " ^2.20.2" ,
73
+ "husky" : " ^4.2.5" ,
74
+ "lint-staged" : " ^10.1.7" ,
75
+ "prettier" : " ^2.0.5"
76
+ }
37
77
}
You can’t perform that action at this time.
0 commit comments