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
type-checkedplugin:@typescript-eslint/stylistic-type-checked
plugin:react/recommended
和plugin:react/jsx-runtime
extends
清單中