c8a1cd9c99
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-extensions/merge_requests/50
33 lines
676 B
JSON
33 lines
676 B
JSON
{
|
|
"rules": {
|
|
"arrow-spacing": "error",
|
|
"camelcase": [
|
|
"error",
|
|
{
|
|
"properties": "never",
|
|
"allow": ["^vfunc_"]
|
|
}
|
|
],
|
|
"key-spacing": [
|
|
"error",
|
|
{
|
|
"mode": "minimum",
|
|
"beforeColon": false,
|
|
"afterColon": true
|
|
}
|
|
],
|
|
"object-curly-spacing": [
|
|
"error",
|
|
"always"
|
|
],
|
|
"prefer-arrow-callback": "error"
|
|
},
|
|
"globals": {
|
|
"global": false,
|
|
"_": false,
|
|
"C_": false,
|
|
"N_": false,
|
|
"ngettext": false
|
|
}
|
|
}
|