Skip to content

Commit

Permalink
style: fix config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jjangga0214 committed May 27, 2023
1 parent a703003 commit 48fd753
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 22 deletions.
6 changes: 3 additions & 3 deletions lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = class Config {
this.detectiveConfig = options.detective || options.detectiveConfig || {};
this.tsConfig = options.tsConfig;
this.tsConfigPath = options.tsConfigPath;
this.tsConfigPath = options.tsConfigPath
this.tsConfigPath = options.tsConfigPath;
this.noTypeDefinitions = options.noTypeDefinitions;
this.filter = options.filter;

Expand All @@ -32,7 +32,7 @@ module.exports = class Config {
const ts = require('typescript');
const tsParsedConfig = ts.readJsonConfigFile(this.tsConfig, ts.sys.readFile);
const obj = ts.parseJsonSourceFileConfigFileContent(tsParsedConfig, ts.sys, path.dirname(this.tsConfig));
this.tsConfigPath = this.tsConfigPath || this.tsConfig
this.tsConfigPath = this.tsConfigPath || this.tsConfig;
this.tsConfig = obj.raw;
}

Expand All @@ -44,7 +44,7 @@ module.exports = class Config {
debug('visited: ', this.visited);
}

clone () {
clone() {
return new Config(this);
}
};
23 changes: 4 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 48fd753

Please sign in to comment.