-
Notifications
You must be signed in to change notification settings - Fork 141
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
chore: eslintのignore commentを削除 or 不要なように調整する #4986
Conversation
commit: |
|
||
if (onFormatValue) { | ||
onFormatValue(formatted) | ||
} |
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.
この件ですねー。実害はないので良さそう。
https://kufuinc.slack.com/archives/CGC58MW01/p1728349717774749
@@ -145,18 +145,12 @@ export const Demo: StoryFn = () => { | |||
)} | |||
<StyledWrapper> | |||
<Stack> | |||
{/* eslint-disable-next-line jsx-a11y/label-has-associated-control */} | |||
<label> |
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.
CheckBoxは内部でlabelを持っており、label in label になっていたため削除しています。
マークアップ構造が変わっていますが、storybookのため、ユーザー影響はありません
@@ -173,5 +172,7 @@ export const Input = forwardRef<HTMLInputElement, Props & ElementProps>( | |||
|
|||
const disableWheel = (e: WheelEvent) => { | |||
// wheel イベントに preventDefault はないため | |||
e.target && (e.target as HTMLInputElement).blur() | |||
if (e.target) { | |||
;(e.target as HTMLInputElement).blur() |
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.
[nits]
このセミコロンは流石に無くても大丈夫そう
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.
なんかformatで自動追加されたんですよね〜
まぁこのまま行きますね
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.
👍️ ESLint 周りの対応以外も、コンポーネントの挙動に影響を与えるものではないことを確認しましたー。
関連URL
概要
変更内容
確認方法