Sha256: 13832c680d78320572b598ca63213a72047f073c73908220b95e47aef790a9a2
Contents?: true
Size: 710 Bytes
Versions: 45
Compression:
Stored size: 710 Bytes
Contents
/** * @fileoverview Rule to flag use of ternary operators. * @author Ian Christian Myers */ "use strict"; //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ module.exports = { meta: { docs: { description: "disallow ternary operators", category: "Stylistic Issues", recommended: false }, schema: [] }, create: function(context) { return { ConditionalExpression: function(node) { context.report(node, "Ternary operator used."); } }; } };
Version data entries
45 entries across 45 versions & 2 rubygems