Skip to content

Commit c8b2171

Browse files
silverwindlunny
andauthored
Update JS dependencies (#21881)
- Update all JS deps - Regenerate SVGs - Add new eslint rules, fix issues - Tested Mermaid, Swagger, Vue, Webpack, Citation Co-authored-by: Lunny Xiao <[email protected]>
1 parent 1c7496c commit c8b2171

19 files changed

+1079
-1334
lines changed

.drone.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ steps:
551551

552552
# TODO: We should probably build all dependencies into a test image
553553
- name: test-e2e
554-
image: mcr.microsoft.com/playwright:v1.27.1-focal
554+
image: mcr.microsoft.com/playwright:v1.28.0-focal
555555
commands:
556556
- curl -sLO https://go.dev/dl/go1.19.linux-amd64.tar.gz && tar -C /usr/local -xzf go1.19.linux-amd64.tar.gz
557557
- groupadd --gid 1001 gitea && useradd -m --gid 1001 --uid 1001 gitea

.eslintrc.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ rules:
229229
no-empty-character-class: [2]
230230
no-empty-function: [0]
231231
no-empty-pattern: [2]
232+
no-empty-static-block: [2]
232233
no-empty: [2, {allowEmptyCatch: true}]
233234
no-eq-null: [2]
234235
no-eval: [2]
@@ -269,6 +270,7 @@ rules:
269270
no-negated-condition: [0]
270271
no-nested-ternary: [0]
271272
no-new-func: [2]
273+
no-new-native-nonconstructor: [2]
272274
no-new-object: [2]
273275
no-new-symbol: [2]
274276
no-new-wrappers: [2]
@@ -443,6 +445,7 @@ rules:
443445
unicorn/no-invalid-remove-event-listener: [2]
444446
unicorn/no-keyword-prefix: [0]
445447
unicorn/no-lonely-if: [2]
448+
unicorn/no-negated-condition: [0]
446449
unicorn/no-nested-ternary: [0]
447450
unicorn/no-new-array: [0]
448451
unicorn/no-new-buffer: [0]
@@ -453,6 +456,7 @@ rules:
453456
unicorn/no-static-only-class: [2]
454457
unicorn/no-thenable: [2]
455458
unicorn/no-this-assignment: [2]
459+
unicorn/no-typeof-undefined: [2]
456460
unicorn/no-unnecessary-await: [2]
457461
unicorn/no-unreadable-array-destructuring: [0]
458462
unicorn/no-unreadable-iife: [2]
@@ -503,6 +507,7 @@ rules:
503507
unicorn/prefer-regexp-test: [2]
504508
unicorn/prefer-replace-all: [0]
505509
unicorn/prefer-set-has: [0]
510+
unicorn/prefer-set-size: [2]
506511
unicorn/prefer-spread: [0]
507512
unicorn/prefer-starts-ends-with: [2]
508513
unicorn/prefer-string-slice: [0]

0 commit comments

Comments
 (0)