{"id":217146,"date":"2020-11-29T00:00:29","date_gmt":"2020-11-28T16:00:29","guid":{"rendered":"http:\/\/4563.org\/?p=217146"},"modified":"2020-11-29T00:00:29","modified_gmt":"2020-11-28T16:00:29","slug":"%e4%b8%80%e7%9b%b4%e6%9c%89%e4%b8%80%e4%b8%aa%e7%96%91%e6%83%91%ef%bc%9a-standard-js-%e8%bf%99%e4%b8%aa%e7%bc%96%e7%a0%81%e8%a7%84%e8%8c%83%e6%98%af%e4%b8%ba%e4%bb%80%e4%b9%88%e7%81%ab%e8%b5%b7","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=217146","title":{"rendered":"\u4e00\u76f4\u6709\u4e00\u4e2a\u7591\u60d1\uff1a Standard JS \u8fd9\u4e2a\u7f16\u7801\u89c4\u8303\u662f\u4e3a\u4ec0\u4e48\u706b\u8d77\u6765\u7684\u5462\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u4e00\u76f4\u6709\u4e00\u4e2a\u7591\u60d1\uff1a Standard JS \u8fd9\u4e2a\u7f16\u7801\u89c4\u8303\u662f\u4e3a\u4ec0\u4e48\u706b\u8d77\u6765\u7684\u5462\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : shintendo <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u6211\u7406\u89e3\u7684 Standard JS \u7684\u7406\u5ff5\u5c31\u662f\uff1a\u201c\u4e3a\u54ea\u79cd\u7f16\u7801\u98ce\u683c\u66f4\u597d\u800c\u4e89\u5435\u662f\u6d6a\u8d39\u65f6\u95f4\u7684\uff0c\u6211\u6709\u4e00\u79cd\u65b9\u6848\u53ef\u4ee5\u89e3\u51b3\u8fd9\u79cd\u65e0\u610f\u4e49\u7684\u4e89\u5435\uff0c\u90a3\u5c31\u662f\u5927\u5bb6\u90fd\u542c\u6211\u7684\u3002\u201d<\/p>\n<p>\u4e3b\u81ea\u5df1\u5bf9\u7f16\u7801\u98ce\u683c\u6ca1\u6709\u5f88\u5f3a\u7684\u504f\u5411\uff0c\u57fa\u672c\u4e0a\u9879\u76ee\u662f\u4ec0\u4e48\u98ce\u683c\u6211\u5c31\u9002\u5e94\u4ec0\u4e48\u98ce\u683c\uff0c\u6240\u4ee5\u5e76\u4e0d\u662f\u89c9\u5f97 Standard JS \u7684\u5185\u5bb9\u6709\u4ec0\u4e48\u95ee\u9898\uff0c\u800c\u662f\u89c9\u5f97\u8fd9\u4e2a\u7406\u5ff5\u7279\u522b\u5947\u602a\uff0c\u6709\u70b9\u4f55\u4e0d\u98df\u8089\u7cdc\u7684\u611f\u89c9\u3002<\/p>\n<p>\u5047\u8bbe Standard JS \u9879\u76ee\u662f\u8fd9\u6837\uff1a\u9488\u5bf9\u6bcf\u4e00\u6761\u89c4\u5219\uff08\u5982\u5206\u53f7\u3001tab \u3001\u62ec\u53f7\u6362\u884c\u7b49\uff09\uff0c\u7edf\u8ba1 npm \u4e0a\u7684\u6240\u6709\u5305\uff0c\u53d6\u591a\u6570\u4eba\u4f7f\u7528\u7684\u90a3\u4e00\u79cd\uff0c\u90a3\u4e48\u8fd9\u4e2a\u9879\u76ee\u6700\u7ec8\u5f97\u51fa\u6765\u7684\u7f16\u7801\u98ce\u683c\u53ef\u80fd\u5f88\u5947\u602a\uff0c\u53ef\u80fd\u6211\u4e0d\u559c\u6b22\uff0c\u4f46\u6211\u4f1a\u89c9\u5f97\u8fd9\u4e2a\u9879\u76ee\u662f\u6709\u610f\u4e49\u7684\uff0c\u81f3\u5c11\u662f\u6709\u8da3\u7684\u3002\u4f46\u50cf\u73b0\u5728\u8fd9\u6837\u7684\u6211\u5c31\u4e0d\u592a\u80fd\u7406\u89e3\u4e86\uff0c\u4e0d\u5c31\u662f\u4e00\u4e2a\u65b0\u65f6\u4ee3\u7684 JSLint \u5417\uff1f\u4e3a\u4ec0\u4e48 JSLint \u5df2\u7ecf\u626b\u8fdb\u4e86\u5783\u573e\u5806\u7684\u4eca\u5929\uff0cStandard JS \u5374\u80fd\u706b\u8d77\u6765\uff0c\u8fd9\u80cc\u540e\u662f\u5426\u6709\u6211\u4e0d\u4e86\u89e3\u7684\u5dee\u522b\u5462\uff1f<\/p>\n<p>Again\uff0c\u8fd9\u4e2a\u8d34\u5e76\u4e0d\u662f\u5bf9 Standard JS \u7684\u89c4\u5219\u5185\u5bb9\u4e0d\u6ee1\uff0c\u800c\u662f\u5bf9\u5b83\u6d41\u884c\u7684\u539f\u56e0\u4e0d\u592a\u7406\u89e3\u3002<\/p>\n<\/p><\/div>\n<p><\/p>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>22<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4410477\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : whosesmile <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u5927\u6982\u80fd\u7406\u89e3\u8fd9\u4e2a\u9879\u76ee\u6d41\u884c\u7684\u539f\u56e0\uff0c\u56e0\u4e3a\u5de5\u4f5c\u539f\u56e0\u4ee5\u524d\u7ecf\u5e38\u642d\u5efa\u811a\u624b\u67b6\uff0c\u4ee5\u524d\u662f eslint\uff0c\u540e\u6765\u6362 prettier\uff0c\u518d\u540e\u6765\u4e24\u8005\u7ed3\u5408\uff0c\u518d\u5f80\u540e Angular \u3001React \u3001Vue \u3001TypeScript\uff0cTslint\uff0c\u603b\u6709\u65b0\u7684\u6846\u67b6\u548c\u8bed\u6cd5\u89c4\u5219\u8ba9\u6211\u5bf9\u9879\u76ee\u4ee3\u7801\u7684\u683c\u5f0f\u5316\u89c4\u8303\u75b2\u4e8e\u5e94\u5bf9\u3002<\/p>\n<p>\u56de\u60f3\u6700\u5f00\u59cb\u629b\u5f03 eslint \u6362\u6210 prettier \u7684\u539f\u56e0\u5c31\u662f\u7701\u5fc3\uff0c\u4e0d\u8fc7\u90a3\u4f1a\u597d\u6b79 prettier \u5408\u6211\u610f\uff0c\u73b0\u5728 Standard JS \u5f3a\u5236\u53d6\u6d88\u5206\u53f7\u5176\u5b9e\u8ba9\u6211\u5f88\u522b\u626d\uff0c\u4f46\u662f\u518d\u60f3\u60f3\u521d\u8877\uff0c\u6211\u89c9\u5f97\u8fd9\u79cd\u4e8b\u5c31\u662f\u6ca1\u6709\u5bf9\u9519\uff0c\u6839\u672c\u4e89\u8bba\u4e0d\u51fa\u7ed3\u679c\uff0c\u7d22\u6027\u627e\u4e2a\u4e2d\u7acb\u6d3e\u5427\uff0c\u5927\u5bb6\u90fd\u516c\u5e73\u4e86\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4410478\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : aegisho <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Standard js \u63d0\u4f9b\u4e86\u4e00\u5957\u914d\u7f6e\uff0c\u4e5f\u6bd4\u8f83\u6d41\u884c\uff0cairbnb \u7684\uff0c\u5c31\u6bd4\u8f83\u4e25\u683c\uff0c\u6709\u65f6\u5019\u8fd8\u4f1a\u5f71\u54cd\u5b9e\u9645\u5f00\u53d1\u3002\u9700\u8981\u624b\u5de5\u88c1\u526a<br \/>\u56e2\u961f\u770b\u91cd\u7684\u662f\u7edf\u4e00\u6027\uff0c\u5982\u679c\u6709\u4eba\u613f\u610f\u63a5\u624b\uff0c\u5e76\u957f\u671f\u7ef4\u62a4\uff0c\u81ea\u884c\u5b9a\u4e49\u4e00\u5957\u4e5f\u6ca1\u5565\u95ee\u9898<\/p>\n<p>\u5173\u952e\u662f\u4e0d\u8981\u51fa\u73b0 \u201c\u5c4e\u8272\u7684\u81ea\u884c\u8f66\u68da\u201d \u95ee\u9898\uff0c\u5728\u65e0\u5173\u7d27\u8981\u7684\u5730\u65b9\u6295\u5165\u5927\u91cf\u7684\u65f6\u95f4\u4e89\u5435<br \/>\u52a0\u4e0d\u52a0\u5206\u53f7\u4e89\u5435\u4e5f\u662f\u524d\u51e0\u5e74\u7684\u65e5\u5e38\u4e86\uff0c\u5b9e\u9645\u4e0a\u6709\u90a3\u4e48\u91cd\u8981\u5417\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4410479\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : KuroNekoFan <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u662f\u4e1c\u98ce\u538b\u5012\u897f\u98ce\uff0c\u5c31\u662f\u897f\u98ce\u538b\u5012\u4e1c\u98ce                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4410480\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cmdOptionKana <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Standard JS \u4e0d\u662f\u5355\u72ec\u706b\u8d77\u6765\u7684\uff0c\u800c\u662f\u5f88\u591a\u4eba\u90fd\u53d1\u73b0\u4e86\u4e89\u8bba\u7f16\u7801\u98ce\u683c\u662f\u4e2a\u5927\u95ee\u9898\uff0c\u90fd\u60f3\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u6bd4\u5982 python \u5b98\u65b9\u63d0\u51fa\u4e86 PEP 8\uff0cGolang \u5b98\u65b9\u66f4\u662f\u4ece\u4e00\u5f00\u59cb\u5c31\u63d0\u4f9b gofmt \u9650\u6b7b\u98ce\u683c\u3002<\/p>\n<p>JavaScript \u81ea\u7136\u4e5f\u9700\u8981\u4e00\u4e2a\u7c7b\u4f3c\u7684\u4e1c\u897f\uff0c\u800c\u8fd9\u4e2a\u4e1c\u897f\u53ea\u80fd\u662f Standard JS \uff08\u5f53\u65f6 js \u8fd9\u8fb9\u4e5f\u6ca1\u522b\u7684\u7c7b\u4f3c\u9879\u76ee\uff09<\/p>\n<p>JSLint \u662f\u5b8c\u5168\u4e0d\u540c\u7684\uff0c\u4e0d\u662f\u4e00\u7c7b\u4e1c\u897f\uff0cJSLint \u53ef\u4ee5\u81ea\u7531\u914d\u7f6e\uff0c\u4f46\u4eba\u5bb6\u8981\u7684\u662f\u4e0d\u80fd\u914d\u7f6e\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4410481\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : avastms <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8c01\u53d6\u6d88\u5206\u53f7\u4e86\uff0c\u6253\u7206\u4ed6\u7684\u72d7\u5934                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4410482\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Sivan <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ea\u662f\u8d77\u4e86\u4e00\u4e2a\u597d\u540d\u5b57\uff0c\u9879\u76ee\u672c\u8eab\u5e76\u6ca1\u6709\u4efb\u4f55\u5bf9\u6807\u51c6\u6709\u6307\u4ee3\u4e4b\u610f\u3002\u6d41\u884c\u7684\u4e00\u4e2a\u539f\u56e0\u662f\u4e0a\u4e00\u4e2a\u6d41\u884c\u7684\u89c4\u8303 Airbnb JavaScript Style Guide \u592a\u4e25\u683c\u4e86\uff0c\u6362\u5230 StandardJS \u4f60\u4f1a\u611f\u89c9\u5982\u91ca\u91cd\u8d1f\u3002<\/p>\n<p>\u7528\u7684\u591a\u4e86\u4f1a\u611f\u53d7\u5230\u524d\u7aef\u5185\u90e8\u8fd9\u79cd\u57fa\u7840\u7684\u7f16\u7801\u98ce\u683c\u4e89\u8bae\u6709\u591a\u7cdf\u5fc3\uff0c\u5411\u4e0a\u8bf4\u7684 gofmt \u4ece\u6839\u672c\u4e0a\u89e3\u51b3\u5176\u5b9e\u66f4\u597d\u4e00\u4e9b\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4410483\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : shintendo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @cmdOptionKana JSLint \u662f Douglas Crockford \u90a3\u4e2a\uff0c\u662f\u4e0d\u80fd\u914d\u7f6e\u7684\u5427\uff0c\u8bb0\u5f97\u5f53\u65f6\u4e5f\u662f\u56e0\u4e3a\u4e0d\u80fd\u914d\u7f6e\u800c\u88ab\u5410\u69fd\uff0c\u8fdb\u800c\u88ab JSHint \u53d6\u4ee3\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4410484\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : shintendo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5176\u5b9e\u6211\u6700\u4e3b\u8981\u7684\u56f0\u60d1\u5c31\u662f Standard JS \u6d41\u884c\u7684\u539f\u56e0\u548c JSLint \u88ab\u6dd8\u6c70\u7684\u539f\u56e0\u662f\u4e0d\u662f\u540c\u4e00\u4e2a\u539f\u56e0\uff1a\u4e0d\u53ef\u914d\u7f6e\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4410485\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : kidlj <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u540d\u5b57\u53d6\u5f97\u597d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4410486\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : anguiao <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Prettier \u524d\u51e0\u5929\u4e5f\u66f4\u65b0\u4e86\u6587\u6863\uff0c\u8bf4\u4e0d\u4f1a\u518d\u6dfb\u52a0\u65b0\u7684\u914d\u7f6e\u9879\u3002<br \/>Prettier \u5176\u4ed6\u5730\u65b9\u6211\u90fd\u633a\u6ee1\u610f\u7684\uff0c\u4f46\u662f\u5b83\u7684\u201c&gt;\u201d\u975e\u8981\u5199\u5728\u4e0b\u4e00\u884c\uff0c\u8fd8\u4e0d\u63d0\u4f9b\u914d\u7f6e\u9879\uff0c\u53ea\u6709 React JSX \u53ef\u4ee5\u914d\u7f6e\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4410487\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yodhcn <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u4e5f\u4e0d\u592a\u660e\u767d\uff0cStandard JS \u771f\u7684\u80fd\u53d6\u4ee3 eslint \u548c Prettier \u5417\uff1f<br \/>eslint \u53ef\u4ee5\u901a\u8fc7\u914d\u7f6e\u63d2\u4ef6\uff0c\u6765\u589e\u52a0\u4e00\u4e9b\u7279\u6b8a\u7684\u89c4\u5219\u6bd4\u5982 &#8220;plugin:node\/recommended&#8221; \u7b49\uff0c\u4f46 Standard JS \u7684\u89c4\u5219\u8986\u76d6\u8db3\u591f\u5168\u9762\u5417\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4410488\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : marcong95 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e00\u822c\u4e0d\u90fd\u662f eslint extends: [&#8220;standard&#8221;]\u7684\u4e48\uff0c\u76f4\u63a5\u4e0a standard \u8fd9\u4e48\u731b\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4410489\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : BoarBoar <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5176\u5b9e\u8fd8\u662f\u7ea6\u5b9a\u5927\u4e8e\u914d\u7f6e\u7684\u601d\u60f3\uff0c\u5e94\u7528\u5230\u4e86\u98ce\u683c\u4e0a<br \/>\u800c\u8fc7\u53bb\u5341\u5e74\u7ea6\u5b9a\u5927\u4e8e\u914d\u7f6e\u786e\u5b9e\u6781\u5927\u63d0\u9ad8\u4e86\u5f00\u53d1\u6548\u7387\uff0c\u4e0d\u4fe1\u4f60\u7528 10 \u5e74\u524d\u7684 Java SSH \u5199\u4e00\u4e2a Hello World \u8bd5\u8bd5<br \/>go \u8fd8\u4ece\u8bed\u8a00\u5c42\u9762\u5c31\u7edf\u4e00\u98ce\u683c\u4e86\u5462\uff0c\u4e0d\u7b26\u5408\u4ed6\u98ce\u683c\u7684\u90fd\u4e0d\u7ed9\u4f60\u7f16\u8bd1\u901a\u8fc7                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4410490\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lishen226 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @avastms \u8c01\u53d6\u6d88\u5206\u53f7\u4e86\uff0c\u6253\u7206\u4ed6\u7684\u72d7\u5934                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4410491\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chloelam101 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e3b\u8981\u662f Standard \u914d\u7f6e\u5f00\u7bb1\u5c31\u7528\uff0c\u514d\u53bb\u5404\u79cd\u9879\u76ee\u5bf9\u63a5\u7684\u65f6\u95f4\uff0c\u66f4\u91cd\u8981\u662f vue2 \u56e2\u961f\u65f6\u53ca\u5468\u8fb9\u63d2\u4ef6\u90fd\u662f Standardjs, \u53d7 vue \u5f71\u54cd\uff0c\u5176\u4ed6\u5468\u8fb9\u4f5c\u8005\u4e5f\u52a0\u5165\u4e86\uff0c\u4f46\u73b0\u5728\uff0creact17+ ag11+vue3 \u5176\u5b9e\u73b0\u5728\u4e3b\u6d41\u5f80 typescript \u8d70\u7684\uff0c\u90fd\u4ee5 typescript \u7684\u5b98\u65b9\u7684 eslint \u4e3a\u4e3b\u8981\uff0c\u4e16\u754c\u53c8\u53d8\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4410492\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jones2000 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u559c\u6b22\u600e\u4e48\u5199\uff0c\u5c31\u600e\u4e48\u5199\uff0c \u4e0d\u62a5\u9519\uff0c\u80fd\u8dd1\u901a\u5c31\u884c\u3002<br \/>\u89c4\u8303\u662f\u6b7b\u7684\uff0c\u4eba\u662f\u6d3b\u7684\uff0c \u6d3b\u4eba\u8fd8\u80fd\u7ed9\u89c4\u8303\u618b\u6b7b\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4410493\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lmoon <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @anguiao https:\/\/prettier.io\/docs\/en\/options.html#html-whitespace-sensitivity ignore \u53ef\u7834                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4410494\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : seki <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u73b0\u5728 standardjs \u8fd8\u6d41\u884c\u5417\uff1f\u611f\u89c9\u5df2\u7ecf\u662f\u524d eslint \u65f6\u4ee3\u7684\u4ea7\u7269\u4e86\uff0c\u6709\u4e86 eslint \u7684 auto fix\uff0c\u518d\u52a0\u4e0a\u7f16\u8f91\u5668\u548c git hook \u7684 fix on save\uff0c\u60f3\u600e\u4e48\u914d\u7f6e\u5c31\u600e\u4e48\u914d\u7f6e\uff0c\u591a\u5f00\u5fc3                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4410495\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : seki <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5bf9\u4e8e\u5bfb\u627e\u9002\u5408\u81ea\u5df1\u548c\u56e2\u961f\u7684 eslint \u89c4\u5219\u7684\u65b9\u5f0f\uff0c\u6211\u89c9\u5f97\u4e0e\u5176\u5728 standard js \u4e0a\u505a\u52a0\u6cd5\uff0c\u4e0d\u5982\u5728 airbnb \u4e0a\u505a\u51cf\u6cd5\uff0c\u66f4\u5bb9\u6613\u8ba9\u5927\u5bb6\u63a5\u53d7                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4410496\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : muzuiget <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u5c31\u8ba4\u4e3a\u8fd9\u4e2a\u662f\u5783\u573e\u9879\u76ee\uff0c\u6210\u529f\u65e0\u975e\u5c31\u662f\u53d6\u4e86\u4e2a\u54d7\u4f17\u53d6\u5ba0\u7684\u540d\u5b57\u3002<\/p>\n<p>\u4e3a\u4e86\u7701\u7565\u53e5\u672b\u7684\u5206\u53f7\uff0c\u4ea7\u751f\u6b67\u4e49\u65f6\uff0c\u5374\u8981\u628a\u5206\u53f7\u5199\u5728\u53e5\u9996\uff0c\u7b80\u76f4\u6ed1\u5929\u4e0b\u4e4b\u5927\u7a3d\uff0c\u8fd8\u53eb\u81ea\u5df1\u201cStandard\u201d\uff0c\u6807\u9898\u515a\u4e2d\u7684\u6807\u9898\u515a\u4e86\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4410497\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : libook <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u56e0\u4e3a\u540d\u5b57\u5427\uff0c\u81f3\u4eca\u8fd8\u6709\u5f88\u591a\u4eba\u4ee5\u4e3a\u8fd9\u4e2a\u662f JS \u5b98\u65b9\u8981\u6c42\u7684\u6807\u51c6\u3002\u3002\u3002<\/p>\n<p>ES \u6807\u51c6\u662f\u6709\u5206\u53f7\u7684\uff0c\u5f15\u64ce\u5206\u53f7\u8865\u5168\u672c\u8eab\u5c31\u662f\u4e00\u79cd\u5bb9\u9519\u673a\u5236\uff0cTC39 \u4e5f\u5f3a\u8c03\u4e86\u4e0d\u5199\u5206\u53f7\u7684\u98ce\u9669\uff0c\u4ee5\u53ca\u672a\u6765 ES \u8981\u52a0\u5165\u7684\u65b0\u7279\u6027\u4f1a\u4f7f\u5f97\u5f15\u64ce\u7684\u5206\u53f7\u8865\u5168\u673a\u5236\u53d8\u5f97\u5f02\u5e38\u96be\u4ee5\u5b9e\u73b0\u3002<\/p>\n<p>\u4ece\u597d\u7684\u65b9\u9762\u6765\u8bf4\uff0cStandard JS \u4e3a\u6709\u9700\u6c42\u7684\u56e2\u961f\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5f00\u7bb1\u5373\u7528\u7684\u4ee3\u7801\u98ce\u683c\u65b9\u6848\uff0c\u4f60\u4e0d\u9700\u8981\u81ea\u5df1\u7814\u7a76\u6bcf\u4e00\u9879\u89c4\u5219\uff0c\u4e5f\u4e0d\u9700\u8981\u914d\u7f6e\uff0c\u7531 Standard JS \u6765\u4fdd\u8bc1\u7edf\u4e00\u3001\u53ef\u7528\u3001\u9ad8\u6548\u3002<br \/>\u4ece\u4e0d\u597d\u7684\u65b9\u9762\u6765\u8bf4\uff0cStandard JS \u63a8\u8350\u4e86\u4e00\u4e9b\u6709\u98ce\u9669\u7684\u4ee3\u7801\u98ce\u683c\uff0c\u8fd9\u4e9b\u98ce\u683c\u548c\u4e00\u4e9b\u5199\u6cd5\u642d\u914d\u4f1a\u6709\u4e25\u91cd\u7684\u95ee\u9898\uff0cStandard JS \u7684\u505a\u6cd5\u5c31\u662f\u628a\u8fd9\u4e9b\u4f1a\u6709\u95ee\u9898\u7684\u642d\u914d\u5199\u6cd5\u5c4f\u853d\u6389\uff0c\u4ece\u800c\u505a\u5230\u5728 Standard JS \u7ea6\u675f\u4e0b\u4e0d\u4f1a\u53d1\u751f\u98ce\u9669\uff1b\u4f46\u6709\u7684\u4eba\u5199\u4e60\u60ef\u540e\u5728\u6ca1\u6709 Standard JS \u7ea6\u675f\u7684\u573a\u666f\u4e5f\u4f1a\u4f7f\u7528\u8fd9\u4e9b\u6709\u98ce\u9669\u7684\u4ee3\u7801\u98ce\u683c\uff0c\u6ca1\u6709 Standard JS \u5e2e\u5fd9\u505a\u68c0\u67e5\uff0c\u5f88\u53ef\u80fd\u6700\u7ec8\u5199\u51fa\u6709\u4e25\u91cd\u7f3a\u9677\u7684\u4ee3\u7801\u3002<\/p>\n<p>\u4e2a\u4eba\u63a8\u8350\u7684\u662f Lint \u89c4\u5219\u4ec5\u9650\u5236\u90a3\u4e9b\u771f\u7684\u4f1a\u5bfc\u81f4\u95ee\u9898\u7684\u5199\u6cd5\uff0c\u8fd9\u4e9b\u95ee\u9898\u5305\u62ec\u903b\u8f91\u95ee\u9898\u3001\u8bed\u6cd5\u95ee\u9898\u3001\u53ef\u8bfb\u6027\u95ee\u9898\u7b49\uff0c\u81f3\u591a\u53ef\u4ee5\u52a0\u5165\u4e00\u4e9b\u56e2\u961f\u8fbe\u6210\u5171\u8bc6\u7684\u98ce\u683c\u89c4\u5219\u3002<\/p>\n<p>\u53e6\u5916\uff0c\u98ce\u683c\u4e2d\u5f88\u591a\u90e8\u5206\u4e5f\u53ef\u4ee5\u901a\u8fc7 EditorConfig \u673a\u5236\u6765\u89e3\u51b3\uff0c\u4e3b\u6d41\u7f16\u8f91\u5668\u3001IDE \u662f\u652f\u6301\u8fd9\u4e2a\u673a\u5236\u7684\uff0c\u4f1a\u81ea\u52a8\u5e94\u7528\u9879\u76ee\u4e0b\u7684.editorconfig \u6587\u4ef6\u4e2d\u7684\u914d\u7f6e\u5185\u5bb9\u3002<\/p>\n<p>JS \u662f\u4e00\u79cd\u6781\u5176\u7075\u6d3b\u7684\u8bed\u8a00\uff0c\u5165\u95e8\u5f88\u7b80\u5355\uff0c\u4f46\u8981\u60f3\u7528\u597d\u9700\u8981\u5927\u91cf\u7684\u77e5\u8bc6\u50a8\u5907\u548c\u4f7f\u7528\u7ecf\u9a8c\uff0cTS \u3001Go \u7b49\u5728\u8fd9\u65b9\u9762\u96be\u5ea6\u4f4e\u5f88\u591a\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4410498\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ericgui <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6240\u4ee5\u8fd8\u662f Java \u597d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u76f4\u6709\u4e00\u4e2a\u7591\u60d1\uff1a Standard&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/217146"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=217146"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/217146\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=217146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=217146"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=217146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}