[polari] lint: Enforce consistent brace style of blocks
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] lint: Enforce consistent brace style of blocks
- Date: Thu, 4 Apr 2019 16:01:48 +0000 (UTC)
commit 20fd0a8edb16714369983eaaf6b1b68fc381198c
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Apr 4 02:46:04 2019 +0200
lint: Enforce consistent brace style of blocks
Now that we have tweaked the existing use of braces to what's possible
with eslint, turn on a corresponding rule to enforce the style auto-
matically.
https://gitlab.gnome.org/GNOME/polari/merge_requests/108
lint/eslintrc-polari.json | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/lint/eslintrc-polari.json b/lint/eslintrc-polari.json
index 1d4bc33..a768799 100644
--- a/lint/eslintrc-polari.json
+++ b/lint/eslintrc-polari.json
@@ -7,6 +7,11 @@
"allow": ["^vfunc_"]
}
],
+ "curly": [
+ "error",
+ "multi-or-nest",
+ "consistent"
+ ],
"no-unused-vars": [
"error",
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]