Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Commit

Permalink
Don't break on CSX property assigment
Browse files Browse the repository at this point in the history
Colon assignment spacing shouldn't be checked on CSX attribute assignment
  • Loading branch information
aminland authored Jan 16, 2018
1 parent 3e6f4d7 commit 96aadf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rules/colon_assignment_spacing.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module.exports = class ColonAssignmentSpacing
[isLeftSpaced, leftSpacing] = checkSpacing 'left'
[isRightSpaced, rightSpacing] = checkSpacing 'right'

if isLeftSpaced and isRightSpaced
if token.csxColon or isLeftSpaced and isRightSpaced
null
else
context: "Incorrect spacing around column #{token[2].first_column}"

0 comments on commit 96aadf0

Please sign in to comment.