Closed unikounio closed 4 months ago
@ljharb @shadowspawn Thank you both for your thorough reviews. I have made the necessary updates based on your feedback.
Thanks for working through our various comments @unikounio
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 98.78%. Comparing base (
6715df1
) to head (98fe3c8
).
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@ljharb Thank you for the thoughtful suggestion. I have addressed it.
Urk. Failing a couple of lint tests due to using "new" features in the example code (const
and modules). To be clear, these would be problems if they were in the actual implementation since we support very old node versions.
My first thought is examples using modern syntax are more appropriate and useful for new users. Is it appropriate to add an override to .eslintrc
for the examples folder and allow modern features?
Do you already have a preferred way of approaching this @ljharb ?
yep! add an "overrides" object for example/**
in the root eslintrc, and extend @ljharb/eslint-config/node/latest
.
Are you happy to look at this @unikounio , or would you like a hand with the eslint change? (Fairly easy hopefully, but depending on what you already know and what you are interested in learning...)
@shadowspawn Thank you for your suggestion. I would like to do this ESLint configuration change. Would it be better to include this change in this PR or would it be more appropriate to create a new PR for this change?
Include in this PR thanks.
Just pushed the changes to apply the latest ESLint config to the examples
directory.
Please take a look when you have a moment. Thanks!
Thank you both so much for helping me with this PR! @ljharb and @shadowspawn, I deeply appreciate your support and the valuable feedback you've provided. I've learned a lot from this experience and am looking forward to any future opportunities to work together again!
Added a description of ECMEScript to the readme and adjust the sample files to match.
Issue
Docs: Add sample code ES Modules format to the examples in the README. · Issue #61 · minimistjs/minimist