Skip to content

Commit

Permalink
Update lib/rules/jsx-indent.js
Browse files Browse the repository at this point in the history
Co-Authored-By: jomasti <facedelajunk@gmail.com>
  • Loading branch information
ljharb and jomasti committed Dec 15, 2018
1 parent 35025de commit 6ddc708
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rules/jsx-indent.js
Expand Up @@ -81,7 +81,8 @@ module.exports = {
}

const indentChar = indentType === 'space' ? ' ' : '\t';
const checkAttributes = context.options[1] && context.options[1].checkAttributes || false;
const options = context.options[1] || {};
const checkAttributes = options.checkAttributes || false;

/**
* Responsible for fixing the indentation issue fix
Expand Down

0 comments on commit 6ddc708

Please sign in to comment.