Closed
Description
Basically this is the export version of this proposal which has now been implemented:
#2200
Proposal
{
"rules": {
"@typescript-eslint/prefer-export-type": ["error"]
}
}
// your repro code case
type Foo = string;
type Bar = number;
function Component() {
// ...
}
export {.Component }
// No error
export type {.Foo }
// Error
export { Bar }
This is useful for having alongside import/exports-last
rule: https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/exports-last.md