title: Expected an assignment or function call and instead saw an expression.eslintno-unused-expressions
body: <p>Hi I am using a ternary operator inside a function. But eslint throws error on this. Pls help me to fix this.</p>
  
  <pre><code>  const Test = (showBtn, bubbleId, latitude, longitude, zoom, drillLevel) =&gt; {
      setShowBtn(showBtn);
      drillLevel === 'area' ? getCitiesData(bubbleId) : getStatesData();
      setViewport({
        ...viewport,
        latitude,
        longitude,
        zoom,
      });
    };
  </code></pre>