]> git.proxmox.com Git - pve-eslint.git/commitdiff
adapt some rules
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 6 Jun 2020 10:50:21 +0000 (12:50 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 6 Jun 2020 11:29:24 +0000 (13:29 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/app.js

index 88f8fc3302cce7c42183896a6f7248b10b8cbd5b..569b9cfee6a4df8e49b898f65cf8908760112232 100644 (file)
@@ -211,7 +211,13 @@ const defaultConfig = {
        "no-whitespace-before-property": "warn",
        "object-curly-newline": "warn",
        "object-curly-spacing": ["warn", "always"],
-       "operator-linebreak": ["warn", "after", { overrides: { "?": "after" } }],
+       "operator-linebreak": ["warn", "after", {
+           "overrides": {
+               "?": "before",
+               ":": "before",
+               "+": "ignore",
+           },
+       }],
        "padded-blocks": ["warn", "never"], // not sure ...
        "quote-props": ["warn", "as-needed", { keywords: true, unnecessary: false }], // does nothing, maybe deactivate unnecessary
        "semi": "warn",
@@ -225,7 +231,7 @@ const defaultConfig = {
        "unicode-bom": "warn",
        "arrow-body-style": "warn",
        "arrow-spacing": "warn",
-       "no-confusing-arrow": "warn",
+       // "no-confusing-arrow": "warn", // can be useful to do and isn't really confusing
        "prefer-numeric-literals": "warn",
        "template-curly-spacing": "warn",
      },