aboutsummaryrefslogtreecommitdiff
path: root/.eslintrc.yaml
diff options
context:
space:
mode:
authorsilverwind2022-10-28 15:40:50 +0200
committerGitHub2022-10-28 09:40:50 -0400
commitb1dd1ba48f8f3e800e923b748cece80e7ed4956c (patch)
treee52545497415a1f9b516fb19edc7ddd1439fc113 /.eslintrc.yaml
parentf337c32e868381c6d2d948221aca0c59f8420c13 (diff)
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 <xiaolunwen@gmail.com> Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to '.eslintrc.yaml')
-rw-r--r--.eslintrc.yaml12
1 files changed, 6 insertions, 6 deletions
diff --git a/.eslintrc.yaml b/.eslintrc.yaml
index 4dafc8f49..cd86b680e 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]