Skip to content

Commit 179b52e

Browse files
author
Adrian Marquez
committed
feat: reenable commitlint, lint-staged and dependencies
1 parent 8160c52 commit 179b52e

File tree

1 file changed

+41
-1
lines changed

1 file changed

+41
-1
lines changed

package.json

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,37 @@
2222
"version": ">=8.0.0"
2323
}
2424
],
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+
},
2556
"dependencies": {
2657
"fs": "0.0.1-security",
2758
"glob": "^7.1.4",
@@ -33,5 +64,14 @@
3364
"xcode": "^2.0.0",
3465
"xml2js": "^0.4.19"
3566
},
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+
}
3777
}

0 commit comments

Comments
 (0)