Skip to content

Commit 5e884b6

Browse files
committed
Warn when lines do not come before comments
1 parent 8d00506 commit 5e884b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

etc/eslint/rules/style.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ rules[ 'linebreak-style' ] = [ 'error', 'unix' ];
512512
* // Line comment:
513513
* var y = 10;
514514
*/
515-
rules[ 'lines-around-comment' ] = [ 'error', {
515+
rules[ 'lines-around-comment' ] = [ 'warn', {
516516
'beforeBlockComment': true,
517517
'afterBlockComment': false,
518518
'beforeLineComment': true,

0 commit comments

Comments
 (0)