aboutsummaryrefslogtreecommitdiffstats
path: root/.eslintrc.yaml
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2024-04-05 05:35:37 +0200
committerGitHub <noreply@github.com>2024-04-05 03:35:37 +0000
commit5dabc679aa0a33bc1b997335a216acfe97e70ea5 (patch)
tree5fbf11643747075e407f05f89d5c6a475f22799b /.eslintrc.yaml
parent95504045cceee9d60ff5d2eeb32cd30213b52322 (diff)
downloadgitea-5dabc679aa0a33bc1b997335a216acfe97e70ea5.tar.gz
gitea-5dabc679aa0a33bc1b997335a216acfe97e70ea5.zip
Update JS dependencies and add new eslint rules (#30279)
- Run `make update-js` - Added new eslint rules - Tested webpack build and swagger ui
Diffstat (limited to '.eslintrc.yaml')
-rw-r--r--.eslintrc.yaml5
1 files changed, 4 insertions, 1 deletions
diff --git a/.eslintrc.yaml b/.eslintrc.yaml
index 43edd14cec..5fd0a245f2 100644
--- a/.eslintrc.yaml
+++ b/.eslintrc.yaml
@@ -537,7 +537,7 @@ rules:
no-underscore-dangle: [0]
no-unexpected-multiline: [2]
no-unmodified-loop-condition: [2]
- no-unneeded-ternary: [0]
+ no-unneeded-ternary: [2]
no-unreachable-loop: [2]
no-unreachable: [2]
no-unsafe-finally: [2]
@@ -716,12 +716,14 @@ rules:
unicorn/import-style: [0]
unicorn/new-for-builtins: [2]
unicorn/no-abusive-eslint-disable: [0]
+ unicorn/no-anonymous-default-export: [0]
unicorn/no-array-callback-reference: [0]
unicorn/no-array-for-each: [2]
unicorn/no-array-method-this-argument: [2]
unicorn/no-array-push-push: [2]
unicorn/no-array-reduce: [2]
unicorn/no-await-expression-member: [0]
+ unicorn/no-await-in-promise-methods: [2]
unicorn/no-console-spaces: [0]
unicorn/no-document-cookie: [2]
unicorn/no-empty-file: [2]
@@ -738,6 +740,7 @@ rules:
unicorn/no-null: [0]
unicorn/no-object-as-default-parameter: [0]
unicorn/no-process-exit: [0]
+ unicorn/no-single-promise-in-promise-methods: [2]
unicorn/no-static-only-class: [2]
unicorn/no-thenable: [2]
unicorn/no-this-assignment: [2]