Skip to content

Commit eaf493b

Browse files
silverwindlunny
andauthored
Update JS dependencies (#17357)
* Update JS dependencies - Upgrade to eslint 8 and add new plugin rules - Adapt to various API changes - Rebuild SVGs * fix webpack warning on license * order options alphabetically Co-authored-by: Lunny Xiao <[email protected]>
1 parent e2a59c5 commit eaf493b

13 files changed

+10291
-17382
lines changed

.eslintrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ rules:
117117
import/no-amd: [0]
118118
import/no-anonymous-default-export: [0]
119119
import/no-commonjs: [0]
120-
import/no-cycle: [2, {ignoreExternal: true}]
120+
import/no-cycle: [2, {ignoreExternal: true, maxDepth: 1}]
121121
import/no-default-export: [0]
122122
import/no-deprecated: [0]
123123
import/no-dynamic-require: [0]
@@ -371,6 +371,7 @@ rules:
371371
unicorn/no-fn-reference-in-iterator: [0]
372372
unicorn/no-for-loop: [0]
373373
unicorn/no-hex-escape: [0]
374+
unicorn/no-invalid-remove-event-listener: [2]
374375
unicorn/no-keyword-prefix: [0]
375376
unicorn/no-lonely-if: [2]
376377
unicorn/no-nested-ternary: [0]
@@ -385,6 +386,7 @@ rules:
385386
unicorn/no-unreadable-array-destructuring: [0]
386387
unicorn/no-unsafe-regex: [0]
387388
unicorn/no-unused-properties: [2]
389+
unicorn/no-useless-fallback-in-spread: [2]
388390
unicorn/no-useless-length-check: [2]
389391
unicorn/no-useless-spread: [2]
390392
unicorn/no-useless-undefined: [0]
@@ -434,6 +436,7 @@ rules:
434436
unicorn/require-number-to-fixed-digits-argument: [2]
435437
unicorn/require-post-message-target-origin: [0]
436438
unicorn/string-content: [0]
439+
unicorn/template-indent: [2]
437440
unicorn/throw-new-error: [2]
438441
use-isnan: [2]
439442
valid-typeof: [2, {requireStringLiterals: true}]

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default {
22
rootDir: 'web_src',
3-
setupFilesAfterEnv: ['jest-extended'],
3+
setupFilesAfterEnv: ['jest-extended/all'],
44
testEnvironment: 'jsdom',
55
testMatch: ['<rootDir>/**/*.test.js'],
66
testTimeout: 20000,

0 commit comments

Comments
 (0)