{"id":10007084,"date":"2023-01-17T08:19:49","date_gmt":"2023-01-17T00:19:49","guid":{"rendered":"https:\/\/ityet.com\/?p=10007084"},"modified":"2023-01-17T08:19:49","modified_gmt":"2023-01-17T00:19:49","slug":"%e5%89%8d%e7%ab%af%e9%a3%9f%e5%a0%82%e6%8a%80%e6%9c%af%e5%91%a8%e5%88%8a%e7%ac%ac-67-%e6%9c%9f%ef%bc%9a2022-state-of-js%e3%80%81eslint-2022%e3%80%81%e5%a4%a7%e6%b7%98%e5%ae%9d-web-%e7%ab%af%e6%8a%80","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10007084","title":{"rendered":"\u524d\u7aef\u98df\u5802\u6280\u672f\u5468\u520a\u7b2c 67 \u671f\uff1a2022 State of JS\u3001ESLint 2022\u3001\u5927\u6dd8\u5b9d Web \u7aef\u6280\u672f\u6982\u89c8"},"content":{"rendered":"<p><strong>\u7f8e\u5473\u503c\uff1a\ud83c\udf1f\ud83c\udf1f\ud83c\udf1f\ud83c\udf1f\ud83c\udf1f<\/strong><\/p>\n<p><strong>\u53e3\u5473\uff1a\u4e1c\u5317\u5927\u996d\u5305<\/strong><\/p>\n<ul>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=5hJnEPPUbgT9K%2FjqjLOQwA%3D%3D.jxKNqCEzEGX20S9Z%2F%2BX7nAMj9WJjTf%2BX0pKntC%2F5MKxwVzTf8NvOr1mYma2E7vgW\" rel=\"nofollow\" title=\"\u98df\u5802\u6280\u672f\u5468\u520a\u4ed3\u5e93\u5730\u5740\uff1ahttps:\/\/github.com\/Geekhyt\/weekly\">\u98df\u5802\u6280\u672f\u5468\u520a\u4ed3\u5e93\u5730\u5740\uff1ahttps:\/\/github.com\/Geekhyt\/weekly<\/a><\/li>\n<\/ul>\n<h2>\u672c\u671f\u6458\u8981<\/h2>\n<ul>\n<li>2022 State of JS \u7ed3\u679c\u51fa\u7089<\/li>\n<li>ESLint 2022 \u5e74\u7ec8\u603b\u7ed3<\/li>\n<li>pnpm 2022 \u5e74\u7ec8\u603b\u7ed3<\/li>\n<li>\u5927\u6dd8\u5b9d Web \u7aef\u6280\u672f\u6982\u89c8<\/li>\n<li>\u4e3b\u6d41\u65f6\u95f4\u5e93\u6a2a\u5411\u5bf9\u6bd4<\/li>\n<li>\u7ed9 Node.js \u5f00\u53d1\u8005\u7684 Golang \u6559\u7a0b<\/li>\n<li>2022 CodePen \u6700\u53d7\u6b22\u8fce\u7684 Pens<\/li>\n<li>\u6539\u8fdb Core Web Vitals \u7684\u6700\u4f73\u5b9e\u8df5<\/li>\n<\/ul>\n<p>\u5927\u5bb6\u597d\uff0c\u6211\u662f\u7ae5\u6b27\u5df4\u3002\u6b22\u8fce\u6765\u5230\u524d\u7aef\u98df\u5802\u6280\u672f\u5468\u520a\uff0c\u6211\u4eec\u5148\u6765\u770b\u4e0b\u4e0a\u5468\u7684\u6280\u672f\u8d44\u8baf\u3002<\/p>\n<h2>\u6280\u672f\u8d44\u8baf<\/h2>\n<h3>1. <a href=\"https:\/\/link.segmentfault.com\/?enc=bqWWjUdiHNwhd27FTaH7eA%3D%3D.BvThhOmI4TzNgBA5bmTO270Ha6KAzhdAebwS93ehEk09nV5jV3mtfdjy4LO7%2BeqF\" rel=\"nofollow\">2022 State of JS \u7ed3\u679c\u51fa\u7089<\/a><\/h3>\n<p>State of JS \u7ed3\u679c\u7ec8\u4e8e\u51fa\u7089\uff0c\u770b\u770b\u6709\u591a\u5c11\u4f60\u6ca1\u542c\u8fc7\u7684\u6280\u672f\u548c\u5f00\u53d1\u8005\uff1f\u6211\u8ba4\u4e3a\u5982\u679c 95% \u4f60\u90fd\u5173\u6ce8\u7684\u8bdd\uff0c\u4f60\u5df2\u7ecf\u6709\u4e86\u4e00\u4e2a\u4e0d\u9519\u7684\u524d\u7aef\u6280\u672f\u89c6\u91ce\u4e86\u3002<\/p>\n<h3>2. <a href=\"https:\/\/link.segmentfault.com\/?enc=r120UaenMFTW%2FWjV7T3J3w%3D%3D.nyIZv3AmZrMB2ztn9HcO1m79W8CSFwBoQE0Aixbc3j4hl6liLF1M6kJk7uPthBv4UL71CUGJaABZAs1kl6pQLw%3D%3D\" rel=\"nofollow\">ESLint 2022 \u5e74\u7ec8\u603b\u7ed3<\/a><\/h3>\n<ul>\n<li>\u7f51\u7ad9\u91cd\u6784<\/li>\n<li>\u65b0\u7684\u914d\u7f6e\u7cfb\u7edf<\/li>\n<li>\u652f\u6301 ES2022<\/li>\n<li>\u6536\u5165\u4e0e\u652f\u51fa<\/li>\n<li>\u8d44\u91d1\u652f\u6301\u9644\u5c5e\u9879\u76ee\u548c\u751f\u6001\u7cfb\u7edf<\/li>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=0R1ao8ZKnfliuKPgeryOzQ%3D%3D.1Xt5Ks5hho2Lg9%2Fe2Y01X2Ys5AmyZb50V1YcrIX4RGmSzgKzLZkosAyZ5maHYr9H62gaYPM5Z%2Fe6mKnOpOKODQ%3D%3D\" rel=\"nofollow\">\u91cd\u5199 ESLint<\/a><\/li>\n<\/ul>\n<h3>3. <a href=\"https:\/\/link.segmentfault.com\/?enc=bNhPHzHEp%2FijRhqetboEQQ%3D%3D.Au9L7%2FwCjEyLxpq3ZDAISy1BDoMpczDWQ3W1syECFJTReRXBJ9viYd0mKmDl6KK3\" rel=\"nofollow\">pnpm 2022 \u5e74\u7ec8\u603b\u7ed3<\/a><\/h3>\n<p>2022 \u5e74\u65b0\u589e\u7684\u4e3b\u8981\u7279\u6027\uff1a<\/p>\n<ul>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=2%2BTI0PZMPH1gBtjupG3BIg%3D%3D.A8lym6GGijE6rQSKzijFQyJdim1abpHZ2od%2F91YVBMtTS6Txg3qPN2ZkAu%2FWxUWsb0y5gEuAv%2Bin4lU04cZoSg%3D%3D\" rel=\"nofollow\">symlinkless hoisted node_modules<\/a><\/li>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=e%2BujvkPrwh0t2VnCg5oKAQ%3D%3D.XOkCec0cqzhE4yufmAfc1T89YT%2FZ2DApaqRSMRpxcuqtf466o33iuFUMCbeClqUw\" rel=\"nofollow\">side-effects-cache<\/a><\/li>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=bnWLMKmjOScOjFRizzNzOw%3D%3D.aADAi5EYf4Ho0P1oA0Wkit1F1447gwKxnBE4cKBwScA%3D\" rel=\"nofollow\">pnpm patch<\/a><\/li>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=ZZPDfv0cIoCn%2Fe%2FAsRBtng%3D%3D.LSd5UFyModgwb16x1s%2FU%2BwYdAiRyy8Mgafyv%2FZY3RHIL00qRXSy%2FiBJOvnbGq6hRWLzy2yhx4Y2LP7HT3ePHQg%3D%3D\" rel=\"nofollow\">Time-based resolution<\/a><\/li>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=KTC%2BQT3pRykFtUd7o6elsQ%3D%3D.YW%2BVKiVbyNCPAkRI9vrlxTKfM05IoDh3ld2leuSAfrU%3D\" rel=\"nofollow\">pnpm licenses list<\/a><\/li>\n<\/ul>\n<p>\u4e0b\u9762\u6211\u4eec\u6765\u770b\u6280\u672f\u8d44\u6599\u3002<\/p>\n<h2>\u6280\u672f\u8d44\u6599<\/h2>\n<h3>1. <a href=\"https:\/\/link.segmentfault.com\/?enc=jokZ1CMf9UzzS%2BhvGcdA2g%3D%3D.bXp3SRMMwAuQbovuEPDm0FVTaoe3JJLmTp4ixvzv1P7anbtAepuOjIR4Q0MEEHbbgQ93sHzbOzhFDifDXoGoXw%3D%3D\" rel=\"nofollow\">\u5927\u6dd8\u5b9d Web \u7aef\u6280\u672f\u6982\u89c8<\/a><\/h3>\n<p>\u6dd8\u5b9d Web \u6280\u672f\u5730\u56fe\u548c\u6280\u672f\u4ea7\u54c1\u4ecb\u7ecd\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000043340525\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<h3>2. <a href=\"https:\/\/link.segmentfault.com\/?enc=QVtMH2hr6YAfyCWI5G%2FXgQ%3D%3D.YTMdx4T5s2AS7vlcm%2FWIcTf2mULxhSQ1L1JobkXq1hQZAJ%2B5KsgAJRXBqP2mzjv9HQkldabAtnYX5s8v%2Bw%2FK7g%3D%3D\" rel=\"nofollow\">\u4e3b\u6d41\u65f6\u95f4\u5e93\u6a2a\u5411\u5bf9\u6bd4<\/a><\/h3>\n<p>\u6587\u7ae0\u5bf9\u6bd4\u4e86 Native Date\u3001Moment.js\u3001Day.js\u3001Date-fns \u7b49\u65f6\u95f4\u5e93\u7684\u4f18\u7f3a\u70b9\uff0c\u5e76\u7ed9\u51fa\u4ee5\u4e0b\u7ed3\u8bba\uff1a<\/p>\n<ul>\n<li>Native Date \u65e0\u6cd5\u76f4\u63a5\u89e3\u6790\u81ea\u5b9a\u4e49\u683c\u5f0f\u7684\u65f6\u95f4\u5b57\u7b26\u4e32\uff0c\u4e14\u5bb9\u6613\u5f15\u5165\u65f6\u533a\u95ee\u9898\u3002(\u4e0d\u63a8\u8350)<\/li>\n<li>Moment.js \u5305\u4f53\u79ef\u8fc7\u5927\uff0c\u4e14\u65f6\u95f4\u5bf9\u8c61\u5b58\u5728 mutable \u95ee\u9898\uff0c\u6e90\u4ee3\u7801\u4e5f\u65e9\u5df2\u505c\u6b62\u7ef4\u62a4\u3002(\u4e0d\u63a8\u8350)<\/li>\n<li>Day.js \u514b\u670d\u4e86 moment.js \u7684\u7f3a\u9677\uff0c\u4e14 api \u4e0e moment.js \u9ad8\u5ea6\u543b\u5408\uff0c\u4ece moment.js \u8fc1\u79fb\u6210\u672c\u4f4e\u3002\u4f46\u662f\u90e8\u5206\u529f\u80fd\u9700\u8981\u901a\u8fc7\u63d2\u4ef6\u5f15\u5165\u3002(\u63a8\u8350\u5728\u4e0d\u6d89\u53ca UTC \u65f6\u95f4\u7684\u60c5\u51b5\u4e0b\u4f7f\u7528)<\/li>\n<li>Date-fns \u540c\u6837\u514b\u670d\u4e86 moment.js \u7684\u7f3a\u9677\uff0c\u5e76\u652f\u6301 tree-shaking\uff0c\u5355\u72ec\u4f7f\u7528\u67d0\u4e9b\u529f\u65f6\uff0c\u5f15\u5165\u7684\u5305\u4f53\u79ef\u751a\u81f3\u5c0f\u4e8e day.js\u3002\u4f46\u9700\u8981\u4ece\u76ee\u6807\u76ee\u5f55\u5bfc\u5165\u6240\u9700\u7684\u5de5\u5177\u51fd\u6570\uff0c\u4e0a\u624b\u96be\u5ea6\u5927\u3002\u5728\u5f15\u5165\u4e86\u591a\u79cd\u5de5\u5177\u51fd\u6570\u6216\u6d89\u53ca\u89e3\u6790\u65f6\u95f4\u5b57\u7b26\u4e32\u65f6\uff0c\u8fd8\u4f1a\u5bfc\u81f4\u5305\u4f53\u79ef\u8fc7\u5927\u3002(\u63a8\u8350\u5b58\u5728\u8f7b\u5ea6\u9700\u6c42\u65f6\u4f7f\u7528)<\/li>\n<\/ul>\n<h3>3. <a href=\"https:\/\/link.segmentfault.com\/?enc=w61g8Xe8%2FG2XdNVMv86NUA%3D%3D.2YLJ4DkC51FgZi7yBvAKKjMz%2FpuQxqqiZ3%2FtnfTdCrbWZPeW9xkVEX3SNleNQZtev3CfOhzWcuOQQFbwYeMgKA%3D%3D\" rel=\"nofollow\">\u7ed9 Node.js \u5f00\u53d1\u8005\u7684 Golang \u6559\u7a0b<\/a><\/h3>\n<p>\u63d0\u4f9b\u5927\u91cf\u8bed\u6cd5\u793a\u4f8b\u5bf9\u6bd4\uff0c\u63d0\u5347\u4f60\u7684\u5b66\u4e60\u6548\u7387\u3002<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/remote\/1460000043340526\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<h3>4. <a href=\"https:\/\/codepen.io\/2022\/popular\/pens\">2022 CodePen \u6700\u53d7\u6b22\u8fce\u7684 Pens<\/a><\/h3>\n<p>CodePen \u5e74\u5ea6 Top 100 Pens \u51fa\u7089\u3002<\/p>\n<h3>5. <a href=\"https:\/\/link.segmentfault.com\/?enc=8v8%2FQirGwz%2FO83iRX5l%2Btw%3D%3D.lzDMc43y2YbNiTX6jqUQVD7Lllrgwp%2BSXOCqsqjyAEo%3D\" rel=\"nofollow\">\u6539\u8fdb Core Web Vitals \u7684\u6700\u4f73\u5b9e\u8df5<\/a><\/h3>\n<p>Chrome DevRel \u56e2\u961f\u603b\u7ed3\u4e86\u5728\u5f53\u4e0b\u63d0\u9ad8 Core Web Vitals \u6027\u80fd\u7684\u6700\u4f73\u5b9e\u8df5\u96c6\u5408\uff0c\u5305\u542b LCP\u3001CLS\u3001FID\u3001INP\u3001TTFB \u7b49\u3002<\/p>\n<h2>\u968f\u673a MDN<\/h2>\n<ul>\n<li><a href=\"https:\/\/link.segmentfault.com\/?enc=X%2BW76j%2BmG%2F%2BlZcBALTscfw%3D%3D.VQu3WE9oNCN%2F4ZHlLERhYDJkBZ8K1PlR0bDmifCFpFJk60mmTZDCSF7Vdr007ELqZRftPEykptGrlcAeRYMsQA%3D%3D\" rel=\"nofollow\">Pointer events<\/a><\/li>\n<\/ul>\n<p>\u597d\u4e86\uff0c\u4ee5\u4e0a\u5c31\u662f\u672c\u671f\u7684\u98df\u5802\u5468\u520a\uff0c\u89c2\u4f17\u8001\u7237\u4eec\u5982\u679c\u89c9\u5f97\u8fd8\u4e0d\u9519\uff0c\u4e00\u952e\u4e09\u8fde\u662f\u5bf9\u98df\u5802\u8001\u677f\u6700\u5927\u7684\u652f\u6301\u3002<\/p>\n<p>\u4f60\u7684\u524d\u7aef\u98df\u5802\uff0c\u5403\u597d\u6bcf\u4e00\u987f\u996d\uff0c\u6211\u4eec\u4e0b\u671f\u89c1\u3002<\/p>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000043340523\">https:\/\/segmentfault.com\/a\/1190000043340523<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7f8e\u5473\u503c\uff1a\ud83c\udf1f\ud83c\udf1f\ud83c\udf1f\ud83c\udf1f\ud83c\udf1f \u53e3\u5473\uff1a\u4e1c\u5317\u5927\u996d\u5305 \u98df\u5802\u6280\u672f\u5468\u520a\u4ed3\u5e93\u5730\u5740\uff1ahttps:\/\/github.com\/Geekhy [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-10007084","post","type-post","status-publish","format-standard","hentry","category-share"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10007084","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10007084"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10007084\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10007084"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10007084"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10007084"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}