chore: lint warn on console.log (#1135)
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
"rules": {
|
"rules": {
|
||||||
"standard/no-callback-literal": 0, // Disable this as we have too many callbacks relying on literals
|
"standard/no-callback-literal": 0, // Disable this as we have too many callbacks relying on literals
|
||||||
"no-throw-literal": 0,
|
"no-throw-literal": 0,
|
||||||
"no-console": "off",
|
"no-console": ["warn", { "allow": ["warn", "error"] }],
|
||||||
"semi": 1,
|
"semi": 1,
|
||||||
"camelcase": "warn",
|
"camelcase": "warn",
|
||||||
"sort-imports": "off",
|
"sort-imports": "off",
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ const startApplication: StartApplication = async function startApplication(
|
|||||||
enableUnfinishedFeatures: boolean,
|
enableUnfinishedFeatures: boolean,
|
||||||
webSocketUrl: string,
|
webSocketUrl: string,
|
||||||
) {
|
) {
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
SNLog.onLog = console.log
|
SNLog.onLog = console.log
|
||||||
SNLog.onError = console.error
|
SNLog.onError = console.error
|
||||||
let root: Root
|
let root: Root
|
||||||
|
|||||||
@@ -122,7 +122,6 @@ class PanelResizer extends Component<Props, State> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override componentDidMount() {
|
override componentDidMount() {
|
||||||
console.log(this.resizerElementRef.current)
|
|
||||||
this.resizerElementRef.current?.addEventListener('dblclick', this.onDblClick)
|
this.resizerElementRef.current?.addEventListener('dblclick', this.onDblClick)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user