From eaf493be5d01332966f983f6d83ad515cfdec7bf Mon Sep 17 00:00:00 2001 From: silverwind Date: Tue, 19 Oct 2021 09:23:58 +0200 Subject: 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 --- .eslintrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to '.eslintrc') diff --git a/.eslintrc b/.eslintrc index 4419e16a35..898288e6d5 100644 --- a/.eslintrc +++ b/.eslintrc @@ -117,7 +117,7 @@ rules: import/no-amd: [0] import/no-anonymous-default-export: [0] import/no-commonjs: [0] - import/no-cycle: [2, {ignoreExternal: true}] + import/no-cycle: [2, {ignoreExternal: true, maxDepth: 1}] import/no-default-export: [0] import/no-deprecated: [0] import/no-dynamic-require: [0] @@ -371,6 +371,7 @@ rules: unicorn/no-fn-reference-in-iterator: [0] unicorn/no-for-loop: [0] unicorn/no-hex-escape: [0] + unicorn/no-invalid-remove-event-listener: [2] unicorn/no-keyword-prefix: [0] unicorn/no-lonely-if: [2] unicorn/no-nested-ternary: [0] @@ -385,6 +386,7 @@ rules: unicorn/no-unreadable-array-destructuring: [0] unicorn/no-unsafe-regex: [0] unicorn/no-unused-properties: [2] + unicorn/no-useless-fallback-in-spread: [2] unicorn/no-useless-length-check: [2] unicorn/no-useless-spread: [2] unicorn/no-useless-undefined: [0] @@ -434,6 +436,7 @@ rules: unicorn/require-number-to-fixed-digits-argument: [2] unicorn/require-post-message-target-origin: [0] unicorn/string-content: [0] + unicorn/template-indent: [2] unicorn/throw-new-error: [2] use-isnan: [2] valid-typeof: [2, {requireStringLiterals: true}] -- cgit v1.2.3