lint: make things a bit tighter (no cond assign, no implicit switch fall through)
This commit is contained in:
parent
6f563f4492
commit
27bdcdc023
5 changed files with 6 additions and 2 deletions
|
|
@ -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",
|
||||
{
|
||||
|
|
|
|||
|
|
@ -218,6 +218,7 @@ class Canvas extends Widget {
|
|||
this.batchDraw()
|
||||
})
|
||||
})
|
||||
// falls through
|
||||
case 'lineWidth':
|
||||
case 'padding':
|
||||
resize.check(this.canvas, true)
|
||||
|
|
|
|||
|
|
@ -272,6 +272,7 @@ class Modal extends Panel {
|
|||
|
||||
case 'label':
|
||||
this.updateLabel()
|
||||
// falls through
|
||||
case 'popupLabel':
|
||||
if (this.value) {
|
||||
this.updatePopupLabel()
|
||||
|
|
|
|||
|
|
@ -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':
|
||||
|
|
|
|||
|
|
@ -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':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue