Description
This issue tracks fixing TypeScript ESLint errors related to @typescript-eslint/no-explicit-any in the metamask-design-system repository. Temporary ESLint disable comments will be added to suppress these errors, but they need to be removed, and the underlying issues resolved.


Technical Details
- Remove ESLint
@typescript-eslint/no-explicit-any disable comments from the affected files.
- Replace
any types with appropriate, specific types.
- Run
yarn lint to verify that no new linting errors are introduced.
Affected Files
packages/design-tokens/src/js/themes/darkTheme/colors.test.ts: Lines 19, 20, 21, and 55.
packages/design-tokens/src/js/themes/lightTheme/colors.test.ts: Lines 19, 20, 21, and 55.
packages/design-tokens/src/js/typography/typography.test.ts: Line 40.
packages/design-tokens/stories/test-utils/getJSColors.ts: Line 9.
packages/design-tokens/stories/test-utils/useJsonColor.ts: Line 50.
Acceptance Criteria
- ESLint disable comments are removed from all affected files.
- Specific and appropriate types replace
any in the identified lines.
- Running
yarn lint passes without errors.
References
Description
This issue tracks fixing TypeScript ESLint errors related to
@typescript-eslint/no-explicit-anyin themetamask-design-systemrepository. Temporary ESLint disable comments will be added to suppress these errors, but they need to be removed, and the underlying issues resolved.Technical Details
@typescript-eslint/no-explicit-anydisable comments from the affected files.anytypes with appropriate, specific types.yarn lintto verify that no new linting errors are introduced.Affected Files
packages/design-tokens/src/js/themes/darkTheme/colors.test.ts: Lines 19, 20, 21, and 55.packages/design-tokens/src/js/themes/lightTheme/colors.test.ts: Lines 19, 20, 21, and 55.packages/design-tokens/src/js/typography/typography.test.ts: Line 40.packages/design-tokens/stories/test-utils/getJSColors.ts: Line 9.packages/design-tokens/stories/test-utils/useJsonColor.ts: Line 50.Acceptance Criteria
anyin the identified lines.yarn lintpasses without errors.References
no-explicit-any