We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c49533 commit 01de987Copy full SHA for 01de987
bin/sql-formatter-cli.cjs
@@ -99,7 +99,7 @@ class SqlFormatterCli {
99
return this.parseFile(localConfig);
100
}
101
102
- findConfig(dir = __dirname) {
+ findConfig(dir = process.cwd()) {
103
const filePath = path.join(dir, '.sql-formatter.json');
104
if (!fs.existsSync(filePath)) {
105
const parentDir = path.resolve(dir, '..');
0 commit comments