Skip to content
Snippets Groups Projects
Commit 948cb969 authored by Chris Hallberg's avatar Chris Hallberg
Browse files

Add eslint configuration file.

parent 27c8118b
No related merge requests found
{
"extends": "eslint:recommended",
"globals": {
"$": false,
"document": false,
"window": false
},
"rules": {
"block-scoped-var": "error",
"func-names": "error",
"no-loop-func": "error",
"no-param-reassign": "error",
"no-shadow": "error",
"no-unused-expressions": "error",
"dot-notation": "warn",
"eqeqeq": ["warn", "smart"],
"guard-for-in": "warn",
"key-spacing": ["warn", { "beforeColon": false, "afterColon": true }],
"no-lonely-if": "warn",
"no-console": ["warn", { "allow": ["warn", "error"] }],
"no-unneeded-ternary": "warn",
"block-spacing" : ["warn", "always"],
"indent": ["error", 2],
"keyword-spacing": ["warn", { "before": true, "after": true }],
"linebreak-style": ["error", "unix"],
"no-multi-spaces": "warn",
"semi-spacing": ["warn", { "before": false, "after": true }],
"space-infix-ops": "warn"
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment