codelambs
1.0.0
เทมเพลตนี้ให้การตั้งค่าน้อยที่สุดเพื่อตอบสนองการทำงานใน VITE กับ HMR และกฎ ESLINT บางอย่าง
ปัจจุบันมีปลั๊กอินอย่างเป็นทางการสองตัว:
หากคุณกำลังพัฒนาแอปพลิเคชันการผลิตเราขอแนะนำให้อัปเดตการกำหนดค่าเพื่อเปิดใช้งานประเภทกฎผ้าสำลีที่รับรู้ประเภท:
parserOptions ระดับบนสุดเช่นนี้: 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-checkedplugin:@typescript-eslint/stylistic-type-checkedplugin:react/recommended & plugin:react/jsx-runtime ไปยังรายการ extends