summaryrefslogtreecommitdiffstats
path: root/.eslintrc
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-12-27 15:24:27 +0100
committerGitHub <noreply@github.com>2020-12-27 15:24:27 +0100
commit50a2dd52baed6a998cca332761c3e9eccf0157a9 (patch)
tree4c5a2ca412a208ba510bcbff14ce2731c79dbb2e /.eslintrc
parentfe403725f45e4515ce89d6a4dfd01e9698d38ad9 (diff)
downloadgitea-50a2dd52baed6a998cca332761c3e9eccf0157a9.tar.gz
gitea-50a2dd52baed6a998cca332761c3e9eccf0157a9.zip
Update JS dependencies and webpack (#14118)
* Update JS dependencies - Update all JS dependencies - Adapt webpack config for version 5 - Update to Less 4.0, adapting usage of removed mixin syntax - Enable new ESLint rules and fix discovered issues * update license-webpack-plugin to fix missing licenses * update license-webpack-plugin once more to get webpack into the license output * switch to license-checker-webpack-plugin again for performance * update deps again Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to '.eslintrc')
-rw-r--r--.eslintrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/.eslintrc b/.eslintrc
index 576e8c6d30..0a56f6aaad 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -346,6 +346,7 @@ rules:
unicorn/catch-error-name: [0]
unicorn/consistent-function-scoping: [2]
unicorn/custom-error-definition: [0]
+ unicorn/empty-brace-spaces: [2]
unicorn/error-message: [0]
unicorn/escape-case: [0]
unicorn/expiring-todo-comments: [0]
@@ -361,6 +362,7 @@ rules:
unicorn/no-for-loop: [0]
unicorn/no-hex-escape: [0]
unicorn/no-keyword-prefix: [0]
+ unicorn/no-lonely-if: [2]
unicorn/no-nested-ternary: [0]
unicorn/no-new-buffer: [0]
unicorn/no-null: [0]
@@ -377,6 +379,7 @@ rules:
unicorn/prefer-add-event-listener: [2]
unicorn/prefer-array-find: [2]
unicorn/prefer-dataset: [2]
+ unicorn/prefer-date-now: [2]
unicorn/prefer-event-key: [2]
unicorn/prefer-includes: [2]
unicorn/prefer-math-trunc: [2]