.eslintrc
ecmaFeatures:
modules: true
jsx: true
env:
amd: true
browser: true
es6: true
jquery: true
node: true
extends: "eslint:recommended"
rules:
# 0 = off, 1 = warning, 2 = error
# Best Practices
complexity: [2, 20]
curly: [2, all]
eqeqeq: 2
guard-for-in: 2
no-alert: 2
no-caller: 2
no-div-regex: 2
no-eq-null: 2
no-eval: 2
no-extend-native: 2
no-extra-bind: 2
no-implied-eval: 2
no-iterator: 2
no-lone-blocks: 2
no-loop-func: 2
no-multi-spaces: 2
no-native-reassign: 2
no-new-func: 2
no-new-wrappers: 2
no-new: 2
no-octal-escape: 2
no-proto: 2
no-redeclare: 2
no-return-assign: 2
no-script-url: 2
no-self-compare: 2
no-unused-expressions: 2
no-useless-call: 2
no-useless-concat: 2
no-void: 2
no-with: 2
radix: 2
# Variables
no-catch-shadow: 2
no-label-var: 2
no-shadow-restricted-names: 2
no-undef-init: 2
# Node.js and CommonJS
callback-return: 2
global-require: 2
handle-callback-err: 2
no-path-concat: 2
no-process-exit: 2
# Stylistic Issues
array-bracket-spacing: 1
block-spacing: [1, never]
brace-style: 1
camelcase: 1
comma-dangle: [1, never]
comma-spacing: 1
comma-style: [2, last]
computed-property-spacing: [1, never]
eol-last: 1
indent: [1, 2]
key-spacing: 1
linebreak-style: 1
max-statements: [1, 30]
no-mixed-spaces-and-tabs: 2
no-trailing-spaces: 1
semi: 1