Update JS deps and eslint enhancements#36147
Conversation
|
It seems |
|
For simple types maybe but once they get complex, generic form is superior, e.g. It's not a big issue for me, if people prefer the |
* origin/main: fix webAuthn insecure error view (go-gitea#36165) Some small refactors (go-gitea#36163) Remove undocumented support of signing key in the repository git configuration file (go-gitea#36143) Enable gocheckcompilerdirectives linter (go-gitea#36156) Fix code highlighting on blame page (go-gitea#36157) Check user visibility when redirecting to a renamed user (go-gitea#36148) Fix bug when viewing the commit diff page with non-ANSI files (go-gitea#36149)
I also prefer |
|
I guess then we need to disable the lint rule because the option |
|
BTW here are more arguments why the generic syntax is superior: https://tkdodo.eu/blog/array-types-in-type-script |
|
Reverted the array type changes and updated dependencies again, should be ready now. |
* giteaofficial/main: Add JSON linting (go-gitea#36192) Bump setup-node to v6, re-enable cache (go-gitea#36207) [skip ci] Updated translations via Crowdin Update chroma to v2.21.1 (go-gitea#36201) Disable dependabot automatic labels (go-gitea#36203) Bump astral-sh/setup-uv from 6 to 7 (go-gitea#36198) Front port changelog (go-gitea#36193) Bump dev-hanz-ops/install-gh-cli-action from 0.1.0 to 0.2.1 (go-gitea#36195) Bump aws-actions/configure-aws-credentials from 4 to 5 (go-gitea#36196) Bump docker/build-push-action from 5 to 6 (go-gitea#36197) Enable dependabot for actions (go-gitea#36191) Bump alpine to 3.23 (go-gitea#36185) Use gitRepo as parameter instead of repopath when invoking sign functions (go-gitea#36162) Fix bug when creating pull request (go-gitea#36166) Bump golangci-lint to 2.7.2, enable modernize stringsbuilder (go-gitea#36180) Use a migration test instead of a wrong test which populated the meta test repositories and fix a migration bug (go-gitea#36160) Update JS deps and eslint enhancements (go-gitea#36147) Add git.DIFF_RENAME_SIMILARITY_THRESHOLD option (go-gitea#36164) Fix OrgAssignment opts (go-gitea#36174) # Conflicts: # models/user/user.go
dependenciesunstable_native_nodejs_ts_configwith optionaljitidependency. This will be more compatible with editor integrations that may not pass this flag.Enable@typescript-eslint/array-typeand autofix issuesEnabledisabled again, false positive.@typescript-eslint/no-useless-default-assignmentand fix 1 issue.typescripttodevDependenciesbecausemake frontendworks without it