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:
@@ -8,6 +8,14 @@
|
||||
"allow": ["^vfunc_"]
|
||||
}
|
||||
],
|
||||
"key-spacing": [
|
||||
"error",
|
||||
{
|
||||
"mode": "minimum",
|
||||
"beforeColon": false,
|
||||
"afterColon": true
|
||||
}
|
||||
],
|
||||
"object-curly-spacing": [
|
||||
"error",
|
||||
"always"
|
||||
|
||||
Reference in New Issue
Block a user