Skip to content

Instantly share code, notes, and snippets.

@Igloczek
Last active September 9, 2015 12:40
Show Gist options
  • Save Igloczek/3b1b078ae8b22fa0d56a to your computer and use it in GitHub Desktop.
Save Igloczek/3b1b078ae8b22fa0d56a to your computer and use it in GitHub Desktop.
ESLint config file
env:
node: true
browser: true
amd: true
es6: true
jquery: true
prototypejs: true
rules:
indent: 0
brace-style: [2, "1tbs"]
comma-style: [2, "last"]
default-case: 2
func-style: [2, "declaration"]
no-floating-decimal: 2
no-nested-ternary: 2
no-undefined: 2
radix: 2
space-before-function-paren: [2, "never"]
space-after-keywords: [2, "always"]
space-before-blocks: 2
spaced-comment: [2, "always", { exceptions: ["-"] }]
valid-jsdoc: [1, { requireReturn: false, prefer: { return: "returns" }}]
wrap-iife: 2
guard-for-in: 2
strict: [2, "global"]
global-strict: 0
no-alert: 2
camelcase: 1
curly: [2, "all"]
eqeqeq: [2, "allow-null"]
no-empty: 2
no-underscore-dangle: 0
no-use-before-define: 2
no-obj-calls: 2
no-unused-vars: [0, {"vars": "local", "args": "after-used"}]
new-cap: 2
no-shadow: 1
no-invalid-regexp: 2
comma-dangle: [2, "never"]
no-undef: 2
no-new: 2
no-extra-semi: 2
no-debugger: 2
no-caller: 1
semi: 2
quotes: 0
no-unreachable: 2
eol-last: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment