jsdoc-75lb
Version:
An API documentation generator for JavaScript.
25 lines (16 loc) • 506 B
JavaScript
/**
* @fileoverview Rule to flag use of ternary operators.
* @author Ian Christian Myers
*/
;
//------------------------------------------------------------------------------
// Rule Definition
//------------------------------------------------------------------------------
module.exports = function(context) {
return {
"ConditionalExpression": function(node) {
context.report(node, "Ternary operator used.");
}
};
};
module.exports.schema = [];