Skip to content

Feature Request: Add Prettier, ESLint, and Formatter Configuration #5

@abdullah4tech

Description

@abdullah4tech

Description

To improve code consistency and maintainability, we need to integrate Prettier for automatic formatting and ESLint for enforcing code quality in the backend-starter-cli. This will ensure that all contributors follow a consistent coding style.

Tasks:

  • Install Prettier and configure it (.prettierrc).
  • Install ESLint and set up a basic configuration (.eslintrc).
  • Ensure compatibility with the project’s current stack.
  • Add an npm script for formatting ("format": "prettier --write .").
  • Add an npm script for linting ("lint": "eslint . --fix").
  • Update the README with instructions on using Prettier and ESLint.

Expected Outcome

  • Running npm run format should format all code files.
  • Running npm run lint should flag and fix linting issues.
  • Contributors follow a uniform code style.

Additional Context

This will make the development workflow cleaner and more standardized.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions