refactor(lint): suppress typescript eslint warning #11625
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
目前 typescript eslint v5 最新版本只标注支持到
< v5.2.0
,但 ts 发版到5.2.2
了,所以在 lint 时会发出 ts 版本不匹配的警告( #11567 (comment) ),但这并不影响使用。所以这里关闭该警告,并且把 ts eslint 版本锁定放开,如果 ts eslint 以后发布新的 v5 版本则无需再次更改,但目测不会再发布新的版本了,以后需要升级到 v6