so1ve / eslint-plugin-pegasus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eslint-plugin-pegasus

NPM version

TypeScript-friendly rewrite of eslint-plugin-unicorn, uses type-aware linting to reduce false positives.

πŸ’Ž Features

πŸ“¦ Installation

$ npm install -D eslint-plugin-pegasus
$ yarn add -D eslint-plugin-pegasus
$ pnpm add -D eslint-plugin-pegasus

πŸ“š Available Rules

πŸ”§ Automatically fixable by the --fix CLI option.
πŸ’­ Requires type information.

Name Description πŸ”§ πŸ’­
prefer-array-flat-map Prefer .flatMap(…) over .map(…).flat(). πŸ”§ πŸ’­

πŸ“ License

MIT. Made with ❀️ by Ray

About

License:MIT License


Languages

Language:TypeScript 99.6%Language:JavaScript 0.4%