Skip to content

chore: Typescript Cleanup Part 2 of 3 for order, x:left, pageTitle, requirement, titleSize="title & defaultViewport: null#7280

Merged
v-prachin merged 8 commits intomicrosoft:mainfrom
v-prachin:typescript-cleanup-part3
Apr 8, 2024
Merged

chore: Typescript Cleanup Part 2 of 3 for order, x:left, pageTitle, requirement, titleSize="title & defaultViewport: null#7280
v-prachin merged 8 commits intomicrosoft:mainfrom
v-prachin:typescript-cleanup-part3

Conversation

@v-prachin
Copy link
Copy Markdown
Contributor

@v-prachin v-prachin commented Mar 19, 2024

Details

Typescript Cleanup Part 2 of 3
We have total 140 errors in 104 files. Thus, targeting each error and fixing it.

Motivation

Errors observed in below files observed after removing deprecated properties from tsconfig file:
1.order:0
src/issue-filing/services/null-issue-filing-service/null-issue-filing-service.tsx
Removed this property as NullIssueFilingService has this order property which seems to be not consumed, as per my understanding. As checked for the references order: and couldn't observe anything relevant to NullIssueFilingService.

2.titleSize="title"
src/reports/components/report-sections/combined-report-rules-only-sections.tsx (1)
Removed this property as CombinedReportResultSectionTitle in other files only has three entities in it, outcomeCount,
outcomeType, title. That file is combined-report-failed-section.tsx

3.defaultViewport: null
src/tests/end-to-end/common/browser-factory.ts (1)
Removed this property as defaultViewport has only one reference in the entire solution and that is in brower-factory.ts

4.requirement: requirementKey
src/tests/unit/tests/background/stores/assessment-store.test.ts (3)
Added appropriate interface for requirement & selector properties.

5.pageTitle
src/tests/unit/tests/reports/components/fast-pass-report-automated-checks-results.test.tsx (1)
src/tests/unit/tests/reports/components/fast-pass-report.test.tsx (1)
Removed this property as it was not needed in the test file.

6.x:left
src/injected/visualization/drawer-utils.ts (1)
Removed this property as BoundingRect already has left and top properties defined.

Thus, total number of errors covered as part of this user story: 9

Context

Pull request checklist

  • Addresses an existing issue: #(chore: Remove deprecated TypeScript options #6611)
  • Ran yarn fastpass
  • Added/updated relevant unit test(s) (and ran yarn test)
  • Verified code coverage for the changes made. Check coverage report at: <rootDir>/test-results/unit/coverage
  • PR title AND final merge commit title both start with a semantic tag (fix:, chore:, feat(feature-name):, refactor:). See CONTRIBUTING.md.
  • [n/a] (UI changes only) Added screenshots/GIFs to description above
  • [n/a] (UI changes only) Verified usability with NVDA/JAWS

@v-prachin v-prachin changed the title chore: Typescript Cleanup Part 2 of 3 for deps:null, pageTitle, requirement, titleSize="title & defaultViewport: null chore: Typescript Cleanup Part 2 of 3 for order, x:left, pageTitle, requirement, titleSize="title & defaultViewport: null Mar 20, 2024
@v-viyada v-viyada marked this pull request as ready for review April 3, 2024 13:36
@v-viyada v-viyada requested a review from a team as a code owner April 3, 2024 13:36
@v-prachin v-prachin merged commit 9ac602f into microsoft:main Apr 8, 2024
@v-prachin v-prachin deleted the typescript-cleanup-part3 branch May 9, 2024 08:27
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