Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-plugin-clean-codestyle

jsaguet433MIT1.1.0

Set of eslint rules to enforce clean codestyle

eslint, eslint-plugin, clean-codestyle, clean-code

readme

eslint-plugin-clean-codestyle

Installation

yarn add eslint-plugin-clean-codestyle -D

Rules

Rule name Description Recommended
no-accessor-recursion Forbids recursion in accessors :heavy_check_mark:
no-foreach-push Enforce using Array.prototype.map instead of Array.prototype.forEach and Array.prototype.push. :heavy_check_mark:
no-map-without-usage Prevents Array.prototype.map from being called and the results not used. :heavy_check_mark: