Disallow imports from the fp-ts/lib
module. fp-ts
exports modules directly
without the lib
prefix, which improves ergonomics and tree-shakeability.
Note: this change was introduced in fp-ts 2.8.0. If you are using an older version, do not enable this rule
🔧 Fixable: This rule is automatically fixable using the --fix
flag on the
command line.
Example of incorrect code for this rule:
import { Option } from "fp-ts/lib/Option";
Example of correct code for this rule:
import { Option } from "fp-ts/Option";
import { option } from "fp-ts";