eslint-plugin-misc

ESLint plugin

This project is maintained by iliubinskii

typescript/no-complex-declarator-type

ESLint plugin / typescript/no-complex-declarator-type

Disallow complex declarator types.

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

Examples of incorrect code

const x = { value: 1 };

Examples of correct code

const x = { value: 1 } as const;

const y: object = { value: 1 };