chore: lint warn on console.log (#1135)
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -122,7 +122,6 @@ class PanelResizer extends Component<Props, State> {
|
||||
}
|
||||
|
||||
override componentDidMount() {
|
||||
console.log(this.resizerElementRef.current)
|
||||
this.resizerElementRef.current?.addEventListener('dblclick', this.onDblClick)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user