Skip to content

Commit 5e2eed4

Browse files
author
Ashley Baldwin-Hunter
committed
Merge pull request #7 from codeclimate/abh_update_extensions
update engine config to allow users to add elements to under key extensions
2 parents 14e026e + 8fec59d commit 5e2eed4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/eslint

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ if (process.env.ENGINE_CONFIG) {
3737
if (engineConfig['exclude_paths']) {
3838
ignores = engineConfig['exclude_paths'];
3939
}
40+
if (engineConfig['extensions']) {
41+
options['extensions'] = engineConfig['extensions'];
42+
}
4043
}
4144
var cli = new CLIEngine(options);
4245
var report = cli.executeOnFiles(["/code"]);

0 commit comments

Comments
 (0)