Skip to content

Commit 6ddc708

Browse files
ljharbjomasti
andauthored
Update lib/rules/jsx-indent.js
Co-Authored-By: jomasti <[email protected]>
1 parent 35025de commit 6ddc708

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/rules/jsx-indent.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ module.exports = {
8181
}
8282

8383
const indentChar = indentType === 'space' ? ' ' : '\t';
84-
const checkAttributes = context.options[1] && context.options[1].checkAttributes || false;
84+
const options = context.options[1] || {};
85+
const checkAttributes = options.checkAttributes || false;
8586

8687
/**
8788
* Responsible for fixing the indentation issue fix

0 commit comments

Comments
 (0)