eslint-plugin-misc

ESLint plugin

This project is maintained by iliubinskii

typescript/no-boolean-literal-type

ESLint plugin / typescript/no-boolean-literal-type

Disallows boolean literal type.

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

Examples of incorrect code

interface I {
  x?: true;
  y?: false;
}

Examples of correct code

interface I {
  x?: boolean;
}