chore(frontend): comprehensive TypeScript quality improvements (#37625)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Evan Rusackas
2026-02-06 16:16:57 -05:00
committed by GitHub
parent e9ae212c1c
commit fc5506e466
441 changed files with 14136 additions and 9956 deletions

View File

@@ -17,7 +17,6 @@
* under the License.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { IconTooltip, List } from '@superset-ui/core/components';
import { nanoid } from 'nanoid';
import { t } from '@apache-superset/core';
@@ -58,21 +57,6 @@ interface CollectionControlProps {
theme: SupersetTheme;
}
const propTypes = {
name: PropTypes.string.isRequired,
label: PropTypes.string,
description: PropTypes.string,
placeholder: PropTypes.string,
addTooltip: PropTypes.string,
itemGenerator: PropTypes.func,
keyAccessor: PropTypes.func,
onChange: PropTypes.func,
value: PropTypes.oneOfType([PropTypes.array]),
isFloat: PropTypes.bool,
isInt: PropTypes.bool,
controlName: PropTypes.string.isRequired,
};
const defaultProps: Partial<CollectionControlProps> = {
label: null,
description: null,
@@ -95,8 +79,6 @@ const SortableDragger = SortableHandle(() => (
));
class CollectionControl extends Component<CollectionControlProps> {
static propTypes = propTypes;
static defaultProps = defaultProps;
constructor(props: CollectionControlProps) {