globals:
    Highcharts: true
    module: true

env:
    browser: true

rules:
    camelcase: [2, {"properties": "always"}]
    comma-dangle: [2, "never"]
    consistent-return: 0
    func-style: 0
    guard-for-in: 0                          # @todo: Make the each function handle objects, then run a guarded for-in there.
    indent: 0                                # @todo: Before release HC5, do a pure whitespace commit
    new-cap: 0                               # The ill-named Color object. Rewrite for HC5?
    no-alert: 2
    no-console: 2
    no-debugger: 2
    no-empty: 0                              # The noop function. @todo: esling-disable-line?
    no-invalid-this: 0
    no-multi-spaces: 0                       # Should be fixed
    no-nested-ternary: 0
    no-shadow: 0                             # Same variable names in nested scopes. @todo: Fix this, it is useful
    no-trailing-spaces: 0
    no-undefined: 0
    no-underscore-dangle: 0                  # @todo: Check this
    object-curly-spacing: [2, "always"]
    space-before-function-paren: [2, {"anonymous": "always", "named": "never"}] # JSLint style
    quotes: [2, "single"]
    spaced-comment: 0
    require-jsdoc: 0
    strict: 0
    valid-jsdoc: 0
    one-var: 0                               # @todo: Before launch HC5, set to [2, "always"]