Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 379 Bytes

pointfree.md

File metadata and controls

20 lines (14 loc) · 379 Bytes

Prefer pointfree functions (pointfree)

Rule Details

This rule enforces a point-free style, when possible.

Examples of incorrect code for this rule:

const f = x => g(x)
const f = x => g(y)(x)

Examples of correct code for this rule:

const f = g
const f = x => g(x)(y)
const f = x => g(x, 1)