42b77e7ba5
This is useful for imitating namespaced flags/enums: ``` const FooFlags = { NONE: 0, SMEAGLY: 1 << 0, SMOGLEY: 1 << 1, MUGGLY: 1 << 2 }; ``` https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/609
39 lines
857 B
JSON
39 lines
857 B
JSON
{
|
|
"rules": {
|
|
"camelcase": [
|
|
"error",
|
|
{
|
|
"properties": "never",
|
|
"allow": ["^vfunc_", "^on_"]
|
|
}
|
|
],
|
|
"key-spacing": [
|
|
"error",
|
|
{
|
|
"mode": "minimum",
|
|
"beforeColon": false,
|
|
"afterColon": true
|
|
}
|
|
],
|
|
"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
|
|
}
|
|
}
|
|
]
|
|
}
|