summaryrefslogtreecommitdiffstats
path: root/.eslintrc.yaml
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-07-21 05:34:10 +0200
committerGitHub <noreply@github.com>2023-07-21 11:34:10 +0800
commit2b6f2243366b6640a4a322b33b419445c710cba9 (patch)
tree44770879fc1800e856c165cdaf0742efd3e931ae /.eslintrc.yaml
parentd021c88d297ca030a1207fc6a5adbea4341eb48c (diff)
downloadgitea-2b6f2243366b6640a4a322b33b419445c710cba9.tar.gz
gitea-2b6f2243366b6640a4a322b33b419445c710cba9.zip
Update JS dependencies (#26025)
- Update all JS dependencies - Tweak eslint config, disable SequenceExpression aka. [Comma operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comma_operator), remove deprecated rule - Add new stylelint rule - Tested Monaco and Swagger
Diffstat (limited to '.eslintrc.yaml')
-rw-r--r--.eslintrc.yaml3
1 files changed, 1 insertions, 2 deletions
diff --git a/.eslintrc.yaml b/.eslintrc.yaml
index 8b9123c988..cbb169d06e 100644
--- a/.eslintrc.yaml
+++ b/.eslintrc.yaml
@@ -420,7 +420,7 @@ rules:
no-restricted-exports: [0]
no-restricted-globals: [2, addEventListener, blur, close, closed, confirm, defaultStatus, defaultstatus, error, event, external, find, focus, frameElement, frames, history, innerHeight, innerWidth, isFinite, isNaN, length, location, locationbar, menubar, moveBy, moveTo, name, onblur, onerror, onfocus, onload, onresize, onunload, open, opener, opera, outerHeight, outerWidth, pageXOffset, pageYOffset, parent, print, removeEventListener, resizeBy, resizeTo, screen, screenLeft, screenTop, screenX, screenY, scroll, scrollbars, scrollBy, scrollTo, scrollX, scrollY, self, status, statusbar, stop, toolbar, top, __dirname, __filename]
no-restricted-imports: [0]
- no-restricted-syntax: [2, WithStatement, ForInStatement, LabeledStatement]
+ no-restricted-syntax: [2, WithStatement, ForInStatement, LabeledStatement, SequenceExpression]
no-return-assign: [0]
no-return-await: [0]
no-script-url: [2]
@@ -666,7 +666,6 @@ rules:
unicorn/no-unnecessary-await: [2]
unicorn/no-unreadable-array-destructuring: [0]
unicorn/no-unreadable-iife: [2]
- unicorn/no-unsafe-regex: [0]
unicorn/no-unused-properties: [2]
unicorn/no-useless-fallback-in-spread: [2]
unicorn/no-useless-length-check: [2]