打包eslint冲突处理

This commit is contained in:
tangly1024.com
2024-11-13 17:03:19 +08:00
parent 0f9fd58e01
commit fc7d86380c
3 changed files with 5 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ module.exports = {
'plugin:react/jsx-runtime',
'plugin:react/recommended',
'plugin:@next/next/recommended',
'standard',
'next',
'prettier',
'plugin:@typescript-eslint/recommended', // 添加 TypeScript 推荐规则
'plugin:@typescript-eslint/recommended-requiring-type-checking' // 添加需要类型检查的规则

View File

@@ -228,4 +228,6 @@ const nextConfig = {
}
}
module.exports = withBundleAnalyzer(nextConfig)
module.exports = process.env.ANALYZE
? withBundleAnalyzer(nextConfig)
: nextConfig

View File

@@ -52,14 +52,12 @@
"@waline/client": "^2.5.1",
"autoprefixer": "^10.4.13",
"cross-env": "^7.0.3",
"eslint": "^8.56.0",
"eslint": "^8.57.1",
"eslint-config-next": "^13.1.1",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard": "^16.0.2",
"eslint-plugin-import": "^2.23.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-react": "^7.34.3",
"eslint-plugin-react-hooks": "^4.6.2",
"next-sitemap": "^1.6.203",