[gnome-shell-extensions/wip/fmuellner/lint-ci: 6/17] lint: Allow multiple spaces before key values
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions/wip/fmuellner/lint-ci: 6/17] lint: Allow multiple spaces before key values
- Date: Mon, 28 Jan 2019 05:40:57 +0000 (UTC)
commit e303d9c818094f487826039b63fbcfd8db63eabe
Author: Florian Müllner <fmuellner gnome org>
Date: Mon Jan 28 01:40:51 2019 +0100
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
};
```
lint/eslintrc-shell.json | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/lint/eslintrc-shell.json b/lint/eslintrc-shell.json
index a041594..c02c6ca 100644
--- a/lint/eslintrc-shell.json
+++ b/lint/eslintrc-shell.json
@@ -8,6 +8,14 @@
"allow": ["^vfunc_"]
}
],
+ "key-spacing": [
+ "error",
+ {
+ "mode": "minimum",
+ "beforeColon": false,
+ "afterColon": true
+ }
+ ],
"object-curly-spacing": [
"error",
"always"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]