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
列表中