Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop Node Script to Identify Deprecated React Component Usage #1

Open
georgewrmarshall opened this issue Apr 4, 2024 · 0 comments
Assignees

Comments

@georgewrmarshall
Copy link
Owner

Description

To maintain a modern and efficient codebase, it's crucial to minimize the use of deprecated React components. This issue proposes the creation of a Node script that scans our .js and .tsx files to identify instances of deprecated React components. This script will aid in tracking and prioritizing refactoring efforts to align our codebase more closely with current best practices and our design system.

Technical Details

  • Objective: Develop a Node script to search through the codebase's .js and .tsx files for a predefined list of deprecated React components.
  • Implementation Steps:
    1. Define a list of deprecated React components to be identified by the script.
    2. Use the fs and glob modules to read and scan files within the specified directories, excluding test files and other irrelevant directories.
    3. Parse the content of each file to identify instances of the deprecated components.
    4. Generate a report summarizing the findings, including the file paths and the number of instances for each deprecated component.
  • Expected Outcome: A comprehensive report detailing the usage of deprecated React components across the codebase, enabling targeted refactoring efforts.

Acceptance Criteria

  • A Node script is successfully created and capable of identifying specified deprecated React components within .js and .tsx files.
  • The script efficiently excludes test files and other specified directories from its search.
  • The generated report accurately reflects the instances and locations of deprecated component usage.
  • Documentation is provided alongside the script, detailing its purpose, usage, and how to interpret the results.

Additional Notes

This initiative is crucial for maintaining the health and future-proofing of our codebase. By systematically identifying deprecated component usage, we can ensure our development efforts are aligned with the latest standards and reduce technical debt.

@georgewrmarshall georgewrmarshall self-assigned this Apr 4, 2024
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

No branches or pull requests

1 participant