Skip to content

Commit

Permalink
fix: ensure config is resolved correctly before supplied to prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
danez committed Nov 15, 2019
1 parent 0e1b14f commit 3d5f242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/spire-plugin-prettier/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function prettier(
const prettierConfig =
allowCustomConfig && hasCustomConfig
? []
: ['--config', defaultPrettierConfig];
: ['--config', require.resolve(defaultPrettierConfig)];
const hasCustomIgnore =
argv.includes('--ignore-path') || (await hasFile('.prettierignore'));
const prettierIgnore =
Expand Down

0 comments on commit 3d5f242

Please sign in to comment.