File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
sublimelinter/modules/libs/jsengines Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 55 */
66
77var _fs = require ( 'fs' ) ,
8- _util = require ( 'util' ) ,
98 _path = require ( 'path' ) ,
109 linterPath = process . argv [ 2 ] . replace ( / \/ $ / , '' ) + '/' ,
1110 _linter = require ( linterPath + 'linter' ) ;
@@ -18,7 +17,7 @@ function run() {
1817
1918 if ( filename ) {
2019 results = _linter . lint ( _fs . readFileSync ( filename , 'utf-8' ) , config , linterPath ) ;
21- _util . puts ( JSON . stringify ( results ) ) ;
20+ console . log ( JSON . stringify ( results ) ) ;
2221 } else {
2322 process . stdin . resume ( ) ;
2423 process . stdin . setEncoding ( 'utf8' ) ;
@@ -29,7 +28,7 @@ function run() {
2928
3029 process . stdin . on ( 'end' , function ( ) {
3130 results = _linter . lint ( code , config , linterPath ) ;
32- _util . puts ( JSON . stringify ( results ) ) ;
31+ console . log ( JSON . stringify ( results ) ) ;
3332 } ) ;
3433 }
3534}
You can’t perform that action at this time.
0 commit comments