Skip to content

Commit ca09ade

Browse files
authored
Merge pull request #490 from mashmatrix/support-slds-2-remove-eslint-disable-comments
Remove unnecessary `eslint-disable-` comments for SLDS2
2 parents c591e06 + 2938aa7 commit ca09ade

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/scripts/Datepicker.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,6 @@ const DatepickerDate: FC<DatepickerDateProps> = (props) => {
261261
>
262262
<span
263263
className='slds-day'
264-
// eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
265264
tabIndex={selectable ? 0 : -1}
266265
onClick={selectable ? onDateClick : undefined}
267266
onKeyDown={selectable ? onDateKeyDown : undefined}
@@ -301,7 +300,6 @@ const DatepickerMonth = forwardRef(
301300
<thead>
302301
<tr>
303302
{dayjs.weekdaysMin(true).map((wd, i) => (
304-
// eslint-disable-next-line react/no-array-index-key
305303
<th key={i}>
306304
<abbr title={dayjs().weekday(i).format('ddd')}>{wd}</abbr>
307305
</th>
@@ -310,7 +308,6 @@ const DatepickerMonth = forwardRef(
310308
</thead>
311309
<tbody>
312310
{cal.weeks.map((days, i) => (
313-
// eslint-disable-next-line react/no-array-index-key
314311
<tr key={i}>
315312
{days.map((date, dayIndex) => (
316313
<DatepickerDate

stories/Modal.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ export const FormElements: StoryObj<StoryProps> = {
293293
.map((a, i) => (
294294
<PicklistItem
295295
value={i + 1}
296-
label={`Item #${i + 1}`} // eslint-disable-next-line react/no-array-index-key
296+
label={`Item #${i + 1}`}
297297
key={i}
298298
/>
299299
))}

0 commit comments

Comments
 (0)