File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
- var gutil = require ( 'gulp-util' ) ;
3
2
var path = require ( 'path' ) ;
3
+ var gutil = require ( 'gulp-util' ) ;
4
4
var through = require ( 'through2' ) ;
5
5
var Checker = require ( 'jscs' ) ;
6
6
var loadConfigFile = require ( 'jscs/lib/cli-config' ) ;
7
7
var assign = require ( 'object-assign' ) ;
8
+ var tildify = require ( 'tildify' ) ;
8
9
9
10
module . exports = function ( options ) {
10
11
options = options || '.jscsrc' ;
@@ -32,7 +33,7 @@ module.exports = function (options) {
32
33
try {
33
34
checker . configure ( loadConfigFile . load ( configPath ) ) ;
34
35
} catch ( error ) {
35
- throw new Error ( 'Unable to load JSCS config file at ' + path . join ( process . cwd ( ) , configPath ) ) ;
36
+ throw new Error ( 'Unable to load JSCS config file at ' + tildify ( path . resolve ( configPath ) ) ) ;
36
37
}
37
38
} else {
38
39
checker . configure ( options ) ;
Original file line number Diff line number Diff line change 37
37
"gulp-util" : " ^3.0.0" ,
38
38
"jscs" : " ^1.8.0" ,
39
39
"object-assign" : " ^2.0.0" ,
40
- "through2" : " ^0.6.1"
40
+ "through2" : " ^0.6.1" ,
41
+ "tildify" : " ^1.0.0"
41
42
},
42
43
"devDependencies" : {
43
44
"mocha" : " *"
You can’t perform that action at this time.
0 commit comments