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