From 7de576770efc51708dc01f09a7271b87cefd9c5e Mon Sep 17 00:00:00 2001 From: zhiyuanliang Date: Fri, 16 Aug 2024 13:05:09 +0800 Subject: [PATCH 1/2] update linting rule --- .eslintrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index 9af943a..d39eda7 100644 --- a/.eslintrc +++ b/.eslintrc @@ -45,6 +45,11 @@ "error", "always" ], - "no-trailing-spaces": "warn" + "no-trailing-spaces": "error", + "space-before-blocks": [ + "error", + "always" + ], + "no-multi-spaces": "error" } } \ No newline at end of file From b6e0b8be82214774ebaffac17f2756a2db214cb3 Mon Sep 17 00:00:00 2001 From: zhiyuanliang Date: Fri, 16 Aug 2024 13:12:57 +0800 Subject: [PATCH 2/2] update --- .eslintrc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index d39eda7..f2852f8 100644 --- a/.eslintrc +++ b/.eslintrc @@ -50,6 +50,12 @@ "error", "always" ], - "no-multi-spaces": "error" + "no-multi-spaces": "error", + "no-multiple-empty-lines": [ + "error", + { + "max": 1 + } + ] } } \ No newline at end of file