Skip to content

Commit

Permalink
Fix: respect editorconfig (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
azz committed Jun 12, 2018
1 parent d772dfa commit 0b04dd3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion eslint-plugin-prettier.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,9 @@ module.exports = {
usePrettierrc &&
prettier.resolveConfig &&
prettier.resolveConfig.sync
? prettier.resolveConfig.sync(context.getFilename())
? prettier.resolveConfig.sync(context.getFilename(), {
editorconfig: true
})
: null;
const prettierOptions = Object.assign(
{},
Expand Down

0 comments on commit 0b04dd3

Please sign in to comment.