Skip to content

Commit

Permalink
Fix line reporting in propertyUnits
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilsson committed Feb 4, 2017
1 parent 530ceff commit 70a1a95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/linters/property_units.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module.exports = {

results.push({
column: node.source.start.column + node.raws.between.length + property.length + value.source.start.column - 1,
line: value.source.start.line,
line: node.source.start.line + value.source.start.line - 1,
message: util.format(this.message.unit, unit, property)
});
});
Expand Down

0 comments on commit 70a1a95

Please sign in to comment.