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 5
5
*/
6
6
7
7
var _fs = require ( 'fs' ) ,
8
- _util = require ( 'util' ) ,
9
8
_path = require ( 'path' ) ,
10
9
linterPath = process . argv [ 2 ] . replace ( / \/ $ / , '' ) + '/' ,
11
10
_linter = require ( linterPath + 'linter' ) ;
@@ -18,7 +17,7 @@ function run() {
18
17
19
18
if ( filename ) {
20
19
results = _linter . lint ( _fs . readFileSync ( filename , 'utf-8' ) , config , linterPath ) ;
21
- _util . puts ( JSON . stringify ( results ) ) ;
20
+ console . log ( JSON . stringify ( results ) ) ;
22
21
} else {
23
22
process . stdin . resume ( ) ;
24
23
process . stdin . setEncoding ( 'utf8' ) ;
@@ -29,7 +28,7 @@ function run() {
29
28
30
29
process . stdin . on ( 'end' , function ( ) {
31
30
results = _linter . lint ( code , config , linterPath ) ;
32
- _util . puts ( JSON . stringify ( results ) ) ;
31
+ console . log ( JSON . stringify ( results ) ) ;
33
32
} ) ;
34
33
}
35
34
}
You can’t perform that action at this time.
0 commit comments