{
  "root": true,
  "parser": "@babel/eslint-parser",

  "plugins": [
    "react"
  ],

  "extends": [
    "eslint:recommended",
    "plugin:react/recommended"
  ],

  "rules": {
    "semi": ["error", "always"],
    "keyword-spacing": "error",
    "space-infix-ops": "error",
    "space-before-blocks": "error",
    "array-bracket-spacing": ["error", "never"],
    "brace-style": ["error", "1tbs", { "allowSingleLine": true }],
    "comma-spacing": ["error", {"before": false, "after": true}],
    "computed-property-spacing": ["error", "never"],
    "eol-last": "error",
    "indent": ["error", 2, { "SwitchCase": 1, "VariableDeclarator": { "var": 2, "let": 2, "const": 3 } }],
    "no-case-declarations": "off",
    "no-console": [1, { "allow": ["warn", "error", "info"] }],
    "no-else-return": "error",
    "no-mixed-spaces-and-tabs": ["error", "smart-tabs"],
    "no-trailing-spaces": "error",
    "semi-spacing": ["error", {"before": false, "after": true}],
    "space-in-parens": ["error", "never"],
    "space-unary-ops": "error",
    "no-unused-vars": ["error", {"varsIgnorePattern": "ReactDOM"}],
    "react/display-name": "off",
    // disabling for now since there are too many components without PropTypes
    "react/prop-types": "off"    
  },

  "parserOptions": {
    "sourceType": "module",
    "ecmaFeatures": {
      "jsx": true,
      "experimentalObjectRestSpread": true
    }
  },

  "env": {
    "browser": true,
    "node": true,
    "jquery": true,
    "amd": true,
    "mocha": true,
    "phantomjs": true,
    "es6": true
  },

  "globals": {
    "document": true,
    "window": true,
    "location": true,
    "alert": true,
    "console": true,
    "clearInterval": true,
    "setInterval": true,
    "setTimeout": true,
    "prompt": true,
    "confirm": true,

    "jQuery": true,
    "Backbone": true,
    "$": true,
    "_": true,
    "require": true,
    "module": true,
    "sinon": true,
    "it": true,
    "describe": true,
    "beforeEach": true,
    "afterEach": true,
    "before": true,
    "after": true,
    "define": true,
    "expect": true,
    "prettyPrint": true,
    "jest": true,
    "fail": true
  },

  "settings": {
    "react": {
      "version": "detect"
    }
  }
}
