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.
Files changed (2) hide show
  1. package/dist/cli.js +2 -1
  2. 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 config = await new Xo(linterOptions, baseXoConfigOptions).calculateConfigForFile(cliOptions.printConfig);
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xo",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "JavaScript/TypeScript linter (ESLint wrapper) with great defaults",
5
5
  "license": "MIT",
6
6
  "repository": "xojs/xo",