代码拉取完成,页面将自动刷新
import globals from "globals"
import pluginJs from "@eslint/js"
import tseslint from "typescript-eslint"
import pluginReact from "eslint-plugin-react"
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended"
import reactHooks from "eslint-plugin-react-hooks"
import reactRefresh from "eslint-plugin-react-refresh"
export default [
{ ignores: ["dist", "node_modules", ".vscode", ".git", "ios", "android", "*.zip", "*.config.js", "*.yaml", "tsconfig.json"] },
{ files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"] },
{ languageOptions: { globals: globals.browser } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
pluginReact.configs.flat.recommended,
eslintPluginPrettierRecommended,
{
name: "react-eslint",
files: ["src/*.{js,jsx,ts,tsx"],
plugins: {
react: pluginReact,
"react-hooks": reactHooks,
"react-refresh": reactRefresh
},
languageOptions: {
...pluginReact.configs.recommended.languageOptions
},
rules: {
...pluginReact.configs.recommended.rules
}
},
{
settings: {
react: {
version: "detect"
}
}
}
]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。