2 * @fileoverview Rule to flag use of ternary operators.
3 * @author Ian Christian Myers
8 //------------------------------------------------------------------------------
10 //------------------------------------------------------------------------------
17 description: "disallow ternary operators",
18 category: "Stylistic Issues",
20 url: "https://eslint.org/docs/rules/no-ternary"
26 noTernaryOperator: "Ternary operator used."
34 ConditionalExpression(node) {
35 context.report({ node, messageId: "noTernaryOperator" });