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
This commit is contained in:
Florian Müllner
2019-01-28 05:52:24 +01:00
parent 8ae84703a4
commit ff79588d3b

View File

@@ -1,6 +1,13 @@
{
"rules": {
"arrow-spacing": "error",
"camelcase": [
"error",
{
"properties": "never",
"allow": ["^vfunc_"]
}
],
"object-curly-spacing": [
"error",
"always"