Add an exception

This commit is contained in:
Manav Rathi
2024-09-24 08:33:09 +05:30
parent bed57c083c
commit c6fdd6352e
2 changed files with 4 additions and 1 deletions

View File

@@ -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 },

View File

@@ -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;