[polari/lint-camelcase: 2/2] lint: Enforce camelCase for symbol names



commit 96c02fdf4b4f3a5ce0e4e8f6b5b58c65a1faaf36
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Feb 1 12:08:42 2019 +0100

    lint: Enforce camelCase for symbol names
    
    All variables should be in camelCase, so configure the corresponding
    rule to enforce this. Exempt properties for now, to accommodate the
    existing practice of using C-style underscore names for construct
    properties of introspected objects.
    
    https://gitlab.gnome.org/GNOME/polari/merge_requests/87

 lint/eslintrc-polari.json | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/lint/eslintrc-polari.json b/lint/eslintrc-polari.json
index de29c87..0969b9b 100644
--- a/lint/eslintrc-polari.json
+++ b/lint/eslintrc-polari.json
@@ -8,6 +8,13 @@
                 "allowSingleLine": true
             }
         ],
+        "camelcase": [
+            "error",
+            {
+                "properties": "never",
+                "allow": ["^vfunc_"]
+            }
+        ],
         "indent": [
             "error",
             4,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]