{"id":107892,"date":"2026-09-20T15:48:59","date_gmt":"2026-09-20T07:48:59","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/107892.html"},"modified":"2026-09-20T15:48:59","modified_gmt":"2026-09-20T07:48:59","slug":"%e4%bb%8e-30-%e6%9d%a1-lint-%e8%ad%a6%e5%91%8a%e8%b0%88%e8%b5%b7%ef%bc%9ashadcn-%e6%97%b6%e4%bb%a3%e6%ba%90%e7%a0%81%e5%a4%8d%e5%88%b6%e5%9e%8b%e7%bb%84%e4%bb%b6%e5%ba%93%e7%9a%84","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/107892.html","title":{"rendered":"\u4ece 30+ \u6761 Lint \u8b66\u544a\u8c08\u8d77\uff1ashadcn \u65f6\u4ee3\u201c\u6e90\u7801\u590d\u5236\u578b\u7ec4\u4ef6\u5e93\u201d\u7684\u5de5\u7a0b\u5316\u56f0\u5883\u4e0e\u7834\u5c40"},"content":{"rendered":"<hr \/>\n<h3>1. \u5f15\u8a00&#xff1a;\u4e00\u573a\u610f\u6599\u4e4b\u5916\u7684\u201cLint \u544a\u8b66\u98ce\u66b4\u201d<\/h3>\n<p>\u968f\u7740 shadcn\/ui \u4ee5\u53ca\u4e00\u7cfb\u5217\u5fae\u52a8\u6548\u7ec4\u4ef6\u5e93&#xff08;\u5982 beUI&#xff09;\u7684\u6d41\u884c&#xff0c;\u201cCopy-Paste Component Registry&#xff08;\u6e90\u7801\u5206\u53d1\u578b\u7ec4\u4ef6\u5e93&#xff09;\u201d\u5df2\u7136\u6210\u4e3a\u73b0\u4ee3 React \u751f\u6001\u7684\u4e3b\u6d41\u8303\u5f0f\u3002\u5b83\u6253\u7834\u4e86\u4f20\u7edf npm \u5305\u201c\u9ed1\u76d2\u5b89\u88c5\u3001\u6837\u5f0f\u9b54\u6539\u56f0\u96be\u201d\u7684\u684e\u688f&#xff0c;\u8ba9\u5f00\u53d1\u8005\u901a\u8fc7 CLI \u76f4\u63a5\u628a\u539f\u59cb .tsx \u4ee3\u7801\u590d\u5236\u8fdb\u81ea\u5df1\u7684 src\/components\/ \u76ee\u5f55\u3002<\/p>\n<p>\u7136\u800c&#xff0c;\u5f53\u6211\u4eec\u5728\u4e00\u4e2a\u4e25\u82db\u7684\u73b0\u4ee3 Monorepo \u5de5\u7a0b\u4e2d&#xff08;\u91c7\u7528 Bun &#043; Oxlint \/ ESLint &#043; TypeScript Strict Mode&#xff09;\u8fd0\u884c lint \u65f6&#xff0c;\u521a\u590d\u5236\u8fdb\u6765\u7684\u51e0\u4e2a\u52a8\u6548\u7ec4\u4ef6\u77ac\u95f4\u5f15\u53d1\u4e86 30 \u591a\u6761\u8b66\u544a\u548c\u9519\u8bef&#xff1a;<\/p>\n<ul>\n<li>react(set-state-in-effect): Calling setState synchronously within an effect\u2026<\/li>\n<li>react(immutability): This value cannot be modified\u2026<\/li>\n<li>react(refs): Cannot access refs during render\u2026<\/li>\n<li>react-hooks(exhaustive-deps): The ref\u2019s value .current is accessed directly in the cleanup function\u2026<\/li>\n<li>react(only-export-components): Fast refresh only works when a file only exports components\u2026<\/li>\n<\/ul>\n<p>\u770b\u7740\u6ee1\u5c4f\u7684\u544a\u8b66&#xff0c;\u4e00\u4e2a\u76f4\u51fb\u7075\u9b42\u7684\u95ee\u9898\u968f\u4e4b\u800c\u6765&#xff1a;<br \/>\n\u201c\u539f\u4f5c\u8005\u7684\u9879\u76ee\u91cc\u660e\u660e\u914d\u7f6e\u4e86 Linter&#xff08;\u5982 Biome&#xff09;&#xff0c;\u4e3a\u4ec0\u4e48\u5230\u4e86\u4e0b\u6e38\u5c31\u4f1a\u4ea7\u751f\u5982\u6b64\u591a\u7684\u51b2\u7a81&#xff1f;\u6bcf\u4e2a\u4e0b\u6e38\u56e2\u961f\u7684 TS \u548c Lint \u914d\u7f6e\u90fd\u4e0d\u4e00\u6837&#xff0c;\u6e90\u7801\u5206\u53d1\u578b\u7ec4\u4ef6\u5e93\u5230\u5e95\u8be5\u5982\u4f55\u7ef4\u62a4&#xff1f;\u6211\u4eec\u8be5\u4e0d\u8be5\u63d0 Issue \u8ba9\u4f5c\u8005\u91cd\u5199&#xff1f;\u201d<\/p>\n<p>\u672c\u6587\u5c06\u4ece\u8fd9\u8d77\u6392\u67e5\u5b9e\u5f55\u5207\u5165&#xff0c;\u5256\u6790\u6e90\u7801\u5206\u53d1\u6a21\u5f0f\u7684\u5e95\u5c42\u67b6\u6784\u77db\u76fe&#xff0c;\u5e76\u7ed9\u51fa\u4e1a\u52a1\u5de5\u7a0b\u7684\u6700\u4f73\u6cbb\u7406\u5b9e\u8df5\u3002<\/p>\n<hr \/>\n<h3>2. \u73b0\u573a\u590d\u76d8&#xff1a;\u8fd9 30&#043; \u6761\u544a\u8b66\u7a76\u7adf\u4ece\u4f55\u800c\u6765&#xff1f;<\/h3>\n<p>\u4ed4\u7ec6\u68b3\u7406\u544a\u8b66\u4fe1\u606f\u540e&#xff0c;\u53ef\u4ee5\u53d1\u73b0\u8fd9\u4e9b\u95ee\u9898\u5b9e\u9645\u4e0a\u7531\u4e09\u7c7b\u5b8c\u5168\u4e0d\u540c\u7ef4\u5ea6\u7684\u539f\u56e0\u5bfc\u81f4&#xff1a;<\/p>\n<h4>\u7ef4\u5ea6\u4e00&#xff1a;\u771f\u5b9e\u7684 React \u8fd0\u884c\u65f6\u9690\u60a3&#xff08;\u786e\u5b9a\u6027 Bug&#xff09;<\/h4>\n<p>\u5e76\u4e0d\u662f\u6240\u6709\u544a\u8b66\u90fd\u662f\u201c\u865a\u60ca\u4e00\u573a\u201d&#xff0c;\u90e8\u5206\u544a\u8b66\u7cbe\u51c6\u6307\u51fa\u4e86\u52a8\u6548\u5b9e\u73b0\u4e2d\u7684\u751f\u547d\u5468\u671f\u7f3a\u9677&#xff1a;<\/p>\n<h5>\u6848\u4f8b 1&#xff1a;\u9057\u6f0f\u4f9d\u8d56\u6570\u7ec4\u5f15\u53d1\u65e0\u9650\u66f4\u65b0<\/h5>\n<p>\u5728\u6d4b\u91cf\u6587\u5b57\u5bbd\u5ea6\u7684\u5f39\u6027\u7ec4\u4ef6\u4e2d&#xff0c;\u53d1\u73b0\u4e86\u5982\u4e0b\u4ee3\u7801&#xff1a;<\/p>\n<p>\/\/ \u6e90\u7801\u539f\u5f62<br \/>\nuseLayoutEffect(() &#061;&gt; {<br \/>\n  const nextWidth &#061; measureRef.current?.offsetWidth;<br \/>\n  if (!nextWidth) return;<br \/>\n  setWidth((current) &#061;&gt; (current &#061;&#061;&#061; nextWidth ? current : nextWidth));<br \/>\n}); \/\/ \u672a\u4f20\u5165\u4f9d\u8d56\u6570\u7ec4<\/p>\n<ul>\n<li>\u9690\u60a3&#xff1a;\u7f3a\u5c11\u4f9d\u8d56\u6570\u7ec4\u610f\u5473\u7740\u6bcf\u6b21\u7ec4\u4ef6\u91cd\u6e32\u67d3&#xff0c;\u8be5 Effect \u90fd\u4f1a\u65e0\u6761\u4ef6\u6267\u884c\u5e76\u89e6\u53d1 setWidth\u3002\u4e00\u65e6\u7236\u7ea7\u89e6\u53d1\u72b6\u6001\u66f4\u65b0&#xff0c;\u6781\u6613\u5bfc\u81f4\u7ea7\u8054\u6e32\u67d3\u751a\u81f3\u6027\u80fd\u96ea\u5d29\u3002<\/li>\n<li>\u4fee\u590d&#xff1a;\u8865\u9f50\u76f8\u5173\u4f9d\u8d56\u9879 [children, cascade]\u3002<\/li>\n<\/ul>\n<h5>\u6848\u4f8b 2&#xff1a;Cleanup \u51fd\u6570\u4e2d\u7684 Ref \u6f02\u79fb<\/h5>\n<p>\u5728\u4fa7\u8fb9\u680f\u5173\u95ed\u5e76\u6062\u590d\u7126\u70b9\u7684\u903b\u8f91\u4e2d&#xff1a;<\/p>\n<p>return () &#061;&gt; {<br \/>\n  window.scrollTo(0, scrollY);<br \/>\n  context.triggerRef.current?.focus({ preventScroll: true });<br \/>\n};<\/p>\n<ul>\n<li>\u9690\u60a3&#xff1a;useEffect \u6e05\u7406\u51fd\u6570\u5728\u7ec4\u4ef6\u5378\u8f7d\u6216\u66f4\u65b0\u540e\u6267\u884c\u3002\u82e5\u6b64\u65f6\u89e6\u53d1\u6309\u94ae\u672c\u8eab\u4e5f\u968f\u4e4b\u88ab React \u9500\u6bc1&#xff0c;context.triggerRef.current \u5f88\u53ef\u80fd\u5df2\u88ab\u7f6e\u7a7a&#xff08;null&#xff09;\u6216\u6307\u5411\u65b0\u8282\u70b9\u3002<\/li>\n<li>\u4fee\u590d&#xff1a;\u5728\u8fd4\u56de\u6e05\u7406\u51fd\u6570\u524d\u5c06\u5f53\u65f6\u7684 DOM \u8282\u70b9\u5feb\u7167\u5230\u5c40\u90e8\u53d8\u91cf&#xff0c;\u501f\u52a9\u95ed\u5305\u7ef4\u6301\u6709\u6548\u5f15\u7528&#xff1a;<\/li>\n<\/ul>\n<p>const triggerElement &#061; context.triggerRef.current;<br \/>\nreturn () &#061;&gt; {<br \/>\n  window.scrollTo(0, scrollY);<br \/>\n  triggerElement?.focus({ preventScroll: true });<br \/>\n};<\/p>\n<hr \/>\n<h4>\u7ef4\u5ea6\u4e8c&#xff1a;\u5f00\u53d1\u73af\u5883\u89c4\u8303\u4e0e\u8def\u7531\u7ea6\u5b9a\u7684\u51b2\u7a81&#xff08;\u4f2a\u544a\u8b66&#xff09;<\/h4>\n<ul>\n<li>\u544a\u8b66&#xff1a;react\/only-export-components<\/li>\n<li>\u6210\u56e0&#xff1a;React Fast Refresh \u89c4\u8303\u8981\u6c42\u4e00\u4e2a\u6587\u4ef6\u53ea\u80fd\u5bfc\u51fa React \u7ec4\u4ef6&#xff0c;\u4ee5\u4fbf HMR \u7cbe\u51c6\u70ed\u66f4\u65b0\u3002\u4f46\u73b0\u4ee3\u6587\u4ef6\u8def\u7531\u6846\u67b6&#xff08;\u5982 TanStack Router&#xff09;\u5f3a\u5236\u8981\u6c42\u8def\u7531\u6587\u4ef6\u5fc5\u987b export const Route &#061; createFileRoute(&#8230;)&#xff1b;\u540c\u65f6&#xff0c;\u8bb8\u591a\u7ec4\u4ef6\u5e93\u4e3a\u4e86\u4f7f\u7528\u4fbf\u5229&#xff0c;\u4e60\u60ef\u5c06\u4e0a\u4e0b\u6587 Hook&#xff08;\u5982 useAnimatedSidebar&#xff09;\u4e0e\u7ec4\u4ef6\u672c\u4f53\u540c\u6587\u4ef6\u5bfc\u51fa\u3002<\/li>\n<\/ul>\n<hr \/>\n<h4>\u7ef4\u5ea6\u4e09&#xff1a;\u524d\u6cbf\u7f16\u8bd1\u5668\u89c4\u5219\u5728\u975e\u9002\u7528\u67b6\u6784\u4e0a\u7684\u201c\u6c34\u571f\u4e0d\u670d\u201d<\/h4>\n<p>\u544a\u8b66\u4e2d\u5360\u6bd4\u6700\u5927\u7684 react(set-state-in-effect)\u3001react(immutability)\u3001react(refs)&#xff0c;\u5b9e\u5219\u662f Oxlint \u5728\u5f00\u542f React \u63d2\u4ef6\u540e&#xff0c;\u9ed8\u8ba4\u5f15\u5165\u7684 React Compiler&#xff08;React 19 \u5b9e\u9a8c\u6027\u7f16\u8bd1\u5668&#xff09; \u9759\u6001\u68c0\u67e5\u89c4\u5219\u3002<\/p>\n<p>\u590d\u6742\u52a8\u6548\u5e93&#xff08;\u5982 Framer Motion&#xff09;\u4e3a\u4e86\u8fbe\u5230 60fps\/120fps \u7684\u6d41\u7545\u4f53\u9a8c&#xff0c;\u4e0d\u53ef\u907f\u514d\u5730\u4f1a\u4f7f\u7528 Ref \u8fdb\u884c DOM \u6d4b\u91cf\u3001\u4f7f\u7528 useEffect(() &#061;&gt; setMounted(true), []) \u5224\u5b9a\u5ba2\u6237\u7aef\u6ce8\u6c34\u72b6\u6001\u3002\u800c React Compiler \u7684\u4e25\u683c\u7eaf\u51fd\u6570\u4e0e\u4e0d\u53ef\u53d8\u6027\u5047\u8bbe&#xff0c;\u76f4\u63a5\u5c06\u8fd9\u4e9b\u6210\u719f\u7684\u624b\u5199\u4f18\u5316\u7b56\u7565\u5224\u5b9a\u4e3a\u4e86\u201c\u8fdd\u89c4\u201d\u3002<\/p>\n<hr \/>\n<h3>3. \u67b6\u6784\u601d\u8fa8&#xff1a;\u4e0a\u6e38\u4f5c\u8005\u4e0e\u4e0b\u6e38\u6d88\u8d39\u8005\u7684\u201c\u914d\u7f6e\u5730\u72f1\u201d<\/h3>\n<p>\u5728\u6211\u4eec\u67e5\u770b\u8be5\u7ec4\u4ef6\u5e93\u7684\u6839\u76ee\u5f55\u914d\u7f6e\u65f6&#xff0c;\u53d1\u73b0\u4f5c\u8005\u4f7f\u7528\u7684\u662f\u8f7b\u91cf\u7684 Biome&#xff1a;<\/p>\n<p><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token string-property property\">&#034;$schema&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;https:\/\/biomejs.dev\/schemas\/2.4.16\/schema.json&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token string-property property\">&#034;formatter&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token string-property property\">&#034;enabled&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token boolean\">false<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token string-property property\">&#034;linter&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string-property property\">&#034;enabled&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token boolean\">true<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;rules&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token string-property property\">&#034;recommended&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token boolean\">true<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;complexity&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token string-property property\">&#034;noImportantStyles&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;off&#034;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;security&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token string-property property\">&#034;noDangerouslySetInnerHtml&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;off&#034;<\/span> <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u4f5c\u8005\u7684\u610f\u56fe\u975e\u5e38\u660e\u786e&#xff1a;\u4fdd\u6301\u6700\u5c0f\u9650\u5236&#xff0c;\u4fdd\u8bc1\u57fa\u7840\u8bed\u6cd5\u6b63\u786e\u5373\u53ef\u3002<\/p>\n<p>\u8fd9\u91cc\u5c31\u66b4\u9732\u4e86\u6e90\u7801\u5206\u53d1\u6a21\u5f0f\u7684\u81f4\u547d\u75db\u70b9&#xff1a;<\/p>\n<h4>\u4f20\u7edf npm \u5305\u6a21\u5f0f&#xff08;\u9ed1\u76d2&#xff09;<\/h4>\n<ul>\n<li>\u7ec4\u4ef6\u88ab\u9884\u7f16\u8bd1\u4e3a JS Bundle \u548c .d.ts \u7c7b\u578b\u58f0\u660e\u6587\u4ef6\u3002<\/li>\n<li>\u4e0b\u6e38\u9879\u76ee\u7684 ESLint\u3001Oxlint\u3001TypeScript \u9ed8\u8ba4\u5b8c\u5168\u5ffd\u7565 node_modules\u3002<\/li>\n<li>\u53ea\u8981\u5bf9\u5916\u66b4\u9732\u7684 Props \u7c7b\u578b\u901a\u8fc7\u68c0\u67e5&#xff0c;\u5185\u90e8\u5373\u4fbf\u5199\u5f97\u518d\u6fc0\u8fdb&#xff0c;\u4e0b\u6e38\u4e5f\u65e0\u4ece\u611f\u77e5\u3002<\/li>\n<\/ul>\n<h4>\u6e90\u7801\u590d\u5236\u6a21\u5f0f&#xff08;\u767d\u76d2&#xff09;<\/h4>\n<ul>\n<li>\u539f\u59cb\u672a\u7f16\u8bd1\u7684 TypeScript \/ JSX \u4ee3\u7801\u76f4\u63a5\u843d\u5728\u4e1a\u52a1\u5de5\u7a0b\u7684 src\/ \u4e0b\u3002<\/li>\n<li>\u5b83\u77ac\u95f4\u4ece\u201c\u7b2c\u4e09\u65b9\u4f9d\u8d56\u201d\u964d\u7ef4\u6210\u4e86\u7b2c\u4e00\u65b9\u4e1a\u52a1\u4ee3\u7801\u3002<\/li>\n<li>\u4e0b\u6e38\u542f\u7528\u7684\u6bcf\u4e00\u6761\u6781\u5ea6\u4e25\u683c\u7684\u9759\u6001\u89c4\u5219&#xff08;\u5982 TypeScript \u7684 exactOptionalPropertyTypes\u3001ESLint \u7684 React Compiler \u89c4\u5219\u3001Oxlint \u7684\u5b9a\u5236 rules&#xff09;&#xff0c;\u90fd\u4f1a\u65e0\u5dee\u522b\u5730\u5ba1\u67e5\u8fd9\u4e9b\u501f\u6765\u7684\u7ec4\u4ef6\u3002<\/li>\n<\/ul>\n<h4>\u90a3\u6211\u4eec\u8be5\u7ed9\u4e0a\u6e38\u63d0 Issue \u8ba9\u4ed6\u4eec\u6309 Lint \u89c4\u5219\u91cd\u6784\u5417&#xff1f;<\/h4>\n<p>\u7b54\u6848\u663e\u7136\u662f\u4e0d\u73b0\u5b9e\u7684\u3002<br \/>\n\u524d\u7aef\u793e\u533a\u7684 Linter \u751f\u6001\u6781\u5176\u788e\u7247\u5316&#xff1a;ESLint&#xff08;\u5305\u542b\u5404\u5bb6\u9884\u8bbe&#xff09;\u3001Biome\u3001Oxlint\u3001Deno Lint \u5404\u81ea\u4e3a\u653f\u3002\u4e0a\u6e38\u7ef4\u62a4\u8005\u5982\u679c\u4e3a\u4e86\u6ee1\u8db3\u56e2\u961f A \u7684\u89c4\u5219\u4fee\u6539\u4e86\u4ee3\u7801&#xff0c;\u6781\u53ef\u80fd\u4f1a\u89e6\u53d1\u56e2\u961f B \u7684\u51b2\u7a81\u62a5\u8b66\u3002\u4e0a\u6e38\u7684\u6838\u5fc3\u804c\u8d23\u662f\u7ef4\u62a4\u8de8\u7aef\u517c\u5bb9\u6027\u4e0e\u8fd0\u884c\u6b63\u786e\u6027&#xff0c;\u800c\u4e0d\u662f\u6210\u4e3a\u201c\u5168\u7f51 Linter \u89c4\u5219\u6536\u96c6\u5668\u201d\u3002<\/p>\n<hr \/>\n<h3>4. \u7834\u5c40\u4e4b\u9053&#xff1a;\u4e0b\u6e38\u5de5\u7a0b\u7684\u4e09\u5c42\u6cbb\u7406\u7b56\u7565<\/h3>\n<p>\u4f5c\u4e3a\u4e0b\u6e38\u6d88\u8d39\u8005&#xff0c;\u6211\u4eec\u65e2\u60f3\u4eab\u53d7\u590d\u5236\u578b\u7ec4\u4ef6\u7684\u7075\u6d3b\u6027&#xff0c;\u53c8\u4e0d\u60f3\u88ab\u6ee1\u5c4f\u7684\u544a\u8b66\u963b\u585e CI\/CD \u6d41\u7a0b&#xff0c;\u5e94\u5f53\u5982\u4f55\u5728\u5de5\u7a0b\u4e2d\u8fdb\u884c\u4f18\u96c5\u6cbb\u7406&#xff1f;<\/p>\n<h4>\u7b56\u7565\u4e00&#xff1a;\u786e\u7acb\u201c\u4ee3\u7801\u6240\u6709\u6743&#xff08;You Own It&#xff09;\u201d\u601d\u7ef4<\/h4>\n<p>shadcn \u6a21\u5f0f\u7684\u6838\u5fc3\u54f2\u5b66\u5c31\u662f&#xff1a;\u201c\u4e00\u65e6\u4f60\u590d\u5236\u4e86\u4ee3\u7801&#xff0c;\u5b83\u5c31\u5c5e\u4e8e\u4f60\u3002\u201d<br \/>\n\u4e0d\u8981\u628a\u7ec4\u4ef6\u5e93\u5f53\u6210\u795e\u5723\u4e0d\u53ef\u4fb5\u72af\u7684\u7b2c\u4e09\u65b9\u9ed1\u76d2\u3002\u5f53\u53d1\u73b0\u771f\u6b63\u7684 Hook \u7f3a\u9677&#xff08;\u5982\u7f3a\u5c11\u4f9d\u8d56\u9879\u3001Ref \u6e05\u7406\u8131\u94a9&#xff09;\u65f6&#xff0c;\u679c\u65ad\u5c31\u5730\u91cd\u6784\u4fee\u590d\u3002\u82e5\u903b\u8f91\u5177\u5907\u901a\u7528\u4ef7\u503c&#xff0c;\u53ef\u5411\u4e0a\u6e38\u63d0\u4ea4\u660e\u786e\u7684 Bugfix PR&#xff08;\u800c\u975e\u201c\u8bf7\u6c42\u9002\u914d Lint\u201d\u7684\u5927\u800c\u5316\u4e4b\u7684 Issue&#xff09;\u3002<\/p>\n<h4>\u7b56\u7565\u4e8c&#xff1a;\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u7cbe\u51c6\u5212\u5b9a\u201c\u8c41\u514d\u533a\u201d<\/h4>\n<p>\u5bf9\u4e8e\u7b2c\u4e09\u65b9\u7684 UI\/\u52a8\u6548\u6a21\u677f\u4ee3\u7801&#xff0c;\u6ca1\u5fc5\u8981\u7528\u5bf9\u5f85\u6838\u5fc3\u91d1\u878d\u4e1a\u52a1\u903b\u8f91\u7684\u6807\u51c6\u53bb\u82db\u6c42\u5b83\u3002\u5728 oxlintrc.json \u6216 eslintrc \u4e2d&#xff0c;\u5584\u7528 overrides \u8fdb\u884c\u5206\u5c42\u7ba1\u7406&#xff1a;<\/p>\n<p><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token string-property property\">&#034;plugins&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;typescript&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;oxc&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token string-property property\">&#034;overrides&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><br \/>\n    <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token string-property property\">&#034;files&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;**\/apps\/frontend\/**&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;**\/*.tsx&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;plugins&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;react&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;rules&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token string-property property\">&#034;react\/rules-of-hooks&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;error&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token string-property property\">&#034;react-hooks\/exhaustive-deps&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;warn&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token comment\">\/\/ \u5173\u95ed\u975e\u5f53\u524d\u67b6\u6784\u9002\u914d\u7684 React Compiler \u5b9e\u9a8c\u6027\u89c4\u5219<\/span><br \/>\n        <span class=\"token string-property property\">&#034;react\/set-state-in-effect&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;off&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token string-property property\">&#034;react\/immutability&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;off&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token string-property property\">&#034;react\/refs&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;off&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token string-property property\">&#034;react\/only-export-components&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;off&#034;<\/span><br \/>\n      <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">]<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h4>\u7b56\u7565\u4e09&#xff1a;Monorepo \u4efb\u52a1\u5206\u53d1\u4e0e\u4f5c\u7528\u57df\u6536\u655b<\/h4>\n<p>\u5728\u591a\u5305\u5de5\u7a0b&#xff08;Monorepo&#xff09;\u4e2d&#xff0c;\u907f\u514d\u5728\u6839\u76ee\u5f55\u4e0b\u76f4\u63a5\u6267\u884c\u65e0\u5dee\u522b\u7684\u5168\u5c40\u626b\u63cf\u3002\u5e94\u5f53\u50cf\u7ba1\u7406 typecheck \u4e00\u6837&#xff0c;\u5229\u7528\u5305\u7ba1\u7406\u5668\u7684\u8fc7\u6ee4\u80fd\u529b\u5411\u4e0b\u5206\u53d1\u4efb\u52a1&#xff1a;<\/p>\n<p><span class=\"token comment\">\/\/ \u6839\u76ee\u5f55 package.json<\/span><br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token string-property property\">&#034;scripts&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string-property property\">&#034;lint&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;bun run &#8211;filter &#039;.\/apps\/*&#039; &#8211;filter &#039;.\/packages\/*&#039; lint&#034;<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u5404\u5b50\u6a21\u5757&#xff08;\u524d\u7aef\u3001\u540e\u7aef\u3001\u5171\u4eab\u7c7b\u578b\u5305&#xff09;\u53ea\u626b\u63cf\u5404\u81ea\u7684 src \u76ee\u5f55&#xff0c;\u524d\u7aef\u72ec\u4eab React \u68c0\u67e5&#xff0c;\u540e\u7aef\u6392\u9664\u524d\u7aef\u89c4\u5219&#xff0c;\u6570\u636e\u5e93\u8fc1\u79fb\u5feb\u7167\u4e0e\u5916\u90e8\u5de5\u5177\u76ee\u5f55\u5f7b\u5e95\u52a0\u5165 ignorePatterns\u3002<\/p>\n<hr \/>\n<h3>5. \u7ed3\u8bed<\/h3>\n<p>\u7ec4\u4ef6\u5206\u53d1\u6a21\u5f0f\u4ece\u201cnpm \u9ed1\u76d2\u201d\u6f14\u8fdb\u81f3\u201c\u6e90\u7801\u767d\u76d2\u201d&#xff0c;\u672c\u8d28\u4e0a\u662f\u4e00\u573a\u5173\u4e8e\u63a7\u5236\u6743\u4e0e\u8d23\u4efb\u8fb9\u754c\u7684\u8f6c\u79fb&#xff1a;\u5b83\u8d4b\u4e88\u4e86\u524d\u7aef\u5de5\u7a0b\u5e08 100% \u7684\u5b9a\u5236\u81ea\u7531\u5ea6&#xff0c;\u540c\u65f6\u4e5f\u8981\u6c42\u5de5\u7a0b\u5e08\u5fc5\u987b\u627f\u62c5\u8d77\u6d88\u5316\u4ee3\u7801\u3001\u5ba1\u67e5\u751f\u547d\u5468\u671f\u9690\u60a3\u4e0e\u7ba1\u7406\u5de5\u7a0b\u5316\u8fb9\u754c\u7684\u8d23\u4efb\u3002<\/p>\n<p>\u4e0b\u6b21\u518d\u9047\u5230\u5f15\u5165\u7ec4\u4ef6\u5e93\u5bfc\u81f4\u7684 Lint \u5237\u5c4f\u65f6&#xff0c;\u4e0d\u59a8\u505c\u4e0b\u62b1\u6028&#xff1a;<\/p>\n<li>\u6311\u51fa\u90a3\u4e9b\u9690\u853d\u7684 React \u771f\u5b9e\u751f\u547d\u5468\u671f Bug \u5e76\u6d88\u706d\u5b83&#xff1b;<\/li>\n<li>\u5173\u6389\u90a3\u4e9b \u4e0d\u5408\u65f6\u5b9c\u7684\u7f16\u8bd1\u5668\u8fc7\u5ea6\u5ba1\u67e5&#xff1b;<\/li>\n<li>\u4e3a\u8fd9\u5957\u5b8c\u5168\u5c5e\u4e8e\u4f60\u81ea\u5df1\u7684\u7ec4\u4ef6\u4ee3\u7801&#xff0c;\u5efa\u7acb\u6e05\u6670\u6574\u6d01\u7684\u5de5\u7a0b\u9632\u7ebf\u3002<\/li>\n","protected":false},"excerpt":{"rendered":"<p>1. \u5f15\u8a00&#xff1a;\u4e00\u573a\u610f\u6599\u4e4b\u5916\u7684\u201cLint \u544a\u8b66\u98ce\u66b4\u201d<br \/>\n\u968f\u7740 shadcn\/ui \u4ee5\u53ca\u4e00\u7cfb\u5217\u5fae\u52a8\u6548\u7ec4\u4ef6\u5e93&#xff08;\u5982 beUI&#xff09;\u7684\u6d41\u884c&#xff0c;\u201cCopy-Paste Component Registry&#xff08;\u6e90\u7801\u5206\u53d1\u578b\u7ec4\u4ef6\u5e93&#xff09;\u201d\u5df2\u7136\u6210\u4e3a\u73b0\u4ee3 React \u751f\u6001\u7684\u4e3b\u6d41\u8303\u5f0f\u3002\u5b83\u6253\u7834\u4e86\u4f20\u7edf npm \u5305\u201c\u9ed1\u76d2\u5b89\u88c5\u3001\u6837\u5f0f\u9b54\u6539\u56f0\u96be\u201d\u7684\u684e\u688f&#xff0c;\u8ba9\u5f00\u53d1\u8005\u901a\u8fc7 CLI \u76f4\u63a5\u628a\u539f\u59cb .tsx \u4ee3\u7801\u590d\u5236\u8fdb\u81ea\u5df1\u7684 src\/comp<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[723,568,598,87,188],"topic":[],"class_list":["post-107892","post","type-post","status-publish","format-standard","hentry","category-server","tag-react","tag-typescript","tag-598","tag-87","tag-188"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4ece 30+ \u6761 Lint \u8b66\u544a\u8c08\u8d77\uff1ashadcn \u65f6\u4ee3\u201c\u6e90\u7801\u590d\u5236\u578b\u7ec4\u4ef6\u5e93\u201d\u7684\u5de5\u7a0b\u5316\u56f0\u5883\u4e0e\u7834\u5c40 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/107892.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4ece 30+ \u6761 Lint \u8b66\u544a\u8c08\u8d77\uff1ashadcn \u65f6\u4ee3\u201c\u6e90\u7801\u590d\u5236\u578b\u7ec4\u4ef6\u5e93\u201d\u7684\u5de5\u7a0b\u5316\u56f0\u5883\u4e0e\u7834\u5c40 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"1. \u5f15\u8a00&#xff1a;\u4e00\u573a\u610f\u6599\u4e4b\u5916\u7684\u201cLint \u544a\u8b66\u98ce\u66b4\u201d \u968f\u7740 shadcn\/ui \u4ee5\u53ca\u4e00\u7cfb\u5217\u5fae\u52a8\u6548\u7ec4\u4ef6\u5e93&#xff08;\u5982 beUI&#xff09;\u7684\u6d41\u884c&#xff0c;\u201cCopy-Paste Component Registry&#xff08;\u6e90\u7801\u5206\u53d1\u578b\u7ec4\u4ef6\u5e93&#xff09;\u201d\u5df2\u7136\u6210\u4e3a\u73b0\u4ee3 React \u751f\u6001\u7684\u4e3b\u6d41\u8303\u5f0f\u3002\u5b83\u6253\u7834\u4e86\u4f20\u7edf npm \u5305\u201c\u9ed1\u76d2\u5b89\u88c5\u3001\u6837\u5f0f\u9b54\u6539\u56f0\u96be\u201d\u7684\u684e\u688f&#xff0c;\u8ba9\u5f00\u53d1\u8005\u901a\u8fc7 CLI \u76f4\u63a5\u628a\u539f\u59cb .tsx \u4ee3\u7801\u590d\u5236\u8fdb\u81ea\u5df1\u7684 src\/comp\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/107892.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-20T07:48:59+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/107892.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/107892.html\",\"name\":\"\u4ece 30+ \u6761 Lint \u8b66\u544a\u8c08\u8d77\uff1ashadcn \u65f6\u4ee3\u201c\u6e90\u7801\u590d\u5236\u578b\u7ec4\u4ef6\u5e93\u201d\u7684\u5de5\u7a0b\u5316\u56f0\u5883\u4e0e\u7834\u5c40 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-20T07:48:59+00:00\",\"dateModified\":\"2026-09-20T07:48:59+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/107892.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/107892.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/107892.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4ece 30+ \u6761 Lint \u8b66\u544a\u8c08\u8d77\uff1ashadcn \u65f6\u4ee3\u201c\u6e90\u7801\u590d\u5236\u578b\u7ec4\u4ef6\u5e93\u201d\u7684\u5de5\u7a0b\u5316\u56f0\u5883\u4e0e\u7834\u5c40\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u4ece 30+ \u6761 Lint \u8b66\u544a\u8c08\u8d77\uff1ashadcn \u65f6\u4ee3\u201c\u6e90\u7801\u590d\u5236\u578b\u7ec4\u4ef6\u5e93\u201d\u7684\u5de5\u7a0b\u5316\u56f0\u5883\u4e0e\u7834\u5c40 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/107892.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4ece 30+ \u6761 Lint \u8b66\u544a\u8c08\u8d77\uff1ashadcn \u65f6\u4ee3\u201c\u6e90\u7801\u590d\u5236\u578b\u7ec4\u4ef6\u5e93\u201d\u7684\u5de5\u7a0b\u5316\u56f0\u5883\u4e0e\u7834\u5c40 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"1. \u5f15\u8a00&#xff1a;\u4e00\u573a\u610f\u6599\u4e4b\u5916\u7684\u201cLint \u544a\u8b66\u98ce\u66b4\u201d \u968f\u7740 shadcn\/ui \u4ee5\u53ca\u4e00\u7cfb\u5217\u5fae\u52a8\u6548\u7ec4\u4ef6\u5e93&#xff08;\u5982 beUI&#xff09;\u7684\u6d41\u884c&#xff0c;\u201cCopy-Paste Component Registry&#xff08;\u6e90\u7801\u5206\u53d1\u578b\u7ec4\u4ef6\u5e93&#xff09;\u201d\u5df2\u7136\u6210\u4e3a\u73b0\u4ee3 React \u751f\u6001\u7684\u4e3b\u6d41\u8303\u5f0f\u3002\u5b83\u6253\u7834\u4e86\u4f20\u7edf npm \u5305\u201c\u9ed1\u76d2\u5b89\u88c5\u3001\u6837\u5f0f\u9b54\u6539\u56f0\u96be\u201d\u7684\u684e\u688f&#xff0c;\u8ba9\u5f00\u53d1\u8005\u901a\u8fc7 CLI \u76f4\u63a5\u628a\u539f\u59cb .tsx \u4ee3\u7801\u590d\u5236\u8fdb\u81ea\u5df1\u7684 src\/comp","og_url":"https:\/\/www.wsisp.com\/helps\/107892.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-20T07:48:59+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/107892.html","url":"https:\/\/www.wsisp.com\/helps\/107892.html","name":"\u4ece 30+ \u6761 Lint \u8b66\u544a\u8c08\u8d77\uff1ashadcn \u65f6\u4ee3\u201c\u6e90\u7801\u590d\u5236\u578b\u7ec4\u4ef6\u5e93\u201d\u7684\u5de5\u7a0b\u5316\u56f0\u5883\u4e0e\u7834\u5c40 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-20T07:48:59+00:00","dateModified":"2026-09-20T07:48:59+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/107892.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/107892.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/107892.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4ece 30+ \u6761 Lint \u8b66\u544a\u8c08\u8d77\uff1ashadcn \u65f6\u4ee3\u201c\u6e90\u7801\u590d\u5236\u578b\u7ec4\u4ef6\u5e93\u201d\u7684\u5de5\u7a0b\u5316\u56f0\u5883\u4e0e\u7834\u5c40"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/107892","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=107892"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/107892\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=107892"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=107892"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=107892"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=107892"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}