Enforce consistent indentation in javascript code

This commit is contained in:
Tom Hughes 2019-07-14 10:52:18 +01:00
parent 807750023a
commit c4c0e8105a
20 changed files with 160 additions and 153 deletions

View file

@ -33,6 +33,13 @@
"eol-last": "error", "eol-last": "error",
"eqeqeq": ["error", "smart"], "eqeqeq": ["error", "smart"],
"func-call-spacing": "error", "func-call-spacing": "error",
"indent": ["error", 2, {
"SwitchCase": 1,
"VariableDeclarator": "first",
"FunctionDeclaration": { "parameters": "first" },
"FunctionExpression": { "parameters": "first" },
"CallExpression": { "arguments": "first" }
}],
"key-spacing": "error", "key-spacing": "error",
"keyword-spacing": "error", "keyword-spacing": "error",
"no-alert": "warn", "no-alert": "warn",