UNPKG

@putout/plugin-apply-flat-map

Version:
6 lines (4 loc) 159 B
export const report = () => `Use '.flatMap()' instead of '.map().flat()'`; export const replace = () => ({ '__a.map(__b).flat()': '__a.flatMap(__b)', });