[gjs: 5/6] maint: Don't require lines between single-line class members
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 5/6] maint: Don't require lines between single-line class members
- Date: Sun, 28 Nov 2021 00:06:54 +0000 (UTC)
commit 0f2cb3c49cf060493191ba38bedc1cc9fd3e7c39
Author: Philip Chimento <philip chimento gmail com>
Date: Sat Nov 6 17:44:38 2021 -0700
maint: Don't require lines between single-line class members
Once class fields become common, the requirement to have a blank line in
between each of them would be quite cumbersome and out of step with best
practices.
.eslintrc.yml | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/.eslintrc.yml b/.eslintrc.yml
index 24b1eaca..26270230 100644
--- a/.eslintrc.yml
+++ b/.eslintrc.yml
@@ -85,7 +85,10 @@ rules:
linebreak-style:
- error
- unix
- lines-between-class-members: error
+ lines-between-class-members:
+ - error
+ - always
+ - exceptAfterSingleLine: true
max-nested-callbacks: error
max-statements-per-line: error
new-parens: error
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]