From b1dd1ba48f8f3e800e923b748cece80e7ed4956c Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 28 Oct 2022 15:40:50 +0200 Subject: Update JS dependencies and misc tweaks (#21583) - Update all JS dependencies to latest version - Disable two redundant eslint rules - Adapt stylelint config to codebase - Regenerate SVGs - Make file editor spinner "reserve" height so page does not shift - Tested katex, swagger, monaco Co-authored-by: Lunny Xiao Co-authored-by: 6543 <6543@obermui.de> --- .eslintrc.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to '.eslintrc.yaml') diff --git a/.eslintrc.yaml b/.eslintrc.yaml index 4dafc8f492..cd86b680ee 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -254,7 +254,7 @@ rules: no-irregular-whitespace: [2] no-iterator: [2] no-label-var: [2] - no-labels: [2] + no-labels: [0] no-lone-blocks: [2] no-lonely-if: [0] no-loop-func: [0] @@ -333,7 +333,7 @@ rules: no-void: [2] no-warning-comments: [0] no-whitespace-before-property: [2] - no-with: [2] + no-with: [0] nonblock-statement-body-position: [2] object-curly-newline: [0] object-curly-spacing: [2, never] @@ -378,11 +378,11 @@ rules: sonarjs/no-duplicated-branches: [0] sonarjs/no-element-overwrite: [2] sonarjs/no-empty-collection: [2] - sonarjs/no-extra-arguments: [0] + sonarjs/no-extra-arguments: [2] sonarjs/no-gratuitous-expressions: [2] sonarjs/no-identical-conditions: [2] - sonarjs/no-identical-expressions: [0] - sonarjs/no-identical-functions: [0] + sonarjs/no-identical-expressions: [2] + sonarjs/no-identical-functions: [2, 5] sonarjs/no-ignored-return: [2] sonarjs/no-inverted-boolean-check: [2] sonarjs/no-nested-switch: [0] @@ -394,7 +394,7 @@ rules: sonarjs/no-small-switch: [0] sonarjs/no-unused-collection: [2] sonarjs/no-use-of-empty-return-value: [2] - sonarjs/no-useless-catch: [0] + sonarjs/no-useless-catch: [2] sonarjs/non-existent-operator: [2] sonarjs/prefer-immediate-return: [0] sonarjs/prefer-object-literal: [0] -- cgit v1.2.3