Skip to content

Commit

Permalink
Added eslint config.
Browse files Browse the repository at this point in the history
Fixes #22.
  • Loading branch information
whitelynx committed Aug 12, 2015
1 parent 6479ee7 commit 8bf708b
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
env:
node: true

ecmaFeatures:
templateStrings: true

classes: true

arrowFunctions: true
defaultParams: true
restParams: true
spread: true
superInFunctions: true
generators: true

blockBindings: true
destructuring: true
forOf: true

binaryLiterals: true
octalLiterals: true
unicodeCodePointEscapes: true

objectLiteralComputedProperties: true
objectLiteralShorthandMethods: true
objectLiteralShorthandProperties: true

# Note: Rules are modified using a number that defines what the rule's behavior should be:
# 0 - turn the rule off
# 1 - turn the rule on as a warning (doesn't affect exit code)
# 2 - turn the rule on as an error (exit code is 1 when triggered)
rules:
semi: [2, "always"]
no-extra-semi: 2
semi-spacing: 2
comma-spacing: 2
strict: [1, "global"]
no-unused-vars: 1
no-use-before-define: [2, "nofunc"]

# Disabled:
no-underscore-dangle: 0
quotes: 0

# vim: ft=yaml

0 comments on commit 8bf708b

Please sign in to comment.