Skip to content

Commit

Permalink
[Fix] jsx-indent-props : Apply indentation when used expression
Browse files Browse the repository at this point in the history
  • Loading branch information
Moong0122 committed Oct 4, 2020
1 parent 959fb23 commit 9b5f56c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/lib/rules/jsx-indent-props.js
Expand Up @@ -228,6 +228,27 @@ ruleTester.run('jsx-indent-props', rule, {
{message: 'Expected indentation of 6 space characters but found 4.'},
{message: 'Expected indentation of 6 space characters but found 4.'}
]
}, {
code: [
'{this.props.test',
' ? <span',
' className="value"',
' some={{aaa}}',
' />',
' : null}'
].join('\n'),
output: [
'{this.props.test',
' ? <span',
' className="value"',
' some={{aaa}}',
' />',
' : null}'
options: [2],
errors: [
{message: 'Expected indentation of 6 space characters but found 4.'},
{message: 'Expected indentation of 6 space characters but found 4.'}
]
}, {
code: [
'<App',
Expand Down

0 comments on commit 9b5f56c

Please sign in to comment.