[dev-eromano] pre-commit check autofix lint (#4026)

* pre staged check lint

* pre staged check lint

* pre staged check lint

* remove lint staged
This commit is contained in:
Eugenio Romano
2018-11-28 17:36:04 +00:00
committed by GitHub
parent 07beec3c08
commit 1a004b0dab
2 changed files with 739 additions and 6 deletions
+7 -6
View File
@@ -37,11 +37,6 @@
"lite-server-e2e": "lite-server --baseDir='demo-shell/dist/' -c ./e2e/lite-server-proxy.js",
"spellcheck": "cspell 'demo-shell/{src,e2e}/**/*.ts' 'e2e/**/*.ts' 'lib/{content-services,core,extensions,insights,process-services}/**/*.ts'"
},
"config": {
"ghooks": {
"pre-commit": "npm run lint && npm run lint-lib"
}
},
"repository": {
"type": "git",
"url": "https://github.com/Alfresco/alfresco-ng2-components.git"
@@ -131,6 +126,7 @@
"extract-text-webpack-plugin": "^4.0.0-beta.0",
"fs-extra": "^4.0.2",
"http-proxy-middleware": "^0.19.0",
"husky": "^1.2.0",
"jasmine-ajax": "3.2.0",
"jasmine-core": "~2.8.0",
"jasmine-reporters": "^2.3.2",
@@ -212,5 +208,10 @@
"node": ">=6.0.0"
},
"module": "./index.js",
"typings": "./index.d.ts"
"typings": "./index.d.ts",
"husky": {
"hooks": {
"pre-commit": "npm run lint-lib -- --fix && npm run stylelint -- --fix"
}
}
}