]> git.proxmox.com Git - pve-eslint.git/commitdiff
try to improve object-curly-newline
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 6 Jun 2020 12:51:01 +0000 (14:51 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 6 Jun 2020 12:53:28 +0000 (14:53 +0200)
for me consistency on open/close is most important..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/app.js

index 509bfad3e76c794a6f586b219d6c2e65b1e3f093..5530615f06664acd5714063b66a8ad42d40c6145 100644 (file)
@@ -209,7 +209,11 @@ const defaultConfig = {
        // "no-underscore-dangle": ["warn", { allowAfterThis: true }], // we use it for unused variables, like in rust
        "no-unneeded-ternary": "warn",
        "no-whitespace-before-property": "warn",
-       "object-curly-newline": "warn",
+       "object-curly-newline": ["warn", {
+           "multiline": true,
+           //"minProperties": 2, // FIXME: enable this??
+           "consistent": true,
+       }],
        "object-curly-spacing": ["warn", "always"],
        "operator-linebreak": ["warn", "after", {
            "overrides": {