I was wondering if eslint rules for react (react/display-name) is working for anyone?
Currently, on my code, it doesn't show any warning if I do not put the displayName.
I am expecting if I don't put displayName it will throw an eslint warning message.
e.g.
Component.jsx
import React from 'react';
const Component = () => {
return (
<h1>Hello World</h1>
);
};
export default Component;
.eslintrc
{
. . .
"rules": {
"react/display-name": [2],
}
. . .
}
I am expecting there should be a lint warn, but nothing came up.
Is there any configuration that I have missed?