-
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
Changes from all commits
487b60b
51b0284
1306327
8d943e3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -150,7 +150,6 @@ export const Input = forwardRef<HTMLInputElement, Props & ElementProps>( | |
{prefix && ( | ||
<span className={affix({ className: 'smarthr-ui-Input-prefix' })}>{prefix}</span> | ||
)} | ||
{/* eslint-disable-next-line smarthr/a11y-input-has-name-attribute */} | ||
<input | ||
{...props} | ||
data-smarthr-ui-input="true" | ||
|
@@ -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 commentThe 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 commentThe reason will be displayed to describe this comment to others. Learn more. なんかformatで自動追加されたんですよね〜 |
||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe reason will be displayed to describe this comment to others. Learn more. CheckBoxは内部でlabelを持っており、label in label になっていたため削除しています。 |
||
<CheckBox name="bold" onChange={() => setBold(!bold)} checked={bold}> | ||
bold | ||
</CheckBox> | ||
</label> | ||
{/* eslint-disable-next-line jsx-a11y/label-has-associated-control */} | ||
<label> | ||
<CheckBox name="animate" onChange={() => setAnimate(!animate)} checked={animate}> | ||
animate | ||
</CheckBox> | ||
</label> | ||
<CheckBox name="bold" onChange={() => setBold(!bold)} checked={bold}> | ||
bold | ||
</CheckBox> | ||
<CheckBox name="animate" onChange={() => setAnimate(!animate)} checked={animate}> | ||
animate | ||
</CheckBox> | ||
<Fieldset title="メッセージの種類"> | ||
<Cluster gap={0.75}> | ||
{Object.keys(notificationBar.variants.type).map((type) => ( | ||
|
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