I am trying to fix this lint error at line const def = (props) => { in following sample code.
const propTypes = {
prop1: PropTypes.string,
prop2: PropTypes.string,
prop3: PropTypes.string,
prop4: PropTypes.string,
prop5: PropTypes.string,
}
const abc = (props) => {
some code here }
const def = (props) => {
<div>
<div className=" ..some classes..">{abc}</div>
<div className=" ..some classes..">{t('translation/something')}</div>
<div ...>
  <someComponent 
    do something
  />
if (some condition) {
do this
} else {
do that
}
</div>
};
Any idea why i am getting this lint error?
 
     
     
     
     
     
     
     
     
     
     
     
     
     
     
    