Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow line break to satisfy trailing space rule
- Loading branch information
Aaron Harvey
committed
Nov 17, 2016
1 parent
8f355c2
commit 29a17a8
Showing
4 changed files
with
48 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
import _ from 'lodash'; | ||
import makeSpacing from './typeColonSpacing'; | ||
|
||
export default (context) => { | ||
return makeSpacing('after', context, { | ||
always: (context.options[0] || 'always') === 'always' | ||
allowLineBreak: _.get(context, ['options', '1', 'allowLineBreak'], false), | ||
always: _.get(context, ['options', '0'], 'always') === 'always' | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters