Skip to content

Instantly share code, notes, and snippets.

@orodio
Created January 15, 2016 03:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save orodio/36af9fcc771e8a3beb72 to your computer and use it in GitHub Desktop.
Save orodio/36af9fcc771e8a3beb72 to your computer and use it in GitHub Desktop.
Drawboard ESlintFile
env:
browser: true
node: true
es6: true
mocha: true
protractor: true
ecmaFeatures:
modules: true
jsx: true
# experimentalObjectRestSpread: true
rules:
accessor-pairs: 2
array-bracket-spacing: [2, "always"]
arrow-body-style: [2, "as-needed"]
arrow-parens: [2, "as-needed"]
arrow-spacing: [2, { "before": true, "after": true }]
brace-style: 2
comma-spacing: 2
comma-style: [2, "last"]
complexity: 2
computed-property-spacing: [2, "always"]
consistent-return: 2
constructor-super: 2
curly: [2, "multi"]
default-case: 2
dot-location: [2, "property"]
dot-notation: [2, {"allowKeywords": true}]
eqeqeq: [2, "smart"]
eol-last: 2
generator-star-spacing: [2, {"before": true, "after": true}]
guard-for-in: 2
indent: [2, 2, {"VariableDeclarator": { "var": 2, "let": 2, "const": 3}}]
jsx-quotes: [2, "prefer-double"]
key-spacing: [2, {"align":"colon", "beforeColon": false, "afterColon":false}]
max-depth: [2,2]
max-len: [2, 120, 2]
max-statements: [2, 5]
newline-after-var: [2, "always"]
new-parens: 2
no-alert: 2
no-caller: 2
no-case-declarations: 2
no-class-assign: 2
no-cond-assign: [2, "always"]
no-const-assign: 2
no-constant-condition: 2
no-debugger: 2
no-dupe-args: 2
no-dupe-class-members: 2
no-dupe-keys: 2
no-duplicate-case: 2
no-else-return: 2
no-empty: 2
no-empty-label: 2
no-empty-pattern: 2
no-eval: 2
no-ex-assign: 2
no-extend-native: 2
no-extra-bind: 2
no-extra-boolean-cast: 2
no-extra-parens: 2
no-fallthrough: 2
no-floating-decimal: 2
no-implied-eval: 2
no-inner-declarations: 2
no-invalid-regexp: 2
no-irregular-whitespace: 2
no-iterator: 2
no-lone-blocks: 2
no-lonely-if: 2
no-loop-func: 2
no-magic-numbers: 1
no-multi-spaces: [2, {"exceptions": {"VariableDeclarator": true, "ImportDeclaration": true}}]
no-multi-str: 2
no-multiple-empty-lines: [2, {"max": 2}]
no-native-reassign: 2
no-negated-condition: 2
no-negated-in-lhs: 2
no-new-func: 2
no-new-wrappers: 2
no-new: 2
no-octal-escape: 2
no-octal: 2
no-plusplus: 2
no-proto: 2
no-redeclare: 2
no-regex-spaces: 2
no-return-assign: 2
no-self-compare: 2
no-shadow: 2
no-this-before-super: 2
no-throw-literal: 2
no-unused-expressions: 2
no-undef: 2
no-useless-call: 2
no-useless-concat: 2
no-unexpected-multiline: 2
no-unneeded-ternary: 2
no-unreachable: 2
no-unused-vars: [2, {"args": "none"}]
no-trailing-spaces: 2
no-var: 2
no-with: 2
object-curly-spacing: [2, "always"]
object-shorthand: 2
operator-assignment: [2, "never"]
operator-linebreak: [2, "before"]
prefer-arrow-callback: 2
prefer-spread: 2
prefer-template: 2
quotes: [2, "backtick", "avoid-escape"]
radix: [2, "always"]
require-jsdoc: 2
semi: [2, "never"]
space-infix-ops: 2
space-return-throw-case: 2
space-before-function-paren: [2, "always"]
space-after-keywords: 2
space-before-keywords: 2
space-before-blocks: [2, "always"]
space-unary-ops: 2
strict: [2, "global"]
valid-jsdoc: 2
valid-typeof: 2
wrap-iife: 2
wrap-regex: 2
yoda: 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment