# ESLint rule-set
# =============================================================================
# The following rules are intended to be the least restrictive possible. Tweak
# them as much as you want, or simply replace this file with another one you
# have previously edited.
#
# You can learn more about ESLint rules at <http://eslint.org/docs/rules/>.

env:
  es6: true                           # Enable ES2015 global variables
  browser: true                       # Enable Browser global variables

parserOptions:
  ecmaVersion: 6                      # Validate ES2015 features
  sourceType: module                  # Allow ES2015 modules

globals:
  PIXI: false
  Phaser: false

extends: 'eslint:recommended'

rules:
  indent: [2, 4]                      # Indent code with 2 spaces
  quotes: [2, single]                 # Use single quotes for strings
  linebreak-style: [2, unix]          # Favor Unix-style line endings
  semi: [2, always]                   # End lines with semicolons
  no-console: [1]
