aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2024-12-15 22:02:32 +0100
committerGitHub <noreply@github.com>2024-12-16 05:02:32 +0800
commitc8ea41b049c887794e4dd87b690b3031b98458b9 (patch)
tree2e3fbfdeced634ff8079b19b9f9ecf769a714c76 /Makefile
parent74b06d4f5cc8dd11140a778768d384c4240ecd66 (diff)
downloadgitea-c8ea41b049c887794e4dd87b690b3031b98458b9.tar.gz
gitea-c8ea41b049c887794e4dd87b690b3031b98458b9.zip
Fix remaining typescript issues, enable `tsc` (#32840)
Fixes 79 typescript errors. Discovered at least two bugs in `notifications.ts`, and I'm pretty sure this feature was at least partially broken and may still be, I don't really know how to test it. After this, only like ~10 typescript errors remain in the codebase but those are harder to solve. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 2 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index d5b779f1e5..4889958c3b 100644
--- a/Makefile
+++ b/Makefile
@@ -377,12 +377,12 @@ lint-backend-fix: lint-go-fix lint-go-vet lint-editorconfig
.PHONY: lint-js
lint-js: node_modules
npx eslint --color --max-warnings=0 --ext js,ts,vue $(ESLINT_FILES)
-# npx vue-tsc
+ npx vue-tsc
.PHONY: lint-js-fix
lint-js-fix: node_modules
npx eslint --color --max-warnings=0 --ext js,ts,vue $(ESLINT_FILES) --fix
-# npx vue-tsc
+ npx vue-tsc
.PHONY: lint-css
lint-css: node_modules
@@ -451,10 +451,6 @@ lint-templates: .venv node_modules
lint-yaml: .venv
@poetry run yamllint .
-.PHONY: tsc
-tsc:
- npx vue-tsc
-
.PHONY: watch
watch:
@bash tools/watch.sh