-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(options): allow specifying eslint configuration file as an argument #91
feat(options): allow specifying eslint configuration file as an argument #91
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.
Wow! Thanks for doing this! Required way fewer changes than I expected. Thank you! Just one thing... 😄
@@ -47,6 +49,11 @@ function formatFilesFromArgv({ | |||
prettierLast, | |||
prettierOptions, | |||
} | |||
|
|||
if (eslintConfigPath) { | |||
prettierESLintOptions.eslintConfig = ConfigFile.load(eslintConfigPath) |
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.
Could we get a test for this? I'd be fine if you wanted to add // istanbul ignore if
on line 52 because testing this in the unit tests would be tough, but then we could add this to the dist-test
s. Could you do that please? That'd be swell!
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.
Would try to
Codecov Report
@@ Coverage Diff @@
## master #91 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 3 3
Lines 105 107 +2
=====================================
+ Hits 105 107 +2
Continue to review full report at Codecov.
|
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.
Perfect! Thank you again!
🔥 |
Adds
--eslint-config-path
cli optionConfig file parsing and resolution is on behalf of eslint
ConfigFile
base funcCloses #37