chore: add commit hooks

This commit is contained in:
Miralem Drek
2019-01-30 15:57:50 +01:00
parent 11b8aca2b6
commit 67df9d5362
3 changed files with 648 additions and 19 deletions

3
.commitlintrc.js Normal file
View File

@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
}

View File

@@ -12,6 +12,16 @@
"type": "git",
"url": "git+https://github.com/qlik-trial/nebula.js.git"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS && lint-staged"
}
},
"lint-staged": {
"*.{js, jsx}": [
"eslint"
]
},
"devDependencies": {
"@after-work.js/aw": "^5.1.3",
"@babel/cli": "^7.2.3",
@@ -19,6 +29,8 @@
"@babel/plugin-transform-react-jsx": "^7.3.0",
"@babel/preset-env": "^7.3.1",
"@babel/preset-react": "^7.0.0",
"@commitlint/cli": "^7.4.0",
"@commitlint/config-conventional": "^7.3.1",
"babel-plugin-istanbul": "^5.1.0",
"cross-env": "^5.2.0",
"eslint": "^5.12.1",
@@ -27,7 +39,9 @@
"eslint-plugin-jsx-a11y": "^6.2.0",
"eslint-plugin-mocha": "^5.2.1",
"eslint-plugin-react": "^7.12.4",
"husky": "^1.3.1",
"lerna": "^3.10.7",
"lint-staged": "^8.1.1",
"rollup": "^1.1.2",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-commonjs": "^9.2.0",

650
yarn.lock

File diff suppressed because it is too large Load Diff