Last active
June 22, 2017 09:07
-
-
Save chrisn/d39188b816a9ccd289cd1ba66486448e to your computer and use it in GitHub Desktop.
eslint config file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
"env": { | |
"browser": true, | |
"amd": true | |
}, | |
"extends": "eslint:recommended", | |
"rules": { | |
"array-bracket-spacing": ["error", "never"], | |
"brace-style": ["error", "stroustrup"], | |
"block-scoped-var": "error", | |
"comma-dangle": ["error", "never"], | |
"comma-style": ["error", "last"], | |
"consistent-this": ["error", "self"], | |
"curly": ["error", "all"], | |
"dot-location": ["error", "property"], | |
"eqeqeq": "error", | |
"func-style": ["error", "declaration"], | |
"guard-for-in": "error", | |
"indent": ["off", 2], | |
"key-spacing": ["error", { "beforeColon": false, "afterColon": true, "mode": "minimum" }], | |
"keyword-spacing": ["error", { "before": true }], | |
"linebreak-style": ["error", "unix"], | |
"max-len": ["warn", 80], | |
"new-cap": "error", | |
"newline-after-var": ["error", "always"], | |
"newline-before-return": "error", | |
"newline-per-chained-call": "error", | |
"no-alert": "error", | |
"no-caller": "error", | |
"no-continue": "error", | |
"no-eval": "error", | |
"no-extra-bind": "error", | |
"no-floating-decimal": "error", | |
"no-implicit-coercion": "error", | |
"no-implicit-globals": "error", | |
"no-implied-eval": "error", | |
"no-label-var": "error", | |
"no-labels": "error", | |
"no-lone-blocks": "error", | |
"no-lonely-if": "error", | |
"no-loop-func": "error", | |
"no-multi-str": "error", | |
"no-multiple-empty-lines": ["error", { "max": 1 }], | |
"no-nested-ternary": "error", | |
"no-new-object": "error", | |
"no-return-assign": "error", | |
"no-script-url": "error", | |
"no-self-compare": "error", | |
"no-sequences": "error", | |
"no-tabs": "error", | |
"no-throw-literal": "error", | |
"no-trailing-spaces": "error", | |
"no-unmodified-loop-condition": "error", | |
"no-unused-expressions": "error", | |
"no-unused-vars": ["error", { "args": "none" }], | |
"no-useless-call": "error", | |
"no-useless-concat": "error", | |
"no-useless-escape": "error", | |
"no-undef-init": "error", | |
"no-use-before-define": "error", | |
"no-void": "error", | |
"operator-assignment": ["error", "always"], | |
"quotes": ["error", "single"], | |
"radix": "error", | |
"semi": ["error", "always"], | |
"space-before-blocks": "error", | |
"space-before-function-paren": ["error", "never"], | |
"space-in-parens": ["error", "never"], | |
"space-infix-ops": "error", | |
"space-unary-ops": "error", | |
"spaced-comment": ["error", "always", { "block": { "balanced": true } }], | |
"yoda": "error" | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment