UNPKG

eslint-plugin-magic-variables

Version:

Prevent variable names that are numeric, or are the word form of a number from being used. i.e. FIFTY_TWO is not a valid variable name.

23 lines (14 loc) 656 B
/** * @fileoverview prevent variables that are the number representation of a magic number from being used * @author Chris Banks */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ const requireIndex = require("requireindex"); //------------------------------------------------------------------------------ // Plugin Definition //------------------------------------------------------------------------------ // import all rules in lib/rules module.exports.rules = requireIndex(__dirname + "/rules");