summaryrefslogtreecommitdiff
path: root/.eslintrc
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2022-12-27 12:40:49 +0100
committerPierre Ossman <ossman@cendio.se>2022-12-27 12:50:57 +0100
commit262a90b0e03da1ddf0b6ac5acd55a3167c4b558d (patch)
treecf87bfbaae241c8899ceaa254ec100f0f2d713ee /.eslintrc
parent7f4a9eebc865a627407e69f22a5de18454cde6df (diff)
downloadnovnc-262a90b0e03da1ddf0b6ac5acd55a3167c4b558d.tar.gz
Consistently use "first" indentation
We already enforced this for most things, so let's fix up the last few variants as well.
Diffstat (limited to '.eslintrc')
-rw-r--r--.eslintrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/.eslintrc b/.eslintrc
index 7797028..10e15ce 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -26,10 +26,13 @@
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"indent": ["error", 4, { "SwitchCase": 1,
+ "VariableDeclarator": "first",
"FunctionDeclaration": { "parameters": "first" },
+ "FunctionExpression": { "parameters": "first" },
"CallExpression": { "arguments": "first" },
"ArrayExpression": "first",
"ObjectExpression": "first",
+ "ImportDeclaration": "first",
"ignoreComments": true }],
"comma-spacing": ["error"],
"comma-style": ["error"],