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:
parent
5f77cdb0b9
commit
f6bed08993
@ -1,5 +1,12 @@
|
|||||||
{
|
{
|
||||||
"rules": {
|
"rules": {
|
||||||
|
"camelcase": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
"properties": "never",
|
||||||
|
"allow": ["^vfunc_", "^on_"]
|
||||||
|
}
|
||||||
|
],
|
||||||
"object-curly-spacing": [
|
"object-curly-spacing": [
|
||||||
"error",
|
"error",
|
||||||
"always"
|
"always"
|
||||||
|
Loading…
Reference in New Issue
Block a user