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-extensions/merge_requests/50
This commit is contained in:
Florian Müllner
2019-01-28 01:40:51 +01:00
parent ff79588d3b
commit c8a1cd9c99

View File

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