File tree 2 files changed +11
-6
lines changed
2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,10 @@ You can specify what strings to match by adding a `strings` key in your
26
26
engines :
27
27
fixme :
28
28
enabled : true
29
- strings :
30
- - FIXME
31
- - CUSTOM
29
+ config :
30
+ strings :
31
+ - FIXME
32
+ - CUSTOM
32
33
` ` `
33
34
34
35
**NOTE**: values specified here *override* the defaults, they are not
Original file line number Diff line number Diff line change @@ -18,10 +18,14 @@ FixMe.prototype.runEngine = function(){
18
18
self = this ;
19
19
20
20
if ( fs . existsSync ( '/config.json' ) ) {
21
- var overrides = JSON . parse ( fs . readFileSync ( '/config.json' ) ) ;
21
+ var userConfig = JSON . parse ( fs . readFileSync ( '/config.json' ) ) ;
22
22
23
- for ( var prop in overrides ) {
24
- config [ prop ] = overrides [ prop ] ;
23
+ config . include_paths = userConfig . include_paths ;
24
+
25
+ if ( userConfig . config ) {
26
+ for ( var prop in userConfig . config ) {
27
+ config [ prop ] = userConfig . config [ prop ] ;
28
+ }
25
29
}
26
30
}
27
31
You can’t perform that action at this time.
0 commit comments