better indent switch, iife, multiline functions (babel/eslint-config-babel#10)
This commit is contained in:
parent
d4a1e97249
commit
af4dcb616d
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user