summaryrefslogtreecommitdiffstats
path: root/.eslintrc
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2021-08-17 07:32:48 +0200
committerGitHub <noreply@github.com>2021-08-17 01:32:48 -0400
commitea07726dc193c41c60e26c25ad705059bd4f6555 (patch)
tree5d3191bd5a1968893e599eadca279a3f527617b9 /.eslintrc
parentcf4328359bb765ebccc592d8fe50cd8190455220 (diff)
downloadgitea-ea07726dc193c41c60e26c25ad705059bd4f6555.tar.gz
gitea-ea07726dc193c41c60e26c25ad705059bd4f6555.zip
Update JS dependencies (#16708)
* Update JS dependencies - Update all JS dependencies - Adapt to recent webpack changes - Add new lint rules and fix issues - Regenerate SVGs and update svgo api usage Fixes: https://github.com/go-gitea/gitea/pull/16492 * adapt jest config and sort keys Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to '.eslintrc')
-rw-r--r--.eslintrc13
1 files changed, 13 insertions, 0 deletions
diff --git a/.eslintrc b/.eslintrc
index 71cbd5cfb6..98f8434955 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -125,6 +125,7 @@ rules:
import/no-deprecated: [0]
import/no-dynamic-require: [0]
import/no-extraneous-dependencies: [2]
+ import/no-import-module-exports: [0]
import/no-internal-modules: [0]
import/no-mutable-exports: [2]
import/no-named-as-default-member: [0]
@@ -133,6 +134,7 @@ rules:
import/no-named-export: [0]
import/no-namespace: [0]
import/no-nodejs-modules: [0]
+ import/no-relative-packages: [0]
import/no-relative-parent-imports: [0]
import/no-restricted-paths: [0]
import/no-self-import: [2]
@@ -365,6 +367,7 @@ rules:
unicorn/no-abusive-eslint-disable: [0]
unicorn/no-array-for-each: [0]
unicorn/no-array-instanceof: [0]
+ unicorn/no-array-method-this-argument: [2]
unicorn/no-array-push-push: [2]
unicorn/no-console-spaces: [0]
unicorn/no-document-cookie: [2]
@@ -385,6 +388,8 @@ rules:
unicorn/no-unreadable-array-destructuring: [0]
unicorn/no-unsafe-regex: [0]
unicorn/no-unused-properties: [2]
+ unicorn/no-useless-length-check: [2]
+ unicorn/no-useless-spread: [2]
unicorn/no-useless-undefined: [0]
unicorn/no-zero-fractions: [2]
unicorn/number-literal-case: [0]
@@ -395,6 +400,7 @@ rules:
unicorn/prefer-array-flat: [2]
unicorn/prefer-array-index-of: [2]
unicorn/prefer-array-some: [2]
+ unicorn/prefer-at: [0]
unicorn/prefer-dataset: [2]
unicorn/prefer-date-now: [2]
unicorn/prefer-default-parameters: [0]
@@ -408,7 +414,10 @@ rules:
unicorn/prefer-node-protocol: [0]
unicorn/prefer-node-remove: [0]
unicorn/prefer-number-properties: [0]
+ unicorn/prefer-object-from-entries: [2]
+ unicorn/prefer-object-has-own: [0]
unicorn/prefer-optional-catch-binding: [2]
+ unicorn/prefer-prototype-methods: [0]
unicorn/prefer-query-selector: [0]
unicorn/prefer-reflect-apply: [0]
unicorn/prefer-regexp-test: [2]
@@ -420,9 +429,13 @@ rules:
unicorn/prefer-switch: [0]
unicorn/prefer-ternary: [0]
unicorn/prefer-text-content: [2]
+ unicorn/prefer-top-level-await: [0]
unicorn/prefer-trim-start-end: [2]
unicorn/prefer-type-error: [0]
unicorn/prevent-abbreviations: [0]
+ unicorn/require-array-join-separator: [2]
+ unicorn/require-number-to-fixed-digits-argument: [2]
+ unicorn/require-post-message-target-origin: [0]
unicorn/string-content: [0]
unicorn/throw-new-error: [2]
use-isnan: [2]