[gnome-shell-extensions/wip/fmuellner/lint-ci: 5/17] lint: Enforce camelCase



commit 0c2e8960efbf9c29a27021f5e258719913fb0750
Author: Florian Müllner <fmuellner gnome org>
Date:   Mon Jan 28 05:52:24 2019 +0100

    lint: Enforce camelCase
    
    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.

 lint/eslintrc-shell.json | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/lint/eslintrc-shell.json b/lint/eslintrc-shell.json
index 6064dcb..a041594 100644
--- a/lint/eslintrc-shell.json
+++ b/lint/eslintrc-shell.json
@@ -1,6 +1,13 @@
 {
     "rules": {
         "arrow-spacing": "error",
+        "camelcase": [
+            "error",
+            {
+                "properties": "never",
+                "allow": ["^vfunc_"]
+            }
+        ],
         "object-curly-spacing": [
             "error",
             "always"


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