作者:hya641520 | 来源:互联网 | 2023-10-12 14:04
validateCommentPosition
Type:
Values:
- 'above'
- 'beside'
Example
1
| validateCommentPosition: 'above' |
Valid:
1 2 3
| js
// This is a valid comment
1 + 1; |
Invalid:
1 2
| js
1 + 1; // An invalid comment |
1
| validateCommentPosition: 'beside' |
Valid:
1 2
| js
1 + 1; // A valid comment |
Invalid:
1 2 3
| js
// This is an invalid comment
1 + 1; |
If you'd like to support both styles, then don't supply a value to this rule.
该提问来源于开源项目:jscs-dev/node-jscs
Go for it . We could use the help!