---
parser: babel-eslint

root: true

env:
  browser: true
  node: true
  mocha: true
  es6: true

ecmaFeatures:
  jsx: true

globals:
  cordova: false
  emit: false
  browser: true
  VERSION: false
  CONFIG_NAME: false
  PLATFORM: false

rules:
  # Errors
  array-bracket-spacing: [2, never]
  arrow-spacing: 2
  block-spacing: [2, always]
  max-len: [2, 120, 4]
  indent: [2, 2, {SwitchCase: 1}]
  quotes: [2, single, avoid-escape]
  comma-dangle: [2, always-multiline]
  computed-property-spacing: [2, never]
  brace-style: 2
  consistent-this: [2, self]
  space-after-keywords: [2, always]
  space-before-blocks: [2, always]
  space-before-function-paren: [2, never]
  space-before-keywords: [2, always]
  space-infix-ops: 2
  space-return-throw-case: 2
  space-unary-ops: [1, { words: true, nonwords: false }]
  eol-last: 2
  eqeqeq: [2, smart]
  yoda: 2
  no-unused-expressions: 2
  no-unused-vars: 2
  dot-notation: 2
  dot-location: [2, property]
  consistent-return: 2
  no-shadow: 2
  no-extra-semi: 2
  no-spaced-func: 2
  no-multi-spaces: 2
  no-undef: 2
  no-empty-pattern: 2
  key-spacing: 2
  semi: [2, always]
  new-cap: [2, {capIsNew: true, newIsCap: true}]
  no-trailing-spaces: 2
  comma-style: [2, last]
  no-unreachable: 2
  no-var: 2
  prefer-const: 2
  jsx-quotes: [2, prefer-double]
  camelcase: 2
  no-underscore-dangle: 2
  handle-callback-err: 2
  object-curly-spacing: [2, never]

  # Disabled
  strict: 0
  no-magic-numbers: 0
  camelcase: 0
  no-underscore-dangle: 0
  handle-callback-err: 0
