]> git.proxmox.com Git - pve-eslint.git/commitdiff
disable semi-style for now
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 6 Jun 2020 11:03:29 +0000 (13:03 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 6 Jun 2020 11:37:43 +0000 (13:37 +0200)
In generally we follow it but we want also to allow statements like:

let foo = bar
    ? 'baz'
    : 'foz'
    ;

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

index 569b9cfee6a4df8e49b898f65cf8908760112232..8a89f9aaead9bb177d68d2c5385b7436c05df97c 100644 (file)
@@ -222,7 +222,7 @@ const defaultConfig = {
        "quote-props": ["warn", "as-needed", { keywords: true, unnecessary: false }], // does nothing, maybe deactivate unnecessary
        "semi": "warn",
        "semi-spacing": "warn",
-       "semi-style": "warn",
+       // "semi-style": "warn", // could be useful, but for ?: we often want to allow the ; on the next line
        "space-before-blocks": "warn",
        "space-before-function-paren": ["warn", "never"],
        "space-in-parens": "warn",