Skip to content

Commit

Permalink
Update React eslint plugins
Browse files Browse the repository at this point in the history
There are some fixes for
ESLint 9 between the version
currently used and these versions,
so upgrade them now since everything
still works with the more recent
versions.
  • Loading branch information
pjonsson committed Feb 12, 2025
1 parent 85c8cd9 commit 629c352
Show file tree
Hide file tree
Showing 5 changed files with 908 additions and 82 deletions.
1 change: 1 addition & 0 deletions lib/ReactViews/Map/Panels/DropdownPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ const DropdownPanel = createReactClass({
ref={
this.props.btnRef || ((element) => (this.buttonElement = element))
}
// eslint-disable-next-line react/no-unknown-property
isOpen={this.isOpen()}
css={`
${(p) =>
Expand Down
1 change: 1 addition & 0 deletions lib/ReactViews/Map/Panels/InnerPanel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ const InnerPanel = createReactClass({
onClick={this.forceClose}
title={t("general.close")}
aria-label={t("general.close")}
// eslint-disable-next-line react/no-unknown-property
showDropdownAsModal={this.props.showDropdownAsModal}
css={`
svg {
Expand Down
1 change: 1 addition & 0 deletions lib/ReactViews/Notification/NotificationWindow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ const NotificationWindow = createReactClass({
<div className={classNames(Styles.wrapper, `${type}`)}>
<div
className={Styles.notification}
// eslint-disable-next-line react/no-unknown-property
isStory={isStory}
css={`
background: ${(p) =>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@
"bufferutil": "^4.0.8",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react": "^7.19.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react": "^7.37.4",
"eslint-plugin-react-hooks": "^5.1.0",
"fast-glob": "^3.3.2",
"fetch-mock": "^11.1.5",
"fork-ts-checker-notifier-webpack-plugin": "^6.0.0",
Expand Down
Loading

0 comments on commit 629c352

Please sign in to comment.