ESLint plugin
This project is maintained by iliubinskii
ESLint plugin / no-unnecessary-as-const
Disallows unnecessary “as const”.
module.exports = {
plugins: ["misc"],
rules: {
"misc/no-unnecessary-as-const": "error"
}
};
const x = {} as const;
const y: I = { value: 1 } as const;
const x = { value: 1 } as const;