Skip to content

Commit

Permalink
Fix config file search location (#788)
Browse files Browse the repository at this point in the history
Fix: #787
  • Loading branch information
nene authored Oct 18, 2024
2 parents 2c49533 + 01de987 commit c4b011e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/sql-formatter-cli.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class SqlFormatterCli {
return this.parseFile(localConfig);
}

findConfig(dir = __dirname) {
findConfig(dir = process.cwd()) {
const filePath = path.join(dir, '.sql-formatter.json');
if (!fs.existsSync(filePath)) {
const parentDir = path.resolve(dir, '..');
Expand Down

0 comments on commit c4b011e

Please sign in to comment.