]>
git.proxmox.com Git - pve-eslint.git/blob - eslint/lib/rules/no-ternary.js
b0dc626832bc2e3a7d83ad1271d0d75e7be21c41
2 * @fileoverview Rule to flag use of ternary operators.
3 * @author Ian Christian Myers
8 //------------------------------------------------------------------------------
10 //------------------------------------------------------------------------------
12 /** @type {import('../shared/types').Rule} */
18 description
: "disallow ternary operators",
20 url
: "https://eslint.org/docs/rules/no-ternary"
26 noTernaryOperator
: "Ternary operator used."
34 ConditionalExpression(node
) {
35 context
.report({ node
, messageId
: "noTernaryOperator" });