xo 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +2 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -196,7 +196,8 @@ if (typeof cliOptions.printConfig === 'string') {
|
|
|
196
196
|
console.error('The `--print-config` flag must be used with exactly one filename');
|
|
197
197
|
process.exit(1);
|
|
198
198
|
}
|
|
199
|
-
const
|
|
199
|
+
const absoluteFilePath = path.resolve(cliOptions.cwd, cliOptions.printConfig);
|
|
200
|
+
const config = await new Xo(linterOptions, baseXoConfigOptions).calculateConfigForFile(absoluteFilePath);
|
|
200
201
|
console.log(JSON.stringify(config, undefined, '\t'));
|
|
201
202
|
}
|
|
202
203
|
else {
|