Require all Prop interfaces to be explicitly named, prefer interface over type

- Also export all prop types

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2022-02-18 10:53:15 -05:00
1 parent 625b00c247
commit a8c597928a
197 files changed
+630 -634

No files matched your search

@@ -17,13 +17,13 @@ const {
},
} = Renderer;
interface Props {
export interface MetricsSettingsProps {
cluster: Common.Catalog.KubernetesCluster;
}
@observer
export class MetricsSettings extends React.Component<Props> {
constructor(props: Props) {
export class MetricsSettings extends React.Component<MetricsSettingsProps> {
constructor(props: MetricsSettingsProps) {
super(props);
makeObservable(this);
}