]>
git.proxmox.com Git - pve-eslint.git/blob - eslint/lib/rules/no-ternary.js
8b2e10a34a4e5c40b1c538d0eefd90091c636bb5
2 * @fileoverview Rule to flag use of ternary operators.
3 * @author Ian Christian Myers
8 //------------------------------------------------------------------------------
10 //------------------------------------------------------------------------------
17 description
: "disallow ternary operators",
19 url
: "https://eslint.org/docs/rules/no-ternary"
25 noTernaryOperator
: "Ternary operator used."
33 ConditionalExpression(node
) {
34 context
.report({ node
, messageId
: "noTernaryOperator" });