【发布时间】:2021-09-13 08:25:36
【问题描述】:
我运行下面一行 git
git push origin <the-name-of-my-branch>
我收到以下警告
no-use-before-declare 已弃用。从 TypeScript 2.9 开始。请用 内置编译器检查。 typeof-compare 已弃用。 从 TypeScript 2.2 开始,编译器包含此检查 使这条规则变得多余。 no-unused-variable 已弃用。自从 打字稿 2.9。请改用内置的编译器检查。
在这之后有很多错误
跑步输出
ls .git/hooks
applypatch-msg post-checkout post-update.sample pre-merge-commit.sample pre-receive.sample
applypatch-msg.sample post-commit pre-applypatch pre-push prepare-commit-msg
commit-msg post-merge pre-applypatch.sample pre-push.sample prepare-commit-msg.sample
commit-msg.sample post-receive pre-auto-gc pre-rebase push-to-checkout
fsmonitor-watchman.sample post-rewrite pre-commit pre-rebase.sample update
post-applypatch post-update pre-commit.sample pre-receive update.sample
【问题讨论】:
-
这不是 git 错误。你的仓库中是否启用了任何钩子?
-
不,我没有
-
@Mureinik 我读到您需要修改 tsconfig.json 文件和 tslint.json 但它对我不起作用
-
这些错误会像 VSCode 一样出现在您的 IDE 中吗?
-
您能否将
ls .git/hooks和git config core.hooksPath的输出添加到您的问题中?
标签: angular typescript git