diff options
author | Florian Müllner <fmuellner@gnome.org> | 2019-01-28 05:52:24 +0100 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2019-07-12 16:01:07 +0000 |
commit | f6bed089939fce78b7fa0f97a4e9e189d60df3ae (patch) | |
tree | 2dd353ffbef98eb87e0411b026f22caa989dc59a /lint | |
parent | 5f77cdb0b96dc0c69ff05e53c1d5d956c6972b6f (diff) | |
download | gnome-shell-f6bed089939fce78b7fa0f97a4e9e189d60df3ae.tar.gz |
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/merge_requests/609
Diffstat (limited to 'lint')
-rw-r--r-- | lint/eslintrc-shell.json | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lint/eslintrc-shell.json b/lint/eslintrc-shell.json index c5bed8690..194966b13 100644 --- a/lint/eslintrc-shell.json +++ b/lint/eslintrc-shell.json @@ -1,5 +1,12 @@ { "rules": { + "camelcase": [ + "error", + { + "properties": "never", + "allow": ["^vfunc_", "^on_"] + } + ], "object-curly-spacing": [ "error", "always" |