Loading...
Loading...
Compare original and translation side by side
npm info next version^16.0.0npm info next version^16.0.0| Priority | Category | Impact | Prefix | Rules |
|---|---|---|---|---|
| 1 | Project Setup | CRITICAL | | 6 |
| 2 | Dependencies | CRITICAL | | 1 |
| 3 | Routing | CRITICAL | | 17 |
| 4 | Data Fetching | CRITICAL | | 11 |
| 5 | Components | HIGH | | 9 |
| 6 | Environment Variables | HIGH | | 6 |
| 7 | Styling | HIGH | | 12 |
| 8 | Public Assets | MEDIUM | | 5 |
| 9 | Images | MEDIUM | | 8 |
| 10 | Fonts | MEDIUM | | 6 |
| 11 | SEO & Metadata | MEDIUM | | 9 |
| 12 | API Routes | MEDIUM | | 9 |
| 13 | State Management | MEDIUM | | 8 |
| 14 | Integrations | MEDIUM | | 1 |
| 15 | Testing | LOW | | 9 |
| 16 | Build & Deploy | LOW | | 7 |
| 17 | Common Gotchas | HIGH | | 24 |
| 优先级 | 分类 | 影响程度 | 前缀 | 规则数量 |
|---|---|---|---|---|
| 1 | 项目设置 | 关键 | | 6 |
| 2 | 依赖项 | 关键 | | 1 |
| 3 | 路由 | 关键 | | 17 |
| 4 | 数据获取 | 关键 | | 11 |
| 5 | 组件 | 高 | | 9 |
| 6 | 环境变量 | 高 | | 6 |
| 7 | 样式 | 高 | | 12 |
| 8 | 公共资源 | 中 | | 5 |
| 9 | 图片 | 中 | | 8 |
| 10 | 字体 | 中 | | 6 |
| 11 | SEO & 元数据 | 中 | | 9 |
| 12 | API 路由 | 中 | | 9 |
| 13 | 状态管理 | 中 | | 8 |
| 14 | 集成 | 中 | | 1 |
| 15 | 测试 | 低 | | 9 |
| 16 | 构建与部署 | 低 | | 7 |
| 17 | 常见陷阱 | 高 | | 24 |
setup-initial-structuresetup-package-jsonsetup-next-configsetup-typescriptsetup-eslintsetup-gitignoresetup-initial-structuresetup-package-jsonsetup-next-configsetup-typescriptsetup-eslintsetup-gitignoredeps-react19-compatibilitydeps-react19-compatibilityrouting-basic-pagesrouting-dynamic-routesrouting-catch-all-routesrouting-optional-catch-allrouting-route-groupsrouting-parallel-routesrouting-intercepting-routesrouting-link-componentrouting-programmatic-navigationrouting-use-paramsrouting-use-search-paramsrouting-nested-layoutsrouting-loading-statesrouting-error-boundariesrouting-not-foundrouting-hash-basedrouting-protected-routesrouting-basic-pagesrouting-dynamic-routesrouting-catch-all-routesrouting-optional-catch-allrouting-route-groupsrouting-parallel-routesrouting-intercepting-routesrouting-link-componentrouting-programmatic-navigationrouting-use-paramsrouting-use-search-paramsrouting-nested-layoutsrouting-loading-statesrouting-error-boundariesrouting-not-foundrouting-hash-basedrouting-protected-routesdata-useeffect-to-rscdata-useeffect-to-ssrdata-useeffect-to-ssgdata-client-fetchdata-server-actionsdata-revalidationdata-streamingdata-parallel-fetchingdata-sequential-fetchingdata-cachingdata-client-library-initdata-useeffect-to-rscdata-useeffect-to-ssrdata-useeffect-to-ssgdata-client-fetchdata-server-actionsdata-revalidationdata-streamingdata-parallel-fetchingdata-sequential-fetchingdata-cachingdata-client-library-initcomponents-use-clientcomponents-server-defaultcomponents-boundary-placementcomponents-compositioncomponents-interleavingcomponents-props-serializationcomponents-children-patterncomponents-context-providerscomponents-third-partycomponents-use-clientcomponents-server-defaultcomponents-boundary-placementcomponents-compositioncomponents-interleavingcomponents-props-serializationcomponents-children-patterncomponents-context-providerscomponents-third-partyenv-prefix-changeenv-server-onlyenv-runtime-configenv-local-filesenv-build-timeenv-validationenv-prefix-changeenv-server-onlyenv-runtime-configenv-local-filesenv-build-timeenv-validationstyling-global-cssstyling-css-modulesstyling-sassstyling-tailwindstyling-css-in-jsstyling-styled-componentsstyling-emotionstyling-component-stylesstyling-postcssstyling-scss-global-syntaxstyling-css-import-orderstyling-dark-mode-hydrationstyling-global-cssstyling-css-modulesstyling-sassstyling-tailwindstyling-css-in-jsstyling-styled-componentsstyling-emotionstyling-component-stylesstyling-postcssstyling-scss-global-syntaxstyling-css-import-orderstyling-dark-mode-hydrationassets-public-folderassets-static-importsassets-absolute-urlsassets-faviconassets-manifestassets-public-folderassets-static-importsassets-absolute-urlsassets-faviconassets-manifestimages-next-imageimages-required-dimensionsimages-fill-propimages-priorityimages-placeholderimages-remote-patternsimages-loaderimages-optimizationimages-next-imageimages-required-dimensionsimages-fill-propimages-priorityimages-placeholderimages-remote-patternsimages-loaderimages-optimizationfonts-next-fontfonts-google-fontsfonts-local-fontsfonts-variable-fontsfonts-font-displayfonts-preloadfonts-next-fontfonts-google-fontsfonts-local-fontsfonts-variable-fontsfonts-font-displayfonts-preloadseo-metadata-apiseo-dynamic-metadataseo-opengraphseo-twitter-cardsseo-json-ldseo-canonicalseo-robotsseo-sitemapseo-head-componentseo-metadata-apiseo-dynamic-metadataseo-opengraphseo-twitter-cardsseo-json-ldseo-canonicalseo-robotsseo-sitemapseo-head-componentapi-route-handlersapi-http-methodsapi-request-bodyapi-query-paramsapi-headers-cookiesapi-response-typesapi-middlewareapi-corsapi-rate-limitingapi-route-handlersapi-http-methodsapi-request-bodyapi-query-paramsapi-headers-cookiesapi-response-typesapi-middlewareapi-corsapi-rate-limitingstate-context-clientstate-zustandstate-reduxstate-jotaistate-recoilstate-url-statestate-server-statestate-persistencestate-context-clientstate-zustandstate-reduxstate-jotaistate-recoilstate-url-statestate-server-statestate-persistenceintegrations-sentryintegrations-sentrytesting-jest-configtesting-react-testing-librarytesting-server-componentstesting-client-componentstesting-async-componentstesting-mockingtesting-e2e-cypresstesting-e2e-playwrighttesting-api-routestesting-jest-configtesting-react-testing-librarytesting-server-componentstesting-client-componentstesting-async-componentstesting-mockingtesting-e2e-cypresstesting-e2e-playwrighttesting-api-routesbuild-scriptsbuild-outputbuild-standalonebuild-static-exportbuild-bundle-analysisbuild-vercelbuild-dockerbuild-scriptsbuild-outputbuild-standalonebuild-static-exportbuild-bundle-analysisbuild-vercelbuild-dockergotchas-window-undefinedgotchas-hydration-mismatchgotchas-use-effect-timinggotchas-router-readygotchas-dynamic-importsgotchas-api-routes-edgegotchas-middlewaregotchas-static-generationgotchas-redirectgotchas-headersgotchas-cookiesgotchas-turbopackgotchas-empty-modulesgotchas-nullish-coalescinggotchas-react19-class-componentsgotchas-react19-ref-propgotchas-websocket-optional-depsgotchas-auth-race-conditionsgotchas-auth-state-gatinggotchas-configuration-idempotencygotchas-hydration-nested-interactivegotchas-router-push-timinggotchas-infinite-rerendergotchas-provider-hierarchygotchas-window-undefinedgotchas-hydration-mismatchgotchas-use-effect-timinggotchas-router-readygotchas-dynamic-importsgotchas-api-routes-edgegotchas-middlewaregotchas-static-generationgotchas-redirectgotchas-headersgotchas-cookiesgotchas-turbopackgotchas-empty-modulesgotchas-nullish-coalescinggotchas-react19-class-componentsgotchas-react19-ref-propgotchas-websocket-optional-depsgotchas-auth-race-conditionsgotchas-auth-state-gatinggotchas-configuration-idempotencygotchas-hydration-nested-interactivegotchas-router-push-timinggotchas-infinite-rerendergotchas-provider-hierarchyundefinedundefined
**Scan Results to Rule Mapping:**
| Scan Result | Rules to Read |
| ------------------------------- | ------------------------------------------------------ |
| socket.io or ws in package.json | `gotchas-websocket-optional-deps`, `setup-next-config` |
| `:export` in SCSS files | `gotchas-turbopack` |
| `ReactComponent` SVG imports | `assets-static-imports` |
| `REACT_APP_` variables found | `env-prefix-change` |
| `extraReducers:` found | `state-redux` (RTK v2 builder callback required) |
| `/app/` paths in navigation | `routing-route-groups` (update paths for route groups) |
**扫描结果与规则映射:**
| 扫描结果 | 需参考的规则 |
| ------------------------------- | ------------------------------------------------------ |
| package.json中存在socket.io或ws | `gotchas-websocket-optional-deps`, `setup-next-config` |
| SCSS文件中存在`:export` | `gotchas-turbopack` |
| SVG使用ReactComponent导入 | `assets-static-imports` |
| 发现`REACT_APP_`开头的变量 | `env-prefix-change` |
| 发现`extraReducers:`写法 | `state-redux`(RTK v2需使用构建器回调) |
| 导航中存在`/app/`路径 | `routing-route-groups`(更新路由组对应的路径) |rules/setup-initial-structure.md
rules/routing-basic-pages.md
rules/data-useeffect-to-rsc.mdrules/setup-initial-structure.md
rules/routing-basic-pages.md
rules/data-useeffect-to-rsc.mdnpm run devnpm run buildnpm start#room=abc,key=xyznpm run devnpm run buildnpm start#room=abc,key=xyz