Cấu hình và Chuẩn hóa Dự án Frontend

1. Chuẩn hóa mã nguồn 1.1. Cấu hình EditorConfig EditorConfig giúp duy trì phong cách mã hóa thống nhất giữa các IDE khác nhau. # http://editorconfig.org root = true [*] charset = utf-8 indent_style = space indent_size = 2 end_of_line = lf trim_trailing_whitespace = true insert_final_newline = true [*.md] max_line_length = off trim_trailing_ ...

Đăng vào ngày 10 tháng 6 lúc 02:13

Cấu hình cơ bản cho dự án Vite + Vue 3 + TypeScript

1. Cấu hình啟 động project và tự động mở trình duyệt Trong file package.json: "scripts": { "dev": "vite --open", "build": "vue-tsc && vite build", "preview": "vite preview", "lint": "eslint src", "fix": "eslint src --fix", "format": "prettier --write \"./**/*.{html,vue,ts,json,md}\"", "lint: ...

Đăng vào ngày 4 tháng 6 lúc 05:22