UNPKG

review-edit-auto

Version:

scan your project, only review edited code in given time-range automatic

13 lines (9 loc) 348 B
import {TABLE_HEAD} from '../constants'; import {ILintRes} from '../lint/types'; import genColorData from '../utils/genColorData'; const hanleResult = (target: ILintRes[], isExcel: boolean) => { const result = target.map((i: ILintRes) => genColorData(i, isExcel)); result.unshift(TABLE_HEAD); return result; }; export default hanleResult;