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
This commit is contained in:
Florian Müllner 2019-01-28 05:52:24 +01:00 committed by Georges Basile Stavracas Neto
parent 5f77cdb0b9
commit f6bed08993

View File

@ -1,5 +1,12 @@
{ {
"rules": { "rules": {
"camelcase": [
"error",
{
"properties": "never",
"allow": ["^vfunc_", "^on_"]
}
],
"object-curly-spacing": [ "object-curly-spacing": [
"error", "error",
"always" "always"