-
-
Notifications
You must be signed in to change notification settings - Fork 95
feat(options): add prettierLast option for prettier-eslint #110
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@spudly This is great code! One minor thing and then we can merge!
src/executePrettier.test.js
Outdated
helpers.shouldUseEslint.mockImplementation(() => true); | ||
// $FlowFixMe | ||
helpers.getCurrentFilePath.mockImplementation(() => 'foo.js'); | ||
helpers.getPrettierEslintOptions.mockImplementation(() => ({ prettierLast: true })); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we just need to add a // $FlowFixMe
here to pass flow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
done. |
Codecov Report
@@ Coverage Diff @@
## master #110 +/- ##
=========================================
+ Coverage 78.57% 78.98% +0.4%
=========================================
Files 6 6
Lines 154 157 +3
=========================================
+ Hits 121 124 +3
Misses 33 33
Continue to review full report at Codecov.
|
@spudly awesome, can you squash down that commit? |
squashed. also added myself as contributor the right way, as I had done it manully before. |
Adds a new
Run Prettier Last
option (see prettier/prettier-eslint#58 and prettier/prettier-eslint#59).