Skip to content

Instantly share code, notes, and snippets.

View milichev's full-sized avatar

Vadym Milichev milichev

View GitHub Profile
@milichev
milichev / eslint-ignore.js
Last active January 24, 2022 10:59
suppress react-hooks eslint warnings
/**
* Accepts eslint `stdout` and processes all error messages related to React Hooks, if any.
*
* Essentially, the "fix" is only about adding a respective `eslint-disable-line` comments to mute the error unless it is addressed appropriately.
*
* Requires the following modules available:
* - lodash
*
* Usage:
*