{"id":201701,"date":"2020-11-25T07:42:07","date_gmt":"2020-11-24T23:42:07","guid":{"rendered":"http:\/\/4563.org\/?p=201701"},"modified":"2020-11-25T07:42:07","modified_gmt":"2020-11-24T23:42:07","slug":"eslint-%e4%b8%ad%e6%96%87%e6%8e%92%e7%89%88%e6%a3%80%e6%9f%a5%e6%8f%92%e4%bb%b6%ef%bc%88%e5%90%ac%e8%af%b4%e6%9c%89%e4%ba%ba%e4%b8%ad%e8%8b%b1%e6%96%87%e6%b7%b7%e6%8e%92%e5%b0%b1%e6%98%af%e4%b8%8d","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=201701","title":{"rendered":"ESLint \u4e2d\u6587\u6392\u7248\u68c0\u67e5\u63d2\u4ef6\uff08\u542c\u8bf4\u6709\u4eba\u4e2d\u82f1\u6587\u6df7\u6392\u5c31\u662f\u4e0d\u52a0\u7a7a\u683c\uff1f\uff09"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  ESLint \u4e2d\u6587\u6392\u7248\u68c0\u67e5\u63d2\u4ef6\uff08\u542c\u8bf4\u6709\u4eba\u4e2d\u82f1\u6587\u6df7\u6392\u5c31\u662f\u4e0d\u52a0\u7a7a\u683c\uff1f\uff09               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jsq2627 <\/span>  <span><i><\/i> 2<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p><img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/20201125_5fbe7c12af9f2.png\" alt=\"ESLint \u4e2d\u6587\u6392\u7248\u68c0\u67e5\u63d2\u4ef6\uff08\u542c\u8bf4\u6709\u4eba\u4e2d\u82f1\u6587\u6df7\u6392\u5c31\u662f\u4e0d\u52a0\u7a7a\u683c\uff1f\uff09\" \/><\/p>\n<p>\u4f5c\u4e3a\u4e00\u4e2a\u4e2d\u82f1\u6df7\u6392\u5f3a\u8feb\u75c7\u60a3\u8005\uff0c\u7ecf\u5e38\u770b\u5230\u540c\u4e8b\u63d0\u4ea4\u5404\u79cd\u4e0d\u7b26\u5408\u671f\u671b\u7684\u6587\u6848\u3001\u6ce8\u91ca\uff0c\u500d\u611f\u4e0d\u9002\u3002<\/p>\n<p>\u4eca\u5929\u6070\u9022\u770b\u5230\u524d\u8f88\u5f00\u53d1\u7684 zhlint\uff0c\u6b63\u7b26\u5408\u5728\u4e0b\u9700\u8981\uff0c\u4e8e\u662f\u7b80\u5355\u5c01\u88c5\u6210\u4e86 ESLint \u63d2\u4ef6\uff0c\u8fd9\u6837\u53ef\u4ee5\u5728\u9879\u76ee\u4e2d\u76f4\u63a5\u4f7f\u7528\uff08\u5176\u5b9e\u662f\u5f3a\u8feb\u540c\u4e8b\u4f7f\u7528\u54c8\u54c8\uff09<\/p>\n<p>\u7279\u6027\uff1a<\/p>\n<ul>\n<li>\u652f\u6301\u5404\u79cd\u5e38\u89c1\u6df7\u6392\u68c0\u67e5\uff08\u4e2d\u82f1\u6587\u52a0\u7a7a\u683c\uff0c\u6807\u70b9\uff0c\u7b49\u7b49\uff09<\/li>\n<li>\u53ef\u4ee5\u68c0\u67e5 JS \u91cc\u9762\u7684\u5b57\u7b26\u4e32\u548c\u6ce8\u91ca<\/li>\n<li>\u652f\u6301 <code>eslint --fix<\/code> \u4e00\u952e\u4fee\u6b63<\/li>\n<\/ul>\n<p>GitHub\uff1a https:\/\/github.com\/stackia\/eslint-plugin-zhlint \u6b22\u8fce\u6269\u6563~<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>2<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4228718\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lxilu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e2d\u82f1\u6587\u95f4\u9699\u662f\u6392\u7248\u7cfb\u7edf\u7684\u8d23\u4efb\uff0c\u7eaf\u6587\u672c\u4e0d\u8be5\u6709\u7a7a\u683c                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4228719\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : jsq2627 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @lxilu \u7406\u60f3\u662f\u8fd9\u6837\u7684\uff0c\u4f46\u662f\u73b0\u5b9e\u4e16\u754c\u662f\u4e0d\u5b8c\u7f8e\u7684\uff08\u53ea\u6709 macOS\/iOS \u80fd\u6b63\u786e\u5904\u7406\u4e2d\u82f1\u6587\u95f4\u9699\uff09                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>ESLint \u4e2d\u6587\u6392\u7248\u68c0\u67e5\u63d2\u4ef6\uff08\u542c&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\/201701"}],"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=201701"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/201701\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=201701"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=201701"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=201701"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}