summaryrefslogtreecommitdiffstats
path: root/.eslintrc
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2021-10-19 09:23:58 +0200
committerGitHub <noreply@github.com>2021-10-19 15:23:58 +0800
commiteaf493be5d01332966f983f6d83ad515cfdec7bf (patch)
tree5aea624ec91246bf83cb167a41ed7c522f0db26f /.eslintrc
parente2a59c57fc1dcaecddc8d8dbf27d551c92dda101 (diff)
downloadgitea-eaf493be5d01332966f983f6d83ad515cfdec7bf.tar.gz
gitea-eaf493be5d01332966f983f6d83ad515cfdec7bf.zip
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 <xiaolunwen@gmail.com>
Diffstat (limited to '.eslintrc')
-rw-r--r--.eslintrc5
1 files changed, 4 insertions, 1 deletions
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}]