From af4dcb616dbd7f830f29a6122156ce6f0d1f9c8f Mon Sep 17 00:00:00 2001 From: Daniel Tschinder Date: Sat, 14 Jan 2017 13:51:41 +0100 Subject: [PATCH] better indent switch, iife, multiline functions (babel/eslint-config-babel#10) --- eslint/babel-eslint-config-internal/index.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/eslint/babel-eslint-config-internal/index.js b/eslint/babel-eslint-config-internal/index.js index 2dd105c78d..9d2573fada 100644 --- a/eslint/babel-eslint-config-internal/index.js +++ b/eslint/babel-eslint-config-internal/index.js @@ -10,7 +10,21 @@ module.exports = { "comma-spacing": "error", "consistent-return": "off", curly: "off", - "indent": ["error", 2], + indent: ["error", 2, { + SwitchCase: 1, + outerIIFEBody: 1, + FunctionDeclaration: { + parameters: 1, + body: 1, + }, + FunctionExpression: { + parameters: 1, + body: 1, + }, + CallExpression: { + parameters: 1, + } + }], "linebreak-style": ["error", "unix"], "key-spacing": "off", "keyword-spacing": "error",