ESLint plugin
This project is maintained by iliubinskii
ESLint plugin / typescript/no-inferrable-types
Reports inferrable types.
module.exports = {
plugins: ["misc"],
rules: {
"misc/typescript/no-inferrable-types": "error"
}
};
function f<T>() {
const x: T = {} as T;
}
function f<T>() {
const x = {} as T;
}