We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab6fe3b commit 56b17caCopy full SHA for 56b17ca
lib/rules/jsx-indent.js
@@ -168,10 +168,8 @@ module.exports = {
168
* @return {Number} Indent
169
*/
170
function getNodeIndent(node, byLastLine, excludeCommas) {
171
- let finalLine = byLastLine;
172
- let noCommas = excludeCommas;
173
- finalLine = finalLine || false;
174
- noCommas = noCommas || false;
+ const finalLine = !!byLastLine;
+ const noCommas = !!excludeCommas;
175
176
let src = context.getSourceCode().getText(node, node.loc.start.column + extraColumnStart);
177
const lines = src.split('\n');
0 commit comments