You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rather than use the proptypes-from-ts-props plugin to remove type exports from es build output, we should move towards using the type indicator syntax and upgrade any babel tooling to take advantage.
I'm leaning towards the first since we already have @typescript-eslint listed as a devDependency. I'll spike out an investigation into adding the rule and running --fix on it and get you a working draft PR @thompsongl
Ah neat, I had assumed based on your above example you would want fixMixedExportsWithInlineTypeSpecifier: false which disallows inline types, e.g. export { x, type T };
The above draft PR adds export type fixing, but does not do any extra work around removing proptypes-from-ts-props or updating our compile scripts - I wasn't sure what that entailed and didn't want to fuck it up, so was hoping you could carry the PR the rest of the way 🤞
Activity
cee-chen commentedon Jan 24, 2022
Options for automatic
eslintcatching/fixing:I'm leaning towards the first since we already have
@typescript-eslintlisted as a devDependency. I'll spike out an investigation into adding the rule and running--fixon it and get you a working draft PR @thompsonglthompsongl commentedon Jan 24, 2022
@constancecchen Agreed. That's what Kibana uses: https://github.com/elastic/kibana/blob/23739f5f4d1d763de8a5e1eafc4bd4b957bca8f2/src/dev/eslint/types.eslint.config.template.js#L25
cee-chen commentedon Jan 24, 2022
Ah neat, I had assumed based on your above example you would want
fixMixedExportsWithInlineTypeSpecifier: falsewhich disallows inline types, e.g.export { x, type T };Any preference?
cee-chen commentedon Jan 24, 2022
#5554
The above draft PR adds
export typefixing, but does not do any extra work around removingproptypes-from-ts-propsor updating our compile scripts - I wasn't sure what that entailed and didn't want to fuck it up, so was hoping you could carry the PR the rest of the way 🤞