title: ESLint Prefer default export import/prefer-default-export
body: <p>Hi there I am struggling to understand / have this eslint error disappear with my React Project.</p>
  
  <p><code>Prefer default export  import/prefer-default-export</code></p>
  
  <p>Helpers.js error is pointing to:</p>
  
  <pre><code>export function getItems() {
    fetch('./data/data_arr.js')
    .then(results =&gt; results.json())
    .then(results =&gt; this.setState({ items: results }));
  }
  </code></pre>
  
  <p>import of function:</p>
  
  <p><code>import { getItems } from '../helpers/helpers';</code></p>
  
  <pre><code>componentDidMount() {
      getItems.call(this);
  }
  </code></pre>
  
  <p>I have tried to no avail:</p>
  
  <pre><code>"rules": {
       "import/prefer-default-export": off,
       ...
  }
  </code></pre>
  
  <p>Do I need to add "default" to the function? <code>export default function getItems() {...}</code></p>
  
  <p>Thank you</p>