UNPKG

eslint-plugin-improve-code

Version:

created in order to add rule: when arrow func one line breaks, convert it to return style

26 lines (19 loc) 857 B
/** * @fileoverview created in order to add rule: when arrow func one line breaks, convert it to return style * @author Pavel Ravits */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ // const requireIndex = require("requireindex"); //------------------------------------------------------------------------------ // Plugin Definition //------------------------------------------------------------------------------ // import all rules in lib/rules // module.exports.rules = requireIndex(__dirname + "/rules"); const arrowBodyStyleImproved = require("./rules/arrow-body-style-improved"); // import all rules in lib/rules module.exports.rules = { "arrow-body-style-improved": arrowBodyStyleImproved, };