From 9abf1b9d73b3288bcc4bbfc954e1d2df707d36ac Mon Sep 17 00:00:00 2001 From: qianxi0410 <894871277@qq.com> Date: Sat, 6 Aug 2022 23:47:28 +0800 Subject: [PATCH] feat: key spacing --- web/.eslintrc | 1 + web/src/App.js | 2 +- web/src/ApplicationEditPage.js | 4 +- web/src/PaymentListPage.js | 2 +- web/src/ProviderListPage.js | 12 ++--- web/src/RecordListPage.js | 2 +- web/src/Setting.js | 92 +++++++++++++++++----------------- web/src/auth/LoginPage.js | 2 +- web/src/auth/SignupPage.js | 2 +- web/src/basic/HomePage.js | 2 +- 10 files changed, 61 insertions(+), 60 deletions(-) diff --git a/web/.eslintrc b/web/.eslintrc index c3fce332..ecb5af06 100644 --- a/web/.eslintrc +++ b/web/.eslintrc @@ -51,6 +51,7 @@ "no-multiple-empty-lines": ["error", { "max": 1, "maxBOF": 0, "maxEOF": 0 }], "space-unary-ops": ["error", { "words": true, "nonwords": false }], "space-infix-ops": "error", + "key-spacing": ["error", { "beforeColon": false, "afterColon": true }], "react/prop-types": "off", diff --git a/web/src/App.js b/web/src/App.js index 6f980693..e5e7d3ee 100644 --- a/web/src/App.js +++ b/web/src/App.js @@ -566,7 +566,7 @@ class App extends Component { renderContent() { if (!Setting.isMobile()) { return ( -