Skip to content

MESSAGE_ID

The message id unicorn reports a ternary under when a logical operator could replace it.

Import:

import { MESSAGE_ID } from '@mnaoumov/typescript-dev-toolkit/linters/eslint-rules/prefer-logical-operator-over-ternary';

Signature:

const MESSAGE_ID: "prefer-logical-operator-over-ternary/error"

Type: “prefer-logical-operator-over-ternary/error”