
extends:
    - eslint:recommended
    - eslint-config-standard

parserOptions:
    ecmaVersion: 11
    sourceType:  module

env:
    browser:        true
    node:           true
    mocha:          true
    commonjs:       true
    worker:         true
    serviceworker:  true

globals:
    process:        true

rules:
    #   modified rules
    indent:                              [ "error", 4, { "SwitchCase": 1 } ]
    linebreak-style:                     [ "error", "unix" ]
    semi:                                [ "error", "never" ]
    operator-linebreak:                  [ "error", "after", { "overrides": { "&&": "before", "||": "before", ":": "after" } } ]
    brace-style:                         [ "error", "stroustrup", { "allowSingleLine": true } ]
    quotes:                              [ "error", "double" ]

    #   disabled rules
    no-multi-spaces:                     off
    no-multiple-empty-lines:             off
    key-spacing:                         off
    object-property-newline:             off
    curly:                               off
    space-in-parens:                     off
    array-bracket-spacing:               off
    require-atomic-updates:              off
    no-void:                             off
    lines-between-class-members:         off
    quote-props:                         off
    object-curly-newline:                off
    node/no-callback-literal:            off
    multiline-ternary:                   off
    no-new:                              off
    no-unneeded-ternary:                 off

