summaryrefslogtreecommitdiffstats
path: root/.eslintrc
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2021-05-13 17:12:36 +0200
committerGitHub <noreply@github.com>2021-05-13 11:12:36 -0400
commit9545c345a89639a673351644e5894adca0f8cfed (patch)
tree1ff793f1221703e1e7fd5eeb79b5c83e02ac9a1d /.eslintrc
parent0ada74edbc555d28a1fc929bfc47162102f2c87d (diff)
downloadgitea-9545c345a89639a673351644e5894adca0f8cfed.tar.gz
gitea-9545c345a89639a673351644e5894adca0f8cfed.zip
Update JS dependencies, use Node 16 (#15804)
- Update all JS dependencies to latest version - Use Node 16 on CI - Add new lint rules - Add some gitignore entries for debug files Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to '.eslintrc')
-rw-r--r--.eslintrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/.eslintrc b/.eslintrc
index 35f8dd722a..640956f734 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -366,6 +366,7 @@ rules:
unicorn/no-array-instanceof: [0]
unicorn/no-array-push-push: [2]
unicorn/no-console-spaces: [0]
+ unicorn/no-document-cookie: [2]
unicorn/no-fn-reference-in-iterator: [0]
unicorn/no-for-loop: [0]
unicorn/no-hex-escape: [0]
@@ -389,6 +390,7 @@ rules:
unicorn/numeric-separators-style: [0]
unicorn/prefer-add-event-listener: [2]
unicorn/prefer-array-find: [2]
+ unicorn/prefer-array-flat-map: [2]
unicorn/prefer-array-flat: [2]
unicorn/prefer-array-index-of: [2]
unicorn/prefer-array-some: [2]
@@ -399,8 +401,10 @@ rules:
unicorn/prefer-includes: [2]
unicorn/prefer-math-trunc: [2]
unicorn/prefer-modern-dom-apis: [0]
+ unicorn/prefer-module: [2]
unicorn/prefer-negative-index: [2]
unicorn/prefer-node-append: [0]
+ unicorn/prefer-node-protocol: [0]
unicorn/prefer-node-remove: [0]
unicorn/prefer-number-properties: [0]
unicorn/prefer-optional-catch-binding: [2]