File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 5
5
/* jshint node:true */
6
6
/* global cli */
7
7
/* exported CSSLint */
8
+ "use strict" ;
8
9
9
10
var fs = require ( "fs" ) ,
10
11
path = require ( "path" ) ,
@@ -14,17 +15,14 @@ cli({
14
15
args : process . argv . slice ( 2 ) ,
15
16
16
17
print : function ( message ) {
17
- "use strict" ;
18
18
fs . writeSync ( 1 , message + "\n" ) ;
19
19
} ,
20
20
21
21
quit : function ( code ) {
22
- "use strict" ;
23
22
process . exit ( code || 0 ) ;
24
23
} ,
25
24
26
25
isDirectory : function ( name ) {
27
- "use strict" ;
28
26
try {
29
27
return fs . statSync ( name ) . isDirectory ( ) ;
30
28
} catch ( ex ) {
33
31
} ,
34
32
35
33
getFiles : function ( dir ) {
36
- "use strict" ;
37
34
var files = [ ] ;
38
35
39
36
try {
@@ -65,22 +62,18 @@ cli({
65
62
} ,
66
63
67
64
getWorkingDirectory : function ( ) {
68
- "use strict" ;
69
65
return process . cwd ( ) ;
70
66
} ,
71
67
72
68
getFullPath : function ( filename ) {
73
- "use strict" ;
74
69
return path . resolve ( process . cwd ( ) , filename ) ;
75
70
} ,
76
71
77
72
readFile : function ( filename ) {
78
- "use strict" ;
79
73
try {
80
74
return fs . readFileSync ( filename , "utf-8" ) ;
81
75
} catch ( ex ) {
82
76
return "" ;
83
77
}
84
78
}
85
79
} ) ;
86
-
You can’t perform that action at this time.
0 commit comments