TypeScript-friendly rewrite of eslint-plugin-unicorn, uses type-aware linting to reduce false positives.
$ npm install -D eslint-plugin-pegasus
$ yarn add -D eslint-plugin-pegasus
$ pnpm add -D eslint-plugin-pegasus
π§ Automatically fixable by the --fix
CLI option.
π Requires type information.
Name | Description | π§ | π |
---|---|---|---|
prefer-array-flat-map | Prefer .flatMap(β¦) over .map(β¦).flat() . |
π§ | π |