UNPKG

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
/** * @fileoverview Warns a user when the react hook useEffect is called with no dependency array * @author Alex Henry */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ var requireIndex = require("requireindex"); //------------------------------------------------------------------------------ // Plugin Definition //------------------------------------------------------------------------------ // import all rules in lib/rules module.exports.rules = requireIndex(__dirname + "/rules");