fix: improve indent for decorators (#114)

This commit is contained in:
曾明健 2022-09-19 10:25:42 +08:00 committed by GitHub
parent ae904df91e
commit ae4e44e588
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -58,6 +58,9 @@ module.exports = {
'JSXEmptyExpression', 'JSXEmptyExpression',
'JSXSpreadChild', 'JSXSpreadChild',
'TSTypeParameterInstantiation', 'TSTypeParameterInstantiation',
'FunctionExpression > .params[decorators.length > 0]',
'FunctionExpression > .params > :matches(Decorator, :not(:first-child))',
'ClassBody.body > PropertyDefinition[decorators.length > 0] > .key',
], ],
offsetTernaryExpressions: true, offsetTernaryExpressions: true,
}], }],