lint: make things a bit tighter (no cond assign, no implicit switch fall through)

This commit is contained in:
jean-emmanuel 2025-09-17 10:24:06 +02:00
parent 6f563f4492
commit 27bdcdc023
5 changed files with 6 additions and 2 deletions

View file

@ -11,10 +11,8 @@
"rules": {
"no-prototype-builtins": "off",
"no-console": "off",
"no-cond-assign": "off",
"no-useless-escape": "off",
"no-self-assign": "off",
"no-fallthrough": "off",
"no-empty": [
"error",
{

View file

@ -218,6 +218,7 @@ class Canvas extends Widget {
this.batchDraw()
})
})
// falls through
case 'lineWidth':
case 'padding':
resize.check(this.canvas, true)

View file

@ -272,6 +272,7 @@ class Modal extends Panel {
case 'label':
this.updateLabel()
// falls through
case 'popupLabel':
if (this.value) {
this.updatePopupLabel()

View file

@ -403,8 +403,10 @@ class Panel extends Container() {
case 'colorBg':
this.setCssVariables()
// falls through
case 'colorWidget':
if (iOS13 && this.getProp('scroll')) this.checkScrollBars()
// falls through
case 'colorText':
case 'colorFill':
case 'colorStroke':

View file

@ -87,8 +87,10 @@ class Tab extends Panel {
case 'label':
this.updateLabel()
// falls through
case 'visible':
resize.check(this.widget, true)
// falls through
case 'colorText':
case 'colorWidget':
case 'colorFill':