mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[AAE-10474] review why xit and console log is allowed to be committed (#7829)
* [AAE-10474] Add husky pre-commit script to run lint-staged * [AAE-10474] Enable lint rules for console log * [AAE-10474] Run affected:lint command on pre-commit, remoive old scripts that use tslint * [AAE-10474] Remove console.log * [AAE-10474] Disable no-console lint rule for 'testing' and 'cli' projects
This commit is contained in:
+2
-15
@@ -29,9 +29,7 @@
|
||||
"print-affected:lint": "nx print-affected --target=lint --select=tasks.target.project",
|
||||
"03": "echo -------------------------------------------- Lint -----------------------------------------------",
|
||||
"03s": "",
|
||||
"lint-demo": "tslint -p tsconfig.json -c tslint.json",
|
||||
"lint-lib": "tslint -p ./lib/tsconfig.json -c ./lib/tslint.json",
|
||||
"lint-e2e": "tsc -p tsconfig.e2e.json",
|
||||
"affected:lint": "nx affected:lint",
|
||||
"validate-config": "ajv validate -s lib/core/src/lib/app-config/schema.json -d ./demo-shell/src/app.config.json --errors=text --verbose",
|
||||
"04": "echo -------------------------------------------- Demo Shell -----------------------------------------------",
|
||||
"04s": "",
|
||||
@@ -233,16 +231,5 @@
|
||||
"node": ">=6.0.0"
|
||||
},
|
||||
"module": "./index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"lint-staged": {
|
||||
"**/demo-shell/src/**/*.ts": "npm run lint-demo -- --fix",
|
||||
"**/lib/**/*.ts": "npm run lint-lib -- --fix",
|
||||
"**/e2e/**/*.ts": "npm run lint-e2e -- --fix",
|
||||
"*.scss": "npm run stylelint -- --fix"
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "lint-staged"
|
||||
}
|
||||
}
|
||||
"typings": "./index.d.ts"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user