PiedTeam / UniqloCloneTraining-FE-Project

0 stars 0 forks source link

Write code convention FE #1

Open minhhy2801 opened 3 months ago

minhhy2801 commented 3 months ago

Please help add your code convention of FE and BE side Here is an example in FE for you to have a look:

bentran1vn commented 3 months ago

[ UNIQLO ] FRONTEND - CODING CONVENTIONS

CODING RULE

1. Quy ước đặt tên:

2. Khai báo biến:

FOLDER DESCRIPTION

👉 UNIQLO Project
|
└───dist
└───node_modules
└───public
|   └───images
│       └───mainLayout
│           │ image1.png
│           │ image2.png
│
│       └───leaderLayout
│           │ image1.png
│           │ image2.png
└─── src
|    └───apis
|        └───auth.api.ts
|    └───components
|        └───Button
|            |  Button.tsx
|            |  index.ts
|
|        └───Footer
|    └───constant
|        |  httpStatus.ts
|        |  path.ts
|
|    └───context
|        |  app.context.tsx
|
|    └───layouts
|        └───MainLayout
|            |  MainLayout.tsx
|            |  index.ts
|
|        └───HeaderLayout
|
|    └───pages
|        └───Login
|            |  Login.tsx
|            |  index.ts
|
|        └───ProductList
|    └───types
|        |  auth.type.ts
|        |  user.type.ts
|
|    └───utils
|        │  auth.ts
|        │  http.ts
|
│    .editorconfig
│    .eslintignore
│    .eslintrc.cjs
│    .prettierignore
│    .prettierrc
│    package.json
│    vercel.json
│    .gitignore
│    README.md

1.dist:

2. src:

3.src/apis:

4.src/components:

5.src/components/component:

6.src/constants:

7.src/context:

8.src/layouts:

9.src/layouts/layout:

10.src/pages:

9.src/types:

10.src/utils: