eslint-plugin-use-effect-no-deps
Version:
Warns a user when the react hook useEffect is called with no dependency array
23 lines (14 loc) • 644 B
JavaScript
/**
* @fileoverview Warns a user when the react hook useEffect is called with no dependency array
* @author Alex Henry
*/
;
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
var requireIndex = require("requireindex");
//------------------------------------------------------------------------------
// Plugin Definition
//------------------------------------------------------------------------------
// import all rules in lib/rules
module.exports.rules = requireIndex(__dirname + "/rules");