{"id":435563,"date":"2021-04-18T20:51:00","date_gmt":"2021-04-18T12:51:00","guid":{"rendered":"http:\/\/4563.org\/?p=435563"},"modified":"2021-04-18T20:51:00","modified_gmt":"2021-04-18T12:51:00","slug":"%e6%b1%82%e9%97%ae-vscode-%e6%a0%bc%e5%bc%8f%e5%8c%96-vue-%e4%bb%a3%e7%a0%81%e7%9a%84%e6%9c%80%e4%bd%b3%e5%a7%bf%e5%8a%bf%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=435563","title":{"rendered":"\u6c42\u95ee vscode \u683c\u5f0f\u5316 vue \u4ee3\u7801\u7684\u6700\u4f73\u59ff\u52bf\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u6c42\u95ee vscode \u683c\u5f0f\u5316 vue \u4ee3\u7801\u7684\u6700\u4f73\u59ff\u52bf\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : iscurry <\/span>  <span><i><\/i> 4<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5f53\u6211\u683c\u5f0f\u5316 vue \u4ee3\u7801\u65f6\uff0c\u65b9\u6cd5\u683c\u5f0f\u5316\u6548\u679c\u4e3a\uff1aa() {}<br \/> \u4f46\u662f\u8fd9\u6837\u5728\u8fd0\u884c\u65f6\u63d0\u793a\u683c\u5f0f\u4e0d\u6b63\u786e\uff0c\u672c\u8be5\u683c\u5f0f\u5316\u4e3a a () {} \u8bf7\u95ee\u8be5\u5982\u4f55\u64cd\u4f5c\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>14<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5653873\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : CheckTime <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u63d0\u4f9b\u53c2\u8003\uff1a\u6211\u5728 Jetbrains \u4e0a\uff0c\u4f7f\u7528\u914d\u7f6e\u4e86 ESLint \u7684\u9879\u76ee\uff0c\u4f7f\u7528 Fix ESLint Problems \u53ef\u4ee5\u683c\u5f0f\u5316\u4ee3\u7801                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5653874\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Track13 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             cli \u521b\u5efa\u9879\u76ee\u7684\u65f6\u5019\u4f60\u9009\u7684 Standard Style?<br \/>https:\/\/standardjs.com\/                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5653875\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zhuweiyou <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             prettier \u63d2\u4ef6                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5653876\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : renmu123 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5b89\u88c5 vetur \u63d2\u4ef6\u3002\u6216 npm \u5b89\u88c5 prettier \u540e\u914d\u7f6e\u6587\u4ef6\uff0c\u8bbe\u7f6e\u4e3a\u4fdd\u5b58\u65f6\u81ea\u52a8\u683c\u5f0f\u5316                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5653877\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : AeroXu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Vetur \u53ef\u4ee5\u8bfb\u53d6\u4f60\u7684 prettier \u914d\u7f6e\uff0c\u7136\u540e\u683c\u5f0f\u5316\u3002\u53e6\u5916 prettier \u4e5f\u53ef\u4ee5\u683c\u5f0f\u5316 vue \u6587\u4ef6\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5653878\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : noqwerty <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u54c8\u54c8\u54c8\u54c8\u6362\u4e86\u4e2a\u95ee\u6cd5\u771f\u7684\u6ca1\u4eba\u55b7\u4f60\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5653879\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : devld <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             vetur \u53ef\u4ee5\u914d\u7f6e js\/ts \u683c\u5f0f\u5316\u5668\u3002prettier \u8c8c\u4f3c\u4e0d\u80fd\u914d\u7f6e\u65b9\u6cd5\u540d\u540e\u9762\u7684\u7a7a\u683c\uff0c\u9ed8\u8ba4\u6ca1\u7a7a\u683c\uff1b\u5982\u679c\u7528 vscode \u81ea\u5e26\u7684\u683c\u5f0f\u5316\u5668\uff0c\u53ef\u4ee5\u914d\u7f6e\u65b9\u6cd5\u540d\u540e\u9762\u7684\u6709\u6ca1\u6709\u7a7a\u683c\u3002<\/p>\n<p>\u62a5\u9519\u662f\u56e0\u4e3a eslint \u7684\u89c4\u5219\uff0c\u6211\u7528 prettier \u65f6\uff0c\u76f4\u63a5\u628a\u8fd9\u4e2a\u89c4\u5219\u7981\u7528\u6389\u4e86\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5653880\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wozhihuipinyin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u62f7\u4e00\u4efd\u5927\u4f6c\u7684\u914d\u7f6e\u6587\u4ef6\uff0ceslint \u518d\u4e5f\u4e0d\u4f1a\u62a5\u9519\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5653881\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jimliang <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             eslint auto fix                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5653882\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : bojackhorseman <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @noqwerty \u54c8\u54c8\u54c8\uff0c\u8fd9\u6837                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5653883\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : FightPig <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             prettier + eslint                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5653884\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : uxstone <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @\u5c24\u5c0f\u53f3                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5653885\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : kid740246048 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5efa\u8bae\u7528 prettier \u683c\u5f0f\u5316\u4ee3\u7801\uff0c\u7136\u540e eslint \u914d\u4e0b\u89c4\u5219\uff0c\u4ec5\u68c0\u67e5\u8bed\u6cd5\u800c\u4e0d\u68c0\u67e5\u683c\u5f0f\uff0c\u4e0d\u7136\u5927\u6982\u7387\u8ddf prettier \u8d77\u51b2\u7a81\u3002<br \/>\u987a\u4fbf\u63a8\u8350\u4e00\u5957\u4e00\u76f4\u5728\u7528\u7684 eslint \u89c4\u5219\uff1a https:\/\/github.com\/AlloyTeam\/eslint-config-alloy                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5653886\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : laicanwen <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u770b\u4f60\u7684\u683c\u5f0f\u5316\u89c4\u5219\uff0c\u683c\u5f0f\u5316\u4ee3\u7801\u5e94\u8be5\u7528\u7684\u662f prettier \u6216\u5176\u4ed6\u7684\u3002\u7136\u540e\u62a5\u9519\u662f\u56e0\u4e3a eslint \u7684\u89c4\u5219\u68c0\u67e5\u3002<br \/>prettier \u65e0\u6cd5\u683c\u5f0f\u5316\u4e3a a () {}\uff0c\u8fd9\u4e00\u70b9\u662f\u8ddf eslint \u51b2\u7a81\u7684\u3002<br \/>\u5982\u679c\u662f\u4f60\u7684\u4e2a\u4eba\u9879\u76ee\uff0c\u53ef\u4ee5\u8003\u8651\u4fee\u6539 eslint \u89c4\u5219\u6216\u4f7f\u7528 eslint \u63d2\u4ef6\u914d\u5408 eslint \u8fdb\u884c\u683c\u5f0f\u5316\u3002\u5982\u679c\u662f\u591a\u4eba\u516c\u53f8\u9879\u76ee\u4f60\u6ca1\u529e\u6cd5\u4fee\u6539\u89c4\u5219\uff0c\u90a3\u4f60\u5c31\u4e56\u4e56\u7167 eslint \u7684\u89c4\u5b9a\u53bb\u683c\u5f0f\u5316\u3002<br \/>\u4e2a\u4eba\u7684\u914d\u7f6e\u662f\u683c\u5f0f\u5316\u4f7f\u7528 eslint \u63d2\u4ef6\uff0c\u4ee5\u53ca\u4fdd\u5b58\u6587\u4ef6\u65f6\u81ea\u52a8\u683c\u5f0f\u5316\u4ee3\u7801\uff0cvue \u548c js \u90fd\u662f\u540c\u7406\u3002\u5177\u4f53\u7684\u914d\u7f6e\u5728 vsc \u7684 setting \u6587\u4ef6\u91cc\uff0c\u5177\u4f53\u64cd\u4f5c\u767e\u5ea6\u5f88\u591a\uff0c\u6211\u5c31\u4e0d\u8d58\u8ff0\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u6c42\u95ee vscode \u683c\u5f0f\u5316 vue&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\/435563"}],"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=435563"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/435563\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=435563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=435563"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=435563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}