[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:
Amedeo Lepore
2022-09-16 11:25:11 +02:00
committed by GitHub
parent a1d8b9e96e
commit 48b92389ea
7 changed files with 36 additions and 18 deletions
+25
View File
@@ -116,6 +116,31 @@
}
],
"no-bitwise": "off",
"no-console": [
"error",
{
"allow": [
"warn",
"dir",
"timeLog",
"assert",
"clear",
"count",
"countReset",
"group",
"groupEnd",
"table",
"dirxml",
"error",
"groupCollapsed",
"Console",
"profile",
"profileEnd",
"timeStamp",
"context"
]
}
],
"no-duplicate-imports": "error",
"no-multiple-empty-lines": "error",
"no-redeclare": "error",