Add an exception
This commit is contained in:
@@ -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 },
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user