Skip to content

Commit

Permalink
fix(config): fix config standard v15 offsetTernaryExpressions option
Browse files Browse the repository at this point in the history
  • Loading branch information
dackmin committed Oct 26, 2020
1 parent ab3e186 commit b98fa3d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,22 @@ module.exports = {
'no-empty': [ERROR, { allowEmptyCatch: true }],
'arrow-parens': [WARNING, 'as-needed'],
'multiline-ternary': OFF,
indent: [ERROR, 2, {
SwitchCase: 1,
VariableDeclarator: 1,
outerIIFEBody: 1,
MemberExpression: 1,
FunctionDeclaration: { parameters: 1, body: 1 },
FunctionExpression: { parameters: 1, body: 1 },
CallExpression: { arguments: 1 },
ArrayExpression: 1,
ObjectExpression: 1,
ImportDeclaration: 1,
flatTernaryExpressions: false,
ignoreComments: false,
ignoredNodes: ['TemplateLiteral *'],
offsetTernaryExpressions: false,
}],

// ES6 fixes
camelcase: OFF,
Expand Down

0 comments on commit b98fa3d

Please sign in to comment.