Skip to content

Convert JS to TS#4

Merged
Hermesiss merged 23 commits into
developfrom
feature/ts
Jul 4, 2025
Merged

Convert JS to TS#4
Hermesiss merged 23 commits into
developfrom
feature/ts

Conversation

@Hermesiss

Copy link
Copy Markdown
Owner

No description provided.

@Hermesiss Hermesiss requested a review from Copilot July 4, 2025 05:06

This comment was marked as outdated.

@Hermesiss Hermesiss requested a review from Copilot July 4, 2025 05:34

This comment was marked as outdated.

@Hermesiss Hermesiss requested a review from Copilot July 4, 2025 05:44

This comment was marked as outdated.

@Hermesiss Hermesiss requested a review from Copilot July 4, 2025 06:13

This comment was marked as outdated.

@Hermesiss Hermesiss requested a review from Copilot July 4, 2025 06:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Convert the project’s JavaScript files to TypeScript, update configuration, and add typings across the renderer and main processes.

  • Remove legacy .js configs and introduce .ts equivalents (Vite, tsconfig).
  • Add defineProps/defineEmits generics and explicit return types to all Vue components.
  • Include new test coverage configuration and add unit tests for formatter and category-color utilities.

Reviewed Changes

Copilot reviewed 31 out of 37 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
vite.config.ts Replaced JS config with TS, added test settings
src/renderer/tsconfig.json Introduced TypeScript compiler options
src/renderer/utils Converted formatters and category-colors to TS
src/renderer/types Added developer-cleaner and common type definitions
src/renderer/components/**/*.vue Added <script setup lang="ts"> and types
src/renderer/components/**/tests Added tests for formatters and categoryColors
package.json / workflows / sonar files Updated build scripts, test workflows, coverage settings
Comments suppressed due to low confidence (1)

src/renderer/components/DeveloperCleaner/ResultsTable.vue:114

  • [nitpick] Returning an empty string for invalid dates may lead to blank UI. Consider returning a placeholder like "Unknown" or "Invalid Date" to provide clearer feedback.
    if (isNaN(date.getTime())) return ''

"@/*": ["./*"]
}
},
"include": ["**/*.ts", "**/*.d.ts", "**/*.vue", "../types/**/*.d.ts"],

Copilot AI Jul 4, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The include path "../types/**/*.d.ts" points outside the src/renderer directory and may not match your actual type definitions. Consider updating or removing it to ensure all TS files and declaration files within src/renderer are recognized correctly.

Suggested change
"include": ["**/*.ts", "**/*.d.ts", "**/*.vue", "../types/**/*.d.ts"],
"include": ["**/*.ts", "**/*.d.ts", "**/*.vue"],

Copilot uses AI. Check for mistakes.
@sonarqubecloud

sonarqubecloud Bot commented Jul 4, 2025

Copy link
Copy Markdown

@Hermesiss Hermesiss merged commit 300fe55 into develop Jul 4, 2025
5 checks passed
@Hermesiss Hermesiss deleted the feature/ts branch July 4, 2025 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants