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 1eaaa11 commit 62a0a5aCopy full SHA for 62a0a5a
lib/rules/jsx-closing-bracket-location.js
@@ -155,11 +155,11 @@ module.exports = {
155
function getIndentation(tokens, expectedLocation) {
156
switch (expectedLocation) {
157
case 'props-aligned':
158
- return /^\s*/.exec(sourceCode[tokens.lastProp.lastLine])[0];
+ return /^\s*/.exec(sourceCode.lines[tokens.lastProp.lastLine])[0];
159
case 'tag-aligned':
160
- return /^\s*/.exec(sourceCode[tokens.opening.line])[0];
+ return /^\s*/.exec(sourceCode.lines[tokens.opening.line])[0];
161
case 'line-aligned':
162
- return /^\s*/.exec(sourceCode[tokens.openingStartOfLine.line])[0];
+ return /^\s*/.exec(sourceCode.lines[tokens.openingStartOfLine.line])[0];
163
default:
164
return '';
165
}
0 commit comments