{
  "env": {
    "browser": true,
    "commonjs": true
  },

  "rules": {
    // ==== Possible errors ====

    // disallow or enforce trailing commas (recommended)
    "comma-dangle": 2,

    // disallow assignment in conditional expressions (recommended)
    "no-cond-assign": 1,

    // disallow use of constant expressions in conditions (recommended)
    "no-constant-condition": 2,

    // disallow control characters in regular expressions (recommended)
    "no-control-regex": 2,

    // disallow use of debugger (recommended)
    "no-debugger": 2,

    // disallow duplicate arguments in functions (recommended)
    "no-dupe-args": 2,

    // disallow duplicate keys when creating object literals (recommended)
    "no-dupe-keys": 2,

    // disallow a duplicate case label. (recommended)
    "no-duplicate-case": 2,

    // disallow the use of empty character classes in regular expressions (recommended)
    "no-empty-character-class": 2,

    // disallow empty statements (recommended)
    "no-empty": 1,

    // disallow assigning to the exception in a catch block (recommended)
    "no-ex-assign": 2,

    // disallow double-negation boolean casts in a boolean context (recommended)
    "no-extra-boolean-cast": 2,

    // disallow unnecessary semicolons (recommended)
    "no-extra-semi": 2,

    // disallow overwriting functions written as function declarations (recommended)
    "no-func-assign": 2,

    // disallow function or variable declarations in nested blocks (recommended)
    "no-inner-declarations": 2,

    // disallow invalid regular expression strings in the RegExp constructor (recommended)
    "no-invalid-regexp": 2,

    // disallow irregular whitespace outside of strings and comments (recommended)
    "no-irregular-whitespace": 2,

    // disallow negation of the left operand of an in expression (recommended)
    "no-negated-in-lhs": 1,

    // disallow the use of object properties of the global object (Math and JSON) as functions (recommended)
    "no-obj-calls": 2,

    // disallow multiple spaces in a regular expression literal (recommended)
    "no-regex-spaces": 2,

    // disallow sparse arrays (recommended)
    "no-sparse-arrays": 2,

    // disallow unreachable statements after a return, throw, continue, or break statement (recommended)
    "no-unreachable": 1,

    // disallow comparisons with the value NaN (recommended)
    "use-isnan": 2,

    // Ensure JSDoc comments are valid
    // "valid-jsdoc": "",

    // Ensure that the results of typeof are compared against a valid string (recommended)
    "valid-typeof": 2,

    // Avoid code that looks like two expressions but is actually one
    "no-unexpected-multiline": 1,

    // ==== Best practices

    // Enforces getter/setter pairs in objects
    "accessor-pairs": 1,

    // specify curly brace conventions for all control statements
    "curly": 2,

    // encourages use of dot notation whenever possible
    "dot-notation": [2, {"allowKeywords": true}],

    // enforces consistent newlines before or after dots
    "dot-location": [2, "property"],

    // disallow the use of alert, confirm, and prompt
    "no-alert": 2,

    // disallow use of arguments.caller or arguments.callee
    "no-caller": 2,

    // disallow division operators explicitly at beginning of regular expression
    "no-div-regex": 1,

    // disallow else after a return in an if
    "no-else-return": 1,

    // disallow use of eval()
    "no-eval": 2,

    // disallow adding to native types
    "no-extend-native": 2,

    // disallow unnecessary function binding
    "no-extra-bind": 2,

    // disallow the use of leading or trailing decimal points in numeric literals
    "no-floating-decimal": 2,

    // disallow the type conversions with shorter notations
    "no-implicit-coercion": 2,

    // disallow use of eval()-like methods
    "no-implied-eval": 2,

    // disallow usage of __iterator__ property
    "no-iterator": 2,

    // disallow use of labeled statements
    "no-labels": 2,

    // disallow unnecessary nested blocks
    "no-lone-blocks": 2,

    // disallow creation of functions within loops
    "no-loop-func": 2,

    // disallow use of multiple spaces
    "no-multi-spaces": 2,

    // disallow use of multiline strings
    "no-multi-str": 2,

    // disallow reassignments of native objects
    "no-native-reassign": 2,

    // disallow use of new operator for Function object
    "no-new-func": 2,

    // disallows creating new instances of String,Number, and Boolean
    "no-new-wrappers": 2,

    // disallow use of the new operator when not part of an assignment or comparison
    "no-new": 1,

    // disallow use of octal escape sequences in string literals, such as var foo = "Copyright \251";
    "no-octal-escape": 2,

    // disallow use of octal literals (recommended)
    "no-octal": 2,

    // disallow reassignment of function parameters
    "no-param-reassign": 1,

    // disallow usage of __proto__ property
    "no-proto": 2,

    // disallow declaring the same variable more than once (recommended)
    "no-redeclare": 2,

    // disallow use of assignment in return statement
    "no-return-assign": 2,

    // disallow use of javascript: urls.
    "no-script-url": 2,

    // disallow comparisons where both sides are exactly the same
    "no-self-compare": 2,

    // disallow use of the comma operator
    "no-sequences": 2,

    // restrict what can be thrown as an exception
    "no-throw-literal": 2,

    // disallow usage of expressions in statement position
    "no-unused-expressions": 2,

    // disallow unnecessary .call() and .apply()
    "no-useless-call": 2,

    // disallow use of the void operator
    "no-void": 2,

    // disallow usage of configurable warning terms in comments - e.g. TODO or FIXME
    "no-warning-comments": 1,

    // disallow use of the with statement
    "no-with": 2,

    // require use of the second argument for parseInt()
    "radix": 1,

    // require immediate function invocation to be wrapped in parentheses
    "wrap-iife": 2,

    // require or disallow Yoda conditions
    "yoda": 2,

    // ==== Variables ====

    // disallow the catch clause parameter name being the same as a variable in the outer scope
    "no-catch-shadow": 1,

    // disallow deletion of variables (recommended)
    "no-delete-var": 2,

    // disallow labels that share a name with a variable
    "no-label-var": 2,

    // disallow shadowing of names such as arguments
    "no-shadow-restricted-names": 2,

    // disallow declaration of variables already declared in the outer scope
    "no-shadow": 1,

    // disallow use of undefined when initializing variables
    "no-undef-init": 2,

    // disallow use of undeclared variables unless mentioned in a /*global */ block (recommended)
    "no-undef": 2,

    // disallow declaration of variables that are not used in the code (recommended)
    "no-unused-vars": 1,

    // disallow use of variables before they are defined
    "no-use-before-define": 2,

    // ==== Node ===

    // disallow use of new operator with the require function
    "no-new-require": 2,

    // disallow string concatenation with __dirname and __filename
    "no-path-concat": 2,

    // ==== Formatting ====

    // enforce spacing inside array brackets
    "array-bracket-spacing": 2,

    // disallow or enforce spaces inside of single line blocks
    "block-spacing": 2,

    // enforce one true brace style
    "brace-style": [2, "1tbs", { "allowSingleLine": true}],

    // require camel case names
    "camelcase": 2,

    // enforce spacing before and after comma
    "comma-spacing": 2,

    // enforce one true comma style
    "comma-style": 2,

    // require or disallow padding inside computed properties
    "computed-property-spacing": 2,

    // enforce consistent naming when capturing the current execution context
    "consistent-this": [2, "that"],

    // enforce newline at the end of file, with no multiple empty lines
    "eol-last": [1],

    // enforce use of function declarations or expressions
    "func-style": [1, "expression"],

    // specify tab or space width for your code
    "indent": [2, 4],

    // enforce spacing between keys and values in object literal properties
    "key-spacing": 2,

    // enforce empty lines around comments
    "lines-around-comment": [1, {
      "beforeBlockComment": true,
      "beforeLineComment": true,
      "allowBlockStart": true
    }],

    // disallow mixed 'LF' and 'CRLF' as linebreaks
    "linebreak-style": 2,

    // specify the maximum depth callbacks can be nested
    "max-nested-callbacks": [1, 3],

    // require a capital letter for constructors
    "new-cap": 2,

    // disallow the omission of parentheses when invoking a constructor with no arguments
    "new-parens": 2,

    // require or disallow an empty newline after variable declarations
    "newline-after-var": 1,

    // disallow use of the Array constructor
    "no-array-constructor": 1,

    // disallow comments inline after code
    "no-inline-comments": 1,

    // disallow if as the only statement in an else block
    "no-lonely-if": 2,

    // disallow mixed spaces and tabs for indentation (recommended)
    "no-mixed-spaces-and-tabs": 2,

    // disallow multiple empty lines
    "no-multiple-empty-lines": 2,

    // disallow nested ternary expressions
    "no-nested-ternary": 2,

    // disallow the use of the Object constructor
    "no-new-object": 2,

    // disallow space between function identifier and application
    "no-spaced-func": 2,

    // disallow trailing whitespace at the end of lines
    "no-trailing-spaces": 2,

    // disallow dangling underscores in identifiers
    "no-underscore-dangle": 2,

    // disallow the use of Boolean literals in conditional expressions
    "no-unneeded-ternary": 2,

    // require or disallow padding inside curly braces
    "object-curly-spacing": 2,

    // enforce operators to be placed before or after line breaks
    "operator-linebreak": 2,

    // enforce padding within blocks
    "padded-blocks": [2, "never"],

    // require quotes around object literal property names
    "quote-props": [2, "as-needed"],

    // specify whether backticks, double or single quotes should be used
    "quotes": [2, "single", "avoid-escape"],

    // enforce spacing before and after semicolons
    "semi-spacing": 2,

    // require or disallow use of semicolons instead of ASI
    "semi": 2,

    // require a space after certain keywords
    "space-after-keywords": 2,

    // require or disallow a space before blocks
    "space-before-blocks": 2,

    // require or disallow a space before function opening parenthesis
    "space-before-function-paren": [2, "never"],

    // require or disallow spaces inside parentheses
    "space-in-parens": 2,

    // require spaces around operators
    "space-infix-ops": 2,

    // require a space after return, throw, and case
    "space-return-throw-case": 2,

    // require or disallow spaces before/after unary operators
    "space-unary-ops": 2,

    // require or disallow a space immediately following the // or /* in a comment
    "spaced-comment": 2
  }
}
