lint: Allow multiple spaces before key values

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
This commit is contained in:
Florian Müllner 2019-01-28 01:40:51 +01:00 committed by Georges Basile Stavracas Neto
parent f6bed08993
commit 42b77e7ba5

View File

@ -7,6 +7,14 @@
"allow": ["^vfunc_", "^on_"]
}
],
"key-spacing": [
"error",
{
"mode": "minimum",
"beforeColon": false,
"afterColon": true
}
],
"object-curly-spacing": [
"error",
"always"