-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(misskey-js): 警告をすべて解決 #14257
refactor(misskey-js): 警告をすべて解決 #14257
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #14257 +/- ##
===========================================
- Coverage 42.07% 42.00% -0.07%
===========================================
Files 1527 1527
Lines 195068 195074 +6
Branches 2688 3576 +888
===========================================
- Hits 82079 81948 -131
- Misses 112448 112555 +107
- Partials 541 571 +30 ☔ View full report in Codecov by Sentry. |
… after the check)
|
@@ -14,6 +14,7 @@ export type APIError = { | |||
code: string; | |||
message: string; | |||
kind: 'client' | 'server'; | |||
// eslint-disable-next-line @typescript-eslint/no-explicit-any |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
潰すと多分広範囲に影響するので後のPRでやる
@@ -29,6 +30,7 @@ export type FetchLike = (input: string, init?: { | |||
headers: { [key in string]: string } | |||
}) => Promise<{ | |||
status: number; | |||
// eslint-disable-next-line @typescript-eslint/no-explicit-any |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同上
@@ -49,6 +51,7 @@ export class APIClient { | |||
this.fetch = opts.fetch ?? ((...args) => fetch(...args)); | |||
} | |||
|
|||
// eslint-disable-next-line @typescript-eslint/no-explicit-any |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同上
ready for review |
…reverted after the check)" This reverts commit 67072e3.
🎉 |
// eslint-disable-next-line no-param-reassign | ||
if (acct.startsWith('@')) acct = acct.substring(1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これは素直にコメントで抑制するのではなく引数に上書きせずに再宣言した方がいいタイプな気がする
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
どうだろう...Strict modeだと arguments との影響もないしあるし正直私はno-param-reassign自体の有用性に疑問を持ってます...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
既存の振る舞いを壊さないようにASTを変えない範囲で解決したので、別のPRに分けたい気持ちがややある
やるか |
やった |
あれこれcloseされたのなぜかしら |
復旧しました: #14277 |
What
close #14253
Why
issueに記載のため省略
Additional info (optional)
オセロゲームのeslint-disable-next-line @typescript-eslint/no-explicit-any
はフロントエンドの解析が必要なのでこのPRでは取り組まないChecklist