ESLint plugin
This project is maintained by iliubinskii
ESLint plugin / typescript/no-complex-declarator-type
Requires either ‘as const’ or type definition complex declarators.
module.exports = {
plugins: ["misc"],
rules: {
"misc/typescript/no-complex-declarator-type": "error"
}
};
const x = { value: 1 };
const x = { value: 1 } as const;
const y: object = { value: 1 };