better indent switch, iife, multiline functions (babel/eslint-config-babel#10)

This commit is contained in:
Daniel Tschinder 2017-01-14 13:51:41 +01:00
parent d4a1e97249
commit af4dcb616d

View File

@ -10,7 +10,21 @@ module.exports = {
"comma-spacing": "error", "comma-spacing": "error",
"consistent-return": "off", "consistent-return": "off",
curly: "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"], "linebreak-style": ["error", "unix"],
"key-spacing": "off", "key-spacing": "off",
"keyword-spacing": "error", "keyword-spacing": "error",