mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-13 23:16:47 +00:00
打包eslint冲突处理
This commit is contained in:
@@ -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' // 添加需要类型检查的规则
|
||||
|
||||
@@ -228,4 +228,6 @@ const nextConfig = {
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = withBundleAnalyzer(nextConfig)
|
||||
module.exports = process.env.ANALYZE
|
||||
? withBundleAnalyzer(nextConfig)
|
||||
: nextConfig
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user