Bump eslint-config-preact from 1.1.3 to 1.1.4 (#13516)

* Bump eslint-config-preact from 1.1.3 to 1.1.4

Bumps [eslint-config-preact](https://github.com/preactjs/eslint-config-preact) from 1.1.3 to 1.1.4.
- [Release notes](https://github.com/preactjs/eslint-config-preact/releases)
- [Commits](https://github.com/preactjs/eslint-config-preact/compare/v1.1.3...v1.1.4)

Signed-off-by: dependabot[bot] <support@github.com>

* Add missing key prop for elements in iterators where necessary

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Vaidehi Joshi <vaidehi.sj@gmail.com>
This commit is contained in:
dependabot[bot] 2021-04-27 18:54:43 +02:00 committed by GitHub
parent 5881f36a04
commit 62e150f5af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 24 additions and 12 deletions

View file

@ -157,8 +157,8 @@ export class Snackbar extends Component {
this.element = element;
}}
>
{snacks.map(({ message, actions = [] }) => (
<SnackbarItem message={message} actions={actions} />
{snacks.map(({ message, actions = [] }, index) => (
<SnackbarItem message={message} actions={actions} key={index} />
))}
</div>
);

View file

@ -25,6 +25,7 @@ export const Channels = ({
return (
<ChannelButton
channel={channel}
key={channel.chat_channel_id}
discoverableChannel
triggerActiveContent={triggerActiveContent}
isActiveChannel={
@ -46,6 +47,7 @@ export const Channels = ({
return (
<ChannelButton
channel={channel}
key={channel.chat_channel_id}
newMessagesIndicator={newMessagesIndicator}
otherClassname={otherClassname}
handleSwitchChannel={handleSwitchChannel}

View file

@ -40,6 +40,7 @@ export class GithubRepos extends Component {
const allRepos = repos.map((repo) => (
<SingleRepo
key={repo.github_id_code}
githubIdCode={repo.github_id_code}
name={repo.name}
fork={repo.fork}

View file

@ -85,7 +85,7 @@ export class ListingDashboard extends Component {
customSort,
);
return displayedListings.map((listing) => (
<ListingRow listing={listing} />
<ListingRow listing={listing} key={listing.id} />
));
}
displayedListings = filterListings(
@ -105,13 +105,14 @@ export class ListingDashboard extends Component {
(event.key === 'Enter' || event.key === ' ') && this.setState(state);
const filters = ['All', 'Active', 'Draft', 'Expired'];
const filterButtons = filters.map((f) => (
const filterButtons = filters.map((f, index) => (
<span
onClick={(event) => {
this.setState({ filter: event.target.textContent });
}}
className={`rounded-btn ${filter === f ? 'active' : ''}`}
role="button"
key={index}
onKeyPress={(event) =>
setStateOnKeyPress(event, { filter: event.target.textContent })
}
@ -146,6 +147,7 @@ export class ListingDashboard extends Component {
onClick={() => this.setState({ selectedListings: org.id })}
className={`rounded-btn ${selectedListings === org.id ? 'active' : ''}`}
role="button"
key={org.id}
tabIndex="0"
onKeyPress={(event) =>
setStateOnKeyPress(event, { selectedListings: org.id })

View file

@ -36,6 +36,7 @@ export class Onboarding extends Component {
prev={this.prevSlide}
slidesCount={this.slidesCount}
currentSlideIndex={index}
key={index}
communityConfig={props.communityConfig}
previousLocation={previousLocation}
/>

View file

@ -11,7 +11,11 @@ const orgOptions = (organizations, organizationId, emptyLabel) => {
</option>
);
}
return <option value={organization.id}>{organization.name}</option>;
return (
<option key={organization.id} value={organization.id}>
{organization.name}
</option>
);
});
const nullOrgOption =
organizationId === null ? (

View file

@ -43,7 +43,7 @@ const FeedLoading = () => (
const PodcastEpisodes = ({ episodes }) => (
<TodaysPodcasts>
{episodes.map((episode) => (
<PodcastEpisode episode={episode} />
<PodcastEpisode episode={episode} key={episode.podcast.id} />
))}
</TodaysPodcasts>
);
@ -106,6 +106,7 @@ export const renderFeed = (timeFrame) => {
{(subStories || []).map((story) => (
<Article
{...commonProps}
key={story.id}
article={story}
feedStyle={feedStyle}
isBookmarked={bookmarkedFeedItems.has(story.id)}

View file

@ -4,6 +4,7 @@ import PropTypes from 'prop-types';
export const PodcastFeed = ({ podcastItems }) => {
const podcastItemDivs = podcastItems.map((ep) => (
<a
key={ep.podcast.id}
className="individual-podcast-link"
href={`/${ep.podcast.slug}/${ep.slug}`}
>

View file

@ -27,7 +27,7 @@ const READING_LIST_PATH = '/readinglist';
function ItemList({ items, archiveButtonLabel, toggleArchiveStatus }) {
return items.map((item) => {
return (
<ItemListItem item={item}>
<ItemListItem item={item} key={item.id}>
<ItemListItemArchiveButton
text={archiveButtonLabel}
onClick={(e) => toggleArchiveStatus(e, item)}

View file

@ -113,7 +113,7 @@
"cypress": "^6.9.1",
"cypress-file-upload": "^5.0.6",
"eslint": "^7.25.0",
"eslint-config-preact": "^1.1.3",
"eslint-config-preact": "^1.1.4",
"eslint-config-prettier": "^8.3.0",
"eslint-import-resolver-webpack": "^0.13.0",
"eslint-plugin-babel": "^5.3.1",

View file

@ -8633,10 +8633,10 @@ escodegen@^2.0.0:
optionalDependencies:
source-map "~0.6.1"
eslint-config-preact@^1.1.3:
version "1.1.3"
resolved "https://registry.yarnpkg.com/eslint-config-preact/-/eslint-config-preact-1.1.3.tgz#b12fa13a57923f6c5658d300ed8d8be3aa467b14"
integrity sha512-AU90nXiNv3P1kA10eBJkv8TB6dd81OsT4UyM5fG6Ie8bxQGinE/6XR7LMxylvk3fusK5xAxDET4bIHPT6S5Hvw==
eslint-config-preact@^1.1.4:
version "1.1.4"
resolved "https://registry.yarnpkg.com/eslint-config-preact/-/eslint-config-preact-1.1.4.tgz#1b80394beb00e90391d23d132a8e1048f81ecfe8"
integrity sha512-j00/BpjPpVoaX8UTpXFPAsfBIzuwJX+sBvgPFyb53Lqi31fM0Oiq516qYXRyaZ7q1BRCjO8s67NCLal6v/Z8Lg==
dependencies:
babel-eslint "^10.0.1"
eslint-plugin-compat "^3.5.1"