Skip to content

Commit e9fcdf8

Browse files
GiteaBotsilverwind
andauthored
Update JS and Poetry dependencies and eslint (go-gitea#27200) (go-gitea#27201)
Backport go-gitea#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 <[email protected]>
1 parent 7750a73 commit e9fcdf8

File tree

7 files changed

+637
-546
lines changed

7 files changed

+637
-546
lines changed

.eslintrc.yaml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ parserOptions:
1111
plugins:
1212
- "@eslint-community/eslint-plugin-eslint-comments"
1313
- eslint-plugin-array-func
14-
- eslint-plugin-custom-elements
1514
- eslint-plugin-import
1615
- eslint-plugin-jquery
1716
- eslint-plugin-no-jquery
@@ -88,19 +87,6 @@ rules:
8887
consistent-this: [0]
8988
constructor-super: [2]
9089
curly: [0]
91-
custom-elements/expose-class-on-global: [0]
92-
custom-elements/extends-correct-class: [2]
93-
custom-elements/file-name-matches-element: [2]
94-
custom-elements/no-constructor: [2]
95-
custom-elements/no-customized-built-in-elements: [2]
96-
custom-elements/no-dom-traversal-in-attributechangedcallback: [2]
97-
custom-elements/no-dom-traversal-in-connectedcallback: [2]
98-
custom-elements/no-exports-with-element: [2]
99-
custom-elements/no-method-prefixed-with-on: [2]
100-
custom-elements/no-unchecked-define: [0]
101-
custom-elements/one-element-per-file: [0]
102-
custom-elements/tag-name-matches-class: [2]
103-
custom-elements/valid-tag-name: [2]
10490
default-case-last: [2]
10591
default-case: [0]
10692
default-param-last: [0]
@@ -740,14 +726,27 @@ rules:
740726
valid-typeof: [2, {requireStringLiterals: true}]
741727
vars-on-top: [0]
742728
wc/attach-shadow-constructor: [2]
729+
wc/define-tag-after-class-definition: [0]
730+
wc/expose-class-on-global: [0]
731+
wc/file-name-matches-element: [2]
732+
wc/guard-define-call: [0]
743733
wc/guard-super-call: [2]
734+
wc/max-elements-per-file: [0]
735+
wc/no-child-traversal-in-attributechangedcallback: [2]
736+
wc/no-child-traversal-in-connectedcallback: [2]
744737
wc/no-closed-shadow-root: [2]
745738
wc/no-constructor-attributes: [2]
746739
wc/no-constructor-params: [2]
747-
wc/no-invalid-element-name: [0] # covered by custom-elements/valid-tag-name
740+
wc/no-constructor: [2]
741+
wc/no-customized-built-in-elements: [2]
742+
wc/no-exports-with-element: [2]
743+
wc/no-invalid-element-name: [2]
744+
wc/no-invalid-extends: [2]
745+
wc/no-method-prefixed-with-on: [2]
748746
wc/no-self-class: [2]
749747
wc/no-typos: [2]
750748
wc/require-listener-teardown: [2]
749+
wc/tag-name-matches-class: [2]
751750
wrap-iife: [2, inside]
752751
wrap-regex: [0]
753752
yield-star-spacing: [2, after]

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ help:
226226
@echo " - test-frontend test frontend files"
227227
@echo " - test-backend test backend files"
228228
@echo " - test-e2e[\#TestSpecificName] test end to end using playwright"
229+
@echo " - update update js and py dependencies"
229230
@echo " - update-js update js dependencies"
230231
@echo " - update-py update py dependencies"
231232
@echo " - webpack build webpack files"
@@ -924,6 +925,9 @@ node_modules: package-lock.json
924925
poetry install
925926
@touch .venv
926927

928+
.PHONY: update
929+
update: update-js update-py
930+
927931
.PHONY: update-js
928932
update-js: node-check | node_modules
929933
npx updates -u -f package.json

0 commit comments

Comments
 (0)