chore: add lint precommit hook (#488)
This commit is contained in:
committed by
László Monda
parent
f6ea327813
commit
217d78a85f
@@ -38,6 +38,7 @@
|
|||||||
"lerna": "2.0.0",
|
"lerna": "2.0.0",
|
||||||
"mkdirp": "0.5.1",
|
"mkdirp": "0.5.1",
|
||||||
"npm-run-all": "4.0.2",
|
"npm-run-all": "4.0.2",
|
||||||
|
"pre-commit": "1.2.2",
|
||||||
"rimraf": "2.6.1",
|
"rimraf": "2.6.1",
|
||||||
"standard-version": "4.2.0",
|
"standard-version": "4.2.0",
|
||||||
"stylelint": "7.13.0",
|
"stylelint": "7.13.0",
|
||||||
@@ -48,8 +49,13 @@
|
|||||||
"typescript": "2.5.2",
|
"typescript": "2.5.2",
|
||||||
"webpack": "2.4.1"
|
"webpack": "2.4.1"
|
||||||
},
|
},
|
||||||
|
"pre-commit": [
|
||||||
|
"precommit-msg",
|
||||||
|
"lint"
|
||||||
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postinstall": "lerna bootstrap",
|
"postinstall": "lerna bootstrap",
|
||||||
|
"precommit-msg": "Git precommit hook is running... & exit 0",
|
||||||
"test": "run-p -sn test:test-serializer test:uhk-common",
|
"test": "run-p -sn test:test-serializer test:uhk-common",
|
||||||
"test:test-serializer": "lerna exec --scope test-serializer npm test",
|
"test:test-serializer": "lerna exec --scope test-serializer npm test",
|
||||||
"test:uhk-common": "lerna exec --scope uhk-common npm test",
|
"test:uhk-common": "lerna exec --scope uhk-common npm test",
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ export class UserConfiguration {
|
|||||||
return this.macros.find(macro => macroId === macro.id);
|
return this.macros.find(macro => macroId === macro.id);
|
||||||
}
|
}
|
||||||
|
|
||||||
recalculateConfigurationLength(){
|
recalculateConfigurationLength() {
|
||||||
const buffer = new UhkBuffer();
|
const buffer = new UhkBuffer();
|
||||||
this.toBinary(buffer);
|
this.toBinary(buffer);
|
||||||
this.userConfigurationLength = buffer.offset;
|
this.userConfigurationLength = buffer.offset;
|
||||||
|
|||||||
Reference in New Issue
Block a user