From ff79588d3ba6007939c09b267a482a78cb7bc464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Mon, 28 Jan 2019 05:52:24 +0100 Subject: [PATCH] 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. https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/50 --- lint/eslintrc-shell.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lint/eslintrc-shell.json b/lint/eslintrc-shell.json index 6064dcb0..a0415944 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"