f6bed08993
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
31 lines
664 B
JSON
31 lines
664 B
JSON
{
|
|
"rules": {
|
|
"camelcase": [
|
|
"error",
|
|
{
|
|
"properties": "never",
|
|
"allow": ["^vfunc_", "^on_"]
|
|
}
|
|
],
|
|
"object-curly-spacing": [
|
|
"error",
|
|
"always"
|
|
],
|
|
"prefer-arrow-callback": "error"
|
|
},
|
|
|
|
"overrides": [
|
|
{
|
|
"files": "js/**",
|
|
"excludedFiles": ["js/extensionPrefs/*", "js/portalHelper/*"],
|
|
"globals": {
|
|
"global": false,
|
|
"_": false,
|
|
"C_": false,
|
|
"N_": false,
|
|
"ngettext": false
|
|
}
|
|
}
|
|
]
|
|
}
|