chore: lint warn on console.log (#1135)

This commit is contained in:
Aman Harwara
2022-06-22 19:51:52 +05:30
committed by GitHub
parent 91de7db609
commit 73c65c3714
3 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@
"rules": {
"standard/no-callback-literal": 0, // Disable this as we have too many callbacks relying on literals
"no-throw-literal": 0,
"no-console": "off",
"no-console": ["warn", { "allow": ["warn", "error"] }],
"semi": 1,
"camelcase": "warn",
"sort-imports": "off",

View File

@@ -44,6 +44,7 @@ const startApplication: StartApplication = async function startApplication(
enableUnfinishedFeatures: boolean,
webSocketUrl: string,
) {
// eslint-disable-next-line no-console
SNLog.onLog = console.log
SNLog.onError = console.error
let root: Root

View File

@@ -122,7 +122,6 @@ class PanelResizer extends Component<Props, State> {
}
override componentDidMount() {
console.log(this.resizerElementRef.current)
this.resizerElementRef.current?.addEventListener('dblclick', this.onDblClick)
}