Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Add an exception

Manav Rathic6fdd6352eef
diff --git a/web/packages/build-config/eslintrc-react.js b/web/packages/build-config/eslintrc-react.js
index b1582eddc3..571d37e622 100644
--- a/web/packages/build-config/eslintrc-react.js
+++ b/web/packages/build-config/eslintrc-react.js
@@ -8,7 +8,11 @@ module.exports = {
plugins: ["react-refresh"],
settings: { react: { version: "18.2" } },
rules: {
+ /* The rule is misguided - only the opener should be omitted, not the
+ referrer. */
"react/jsx-no-target-blank": ["warn", { allowReferrer: true }],
+ /* Otherwise we need to do unnecessary boilerplating when using memo. */
+ "react/display-name": "off",
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
diff --git a/web/packages/new/photos/components/Gallery/BarImpl.tsx b/web/packages/new/photos/components/Gallery/BarImpl.tsx
index ab30c8eb56..10f01c3226 100644
--- a/web/packages/new/photos/components/Gallery/BarImpl.tsx
+++ b/web/packages/new/photos/components/Gallery/BarImpl.tsx
@@ -423,7 +423,6 @@ const getItemKey = (index: number, data: ItemData) => {
}
};
-// eslint-disable-next-line react/display-name
const ListItem = memo((props: ListChildComponentProps<ItemData>) => {
const { data, index, style } = props;