Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

[Code Quality] Execute Prettier for Code Formatting #4

@Saumya40-codes

Description

@Saumya40-codes

Ensure consistent code formatting across the repository by setting up and executing Prettier.

Approach:

  • Install Prettier as a dev dependency. Configure Prettier with a .prettierrc file.

    npm install --save-dev prettier
    
  • Create a file named .prettierrc in root path

    • A very minimalistic configuration we can go with is the following (i.e. the content of .prettierrc file)
      {
      "tabWidth": 2
      }
      
  • Format all existing codebase files.

    • Run:
      npx prettier --write .
      

This will make all the files we have follow a standard and appropriate indentation

Learn more about prettier from here

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestgood-first-issuepriority: highNeeds to be solved, in some case should be solved first for other issue to move forwardsize: small

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions