eslint-plugin-misc

ESLint plugin

This project is maintained by iliubinskii

typescript/no-never

ESLint plugin / typescript/no-never

Disallow “never” type.

module.exports = {
  plugins: ["misc"],
  rules: {
    "misc/typescript/no-never": "error"
  }
};

Examples of incorrect code

function f(value: "a" & "b") {}

Examples of correct code

function f(value: "a" | "b") {}