Skip to content

Commit 87b2bb5

Browse files
committedDec 1, 2024
Merge remote-tracking branch 'origin/main' into main_tk
# Conflicts: # .github/workflows/release-nightly.yml # .github/workflows/release-tag-version.yml # modules/structs/hook.go # options/locale/locale_en-US.ini # routers/web/repo/actions/actions.go # routers/web/repo/actions/view.go # routers/web/web.go # templates/repo/actions/list.tmpl # templates/repo/actions/workflow_dispatch.tmpl
2 parents 07e3fbd + 2abef97 commit 87b2bb5

File tree

1,258 files changed

+45735
-26336
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,258 files changed

+45735
-26336
lines changed
 

‎.devcontainer/devcontainer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "Gitea DevContainer",
3-
"image": "mcr.microsoft.com/devcontainers/go:1.22-bullseye",
3+
"image": "mcr.microsoft.com/devcontainers/go:1.23-bookworm",
44
"features": {
55
// installs nodejs into container
66
"ghcr.io/devcontainers/features/node:1": {
77
"version": "20"
88
},
9-
"ghcr.io/devcontainers/features/git-lfs:1.1.0": {},
9+
"ghcr.io/devcontainers/features/git-lfs:1.2.2": {},
1010
"ghcr.io/devcontainers-contrib/features/poetry:2": {},
1111
"ghcr.io/devcontainers/features/python:1": {
1212
"version": "3.12"

‎.eslintrc.yaml

+15-10
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ plugins:
2727
- "@stylistic/eslint-plugin-js"
2828
- "@typescript-eslint/eslint-plugin"
2929
- eslint-plugin-array-func
30-
- eslint-plugin-deprecation
3130
- eslint-plugin-github
3231
- eslint-plugin-i
3332
- eslint-plugin-no-jquery
@@ -224,7 +223,6 @@ rules:
224223
"@typescript-eslint/await-thenable": [2]
225224
"@typescript-eslint/ban-ts-comment": [2, {'ts-expect-error': false, 'ts-ignore': true, 'ts-nocheck': false, 'ts-check': false}]
226225
"@typescript-eslint/ban-tslint-comment": [0]
227-
"@typescript-eslint/ban-types": [2, {extendDefaults: true, types: {Function: false}}]
228226
"@typescript-eslint/class-literal-property-style": [0]
229227
"@typescript-eslint/class-methods-use-this": [0]
230228
"@typescript-eslint/consistent-generic-constructors": [0]
@@ -249,12 +247,14 @@ rules:
249247
"@typescript-eslint/no-base-to-string": [0]
250248
"@typescript-eslint/no-confusing-non-null-assertion": [2]
251249
"@typescript-eslint/no-confusing-void-expression": [0]
250+
"@typescript-eslint/no-deprecated": [2]
252251
"@typescript-eslint/no-dupe-class-members": [0]
253252
"@typescript-eslint/no-duplicate-enum-values": [2]
254253
"@typescript-eslint/no-duplicate-type-constituents": [2, {ignoreUnions: true}]
255254
"@typescript-eslint/no-dynamic-delete": [0]
256255
"@typescript-eslint/no-empty-function": [0]
257256
"@typescript-eslint/no-empty-interface": [0]
257+
"@typescript-eslint/no-empty-object-type": [2]
258258
"@typescript-eslint/no-explicit-any": [0]
259259
"@typescript-eslint/no-extra-non-null-assertion": [2]
260260
"@typescript-eslint/no-extraneous-class": [0]
@@ -266,7 +266,7 @@ rules:
266266
"@typescript-eslint/no-invalid-this": [0]
267267
"@typescript-eslint/no-invalid-void-type": [0]
268268
"@typescript-eslint/no-loop-func": [0]
269-
"@typescript-eslint/no-loss-of-precision": [2]
269+
"@typescript-eslint/no-loss-of-precision": [0]
270270
"@typescript-eslint/no-magic-numbers": [0]
271271
"@typescript-eslint/no-meaningless-void-operator": [0]
272272
"@typescript-eslint/no-misused-new": [2]
@@ -278,8 +278,9 @@ rules:
278278
"@typescript-eslint/no-non-null-assertion": [0]
279279
"@typescript-eslint/no-redeclare": [0]
280280
"@typescript-eslint/no-redundant-type-constituents": [2]
281-
"@typescript-eslint/no-require-imports": [0]
281+
"@typescript-eslint/no-require-imports": [2]
282282
"@typescript-eslint/no-restricted-imports": [0]
283+
"@typescript-eslint/no-restricted-types": [0]
283284
"@typescript-eslint/no-shadow": [0]
284285
"@typescript-eslint/no-this-alias": [0] # handled by unicorn/no-this-assignment
285286
"@typescript-eslint/no-unnecessary-boolean-literal-compare": [0]
@@ -294,6 +295,7 @@ rules:
294295
"@typescript-eslint/no-unsafe-call": [0]
295296
"@typescript-eslint/no-unsafe-declaration-merging": [2]
296297
"@typescript-eslint/no-unsafe-enum-comparison": [2]
298+
"@typescript-eslint/no-unsafe-function-type": [2]
297299
"@typescript-eslint/no-unsafe-member-access": [0]
298300
"@typescript-eslint/no-unsafe-return": [0]
299301
"@typescript-eslint/no-unsafe-unary-minus": [2]
@@ -302,7 +304,7 @@ rules:
302304
"@typescript-eslint/no-use-before-define": [0]
303305
"@typescript-eslint/no-useless-constructor": [0]
304306
"@typescript-eslint/no-useless-empty-export": [0]
305-
"@typescript-eslint/no-var-requires": [2]
307+
"@typescript-eslint/no-wrapper-object-types": [2]
306308
"@typescript-eslint/non-nullable-type-assertion-style": [0]
307309
"@typescript-eslint/only-throw-error": [2]
308310
"@typescript-eslint/parameter-properties": [0]
@@ -334,7 +336,7 @@ rules:
334336
"@typescript-eslint/switch-exhaustiveness-check": [0]
335337
"@typescript-eslint/triple-slash-reference": [2]
336338
"@typescript-eslint/typedef": [0]
337-
"@typescript-eslint/unbound-method": [2]
339+
"@typescript-eslint/unbound-method": [0] # too many false-positives
338340
"@typescript-eslint/unified-signatures": [2]
339341
accessor-pairs: [2]
340342
array-callback-return: [2, {checkForEach: true}]
@@ -357,7 +359,6 @@ rules:
357359
default-case-last: [2]
358360
default-case: [0]
359361
default-param-last: [0]
360-
deprecation/deprecation: [2]
361362
dot-notation: [0]
362363
eqeqeq: [2]
363364
for-direction: [2]
@@ -568,7 +569,7 @@ rules:
568569
no-jquery/no-param: [2]
569570
no-jquery/no-parent: [0]
570571
no-jquery/no-parents: [2]
571-
no-jquery/no-parse-html-literal: [0]
572+
no-jquery/no-parse-html-literal: [2]
572573
no-jquery/no-parse-html: [2]
573574
no-jquery/no-parse-json: [2]
574575
no-jquery/no-parse-xml: [2]
@@ -599,7 +600,7 @@ rules:
599600
no-lone-blocks: [2]
600601
no-lonely-if: [0]
601602
no-loop-func: [0]
602-
no-loss-of-precision: [0] # handled by @typescript-eslint/no-loss-of-precision
603+
no-loss-of-precision: [2]
603604
no-magic-numbers: [0]
604605
no-misleading-character-class: [2]
605606
no-multi-assign: [0]
@@ -641,7 +642,7 @@ rules:
641642
no-this-before-super: [2]
642643
no-throw-literal: [2]
643644
no-undef-init: [2]
644-
no-undef: [2, {typeof: true}]
645+
no-undef: [2, {typeof: true}] # TODO: disable this rule after tsc passes
645646
no-undefined: [0]
646647
no-underscore-dangle: [0]
647648
no-unexpected-multiline: [2]
@@ -814,6 +815,7 @@ rules:
814815
unicorn/catch-error-name: [0]
815816
unicorn/consistent-destructuring: [2]
816817
unicorn/consistent-empty-array-spread: [2]
818+
unicorn/consistent-existence-index-check: [0]
817819
unicorn/consistent-function-scoping: [2]
818820
unicorn/custom-error-definition: [0]
819821
unicorn/empty-brace-spaces: [2]
@@ -843,6 +845,7 @@ rules:
843845
unicorn/no-invalid-fetch-options: [2]
844846
unicorn/no-invalid-remove-event-listener: [2]
845847
unicorn/no-keyword-prefix: [0]
848+
unicorn/no-length-as-slice-end: [2]
846849
unicorn/no-lonely-if: [2]
847850
unicorn/no-magic-array-flat-depth: [0]
848851
unicorn/no-negated-condition: [0]
@@ -889,10 +892,12 @@ rules:
889892
unicorn/prefer-dom-node-text-content: [2]
890893
unicorn/prefer-event-target: [2]
891894
unicorn/prefer-export-from: [0]
895+
unicorn/prefer-global-this: [0]
892896
unicorn/prefer-includes: [2]
893897
unicorn/prefer-json-parse-buffer: [0]
894898
unicorn/prefer-keyboard-event-key: [2]
895899
unicorn/prefer-logical-operator-over-ternary: [2]
900+
unicorn/prefer-math-min-max: [2]
896901
unicorn/prefer-math-trunc: [2]
897902
unicorn/prefer-modern-dom-apis: [0]
898903
unicorn/prefer-modern-math-apis: [2]

0 commit comments

Comments
 (0)