ESLint箭头主体样式在array.map上

时间:2019-05-10 09:16:03

标签: javascript eslint

const columns = Object.keys(data[0]).map((key) => {
      return {
        title: key,
        field: key,
      };
    });


Unexpected block statement surrounding arrow body; parenthesize the returned value and move it immediately after the `=>`  arrow-body-style

我到底应该怎么重写代码?

0 个答案:

没有答案
相关问题