diff --git a/README.md b/README.md index 9c78efe44..b32f0684f 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ To get started with Sankitty, follow these steps: - `npm run dev`: Start the Next.js development server. - `npm run build`: Build the Next.js application for production. - `npm run start`: Start the Next.js application in production mode. -- `npx prettier . --write`: Format the codebase using Prettier to ensure consistent code style across the project. +- `npm run format`: Format the codebase using Prettier to ensure consistent code style across the project. - `npm run lint`: Lint the project using ESLint. ## Project Structure diff --git a/package.json b/package.json index cf1119089..6679ce209 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "build": "next build", "start": "next start", "lint": "eslint . --fix", + "format": "prettier . --write", "storybook": "storybook dev -p 6006", "build-storybook": "storybook build", "test-storybook": "test-storybook"