Cloudinary React Image to Blog AI
1.0.0
เทมเพลตนี้มีการตั้งค่าขั้นต่ำเพื่อให้ React ทำงานใน Vite ด้วย HMR และกฎ ESLint บางอย่าง
ปัจจุบันมีปลั๊กอินอย่างเป็นทางการสองตัวให้เลือก:
หากคุณกำลังพัฒนาแอปพลิเคชันที่ใช้งานจริง เราขอแนะนำให้อัปเดตการกำหนดค่าเพื่อเปิดใช้งานกฎ Lint ที่ทราบประเภท:
parserOptions
ระดับบนสุดดังนี้: export default {
// other rules...
parserOptions : {
ecmaVersion : 'latest' ,
sourceType : 'module' ,
project : [ './tsconfig.json' , './tsconfig.node.json' ] ,
tsconfigRootDir : __dirname ,
} ,
}
plugin:@typescript-eslint/recommended
เป็น plugin:@typescript-eslint/recommended-type-checked
หรือ plugin:@typescript-eslint/strict-type-checked
plugin:@typescript-eslint/stylistic-type-checked
plugin:react/recommended
& plugin:react/jsx-runtime
ลงในรายการ extends