summaryrefslogtreecommitdiffstats
path: root/.eslintrc.yaml
diff options
context:
space:
mode:
authorGiteabot <teabot@gitea.io>2023-09-23 05:26:42 +0800
committerGitHub <noreply@github.com>2023-09-22 21:26:42 +0000
commite9fcdf822cd5005c4ed3bf206e20d07f740b2929 (patch)
treeb25693a55d125935682d6d0fe8ea7f08df243a56 /.eslintrc.yaml
parent7750a7313df4ef6df9bc4e26e2c80476f5fe51b9 (diff)
downloadgitea-e9fcdf822cd5005c4ed3bf206e20d07f740b2929.tar.gz
gitea-e9fcdf822cd5005c4ed3bf206e20d07f740b2929.zip
Update JS and Poetry dependencies and eslint (#27200) (#27201)
Backport #27200 by @silverwind - Update all JS and Poetry dependencies - Remove deprecated `eslint-plugin-custom-elements` and replace it with rules from `eslint-plugin-wc` - Add a convenience `make update` to update both js and py dependencies - Tested markdown toolbar, swagger and citation Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to '.eslintrc.yaml')
-rw-r--r--.eslintrc.yaml29
1 files changed, 14 insertions, 15 deletions
diff --git a/.eslintrc.yaml b/.eslintrc.yaml
index c9ea481af4..8495972640 100644
--- a/.eslintrc.yaml
+++ b/.eslintrc.yaml
@@ -11,7 +11,6 @@ parserOptions:
plugins:
- "@eslint-community/eslint-plugin-eslint-comments"
- eslint-plugin-array-func
- - eslint-plugin-custom-elements
- eslint-plugin-import
- eslint-plugin-jquery
- eslint-plugin-no-jquery
@@ -88,19 +87,6 @@ rules:
consistent-this: [0]
constructor-super: [2]
curly: [0]
- custom-elements/expose-class-on-global: [0]
- custom-elements/extends-correct-class: [2]
- custom-elements/file-name-matches-element: [2]
- custom-elements/no-constructor: [2]
- custom-elements/no-customized-built-in-elements: [2]
- custom-elements/no-dom-traversal-in-attributechangedcallback: [2]
- custom-elements/no-dom-traversal-in-connectedcallback: [2]
- custom-elements/no-exports-with-element: [2]
- custom-elements/no-method-prefixed-with-on: [2]
- custom-elements/no-unchecked-define: [0]
- custom-elements/one-element-per-file: [0]
- custom-elements/tag-name-matches-class: [2]
- custom-elements/valid-tag-name: [2]
default-case-last: [2]
default-case: [0]
default-param-last: [0]
@@ -740,14 +726,27 @@ rules:
valid-typeof: [2, {requireStringLiterals: true}]
vars-on-top: [0]
wc/attach-shadow-constructor: [2]
+ wc/define-tag-after-class-definition: [0]
+ wc/expose-class-on-global: [0]
+ wc/file-name-matches-element: [2]
+ wc/guard-define-call: [0]
wc/guard-super-call: [2]
+ wc/max-elements-per-file: [0]
+ wc/no-child-traversal-in-attributechangedcallback: [2]
+ wc/no-child-traversal-in-connectedcallback: [2]
wc/no-closed-shadow-root: [2]
wc/no-constructor-attributes: [2]
wc/no-constructor-params: [2]
- wc/no-invalid-element-name: [0] # covered by custom-elements/valid-tag-name
+ wc/no-constructor: [2]
+ wc/no-customized-built-in-elements: [2]
+ wc/no-exports-with-element: [2]
+ wc/no-invalid-element-name: [2]
+ wc/no-invalid-extends: [2]
+ wc/no-method-prefixed-with-on: [2]
wc/no-self-class: [2]
wc/no-typos: [2]
wc/require-listener-teardown: [2]
+ wc/tag-name-matches-class: [2]
wrap-iife: [2, inside]
wrap-regex: [0]
yield-star-spacing: [2, after]