1 Star 0 Fork 0

洛城赋/esy-ui-docs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
eslint.config.js 1.23 KB
一键复制 编辑 原始数据 按行查看 历史
洛城赋 提交于 7个月前 . init: 文档项目初始化
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"
}
}
}
]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/luocheng-fu/esy-ui-docs.git
git@gitee.com:luocheng-fu/esy-ui-docs.git
luocheng-fu
esy-ui-docs
esy-ui-docs
master

搜索帮助