-
Notifications
You must be signed in to change notification settings - Fork 174
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
Fix e2e tests #385
Fix e2e tests #385
Conversation
I'll get the table formatter back and remove the draft status. I realized that dropping it would involve a minor or perhaps even major version bump, which would prevent users getting the semver-compatible version from having the updated dependencies, and even if there's a bug in a formatter, it wouldn't have dire consequences. |
deac622
to
86a50db
Compare
Great work @juanpcapurro! @frangio is the attribution here enough? |
@juanpcapurro this is great! @fvictorio are you agree ? |
Good catch. Yeah, we should do that here too. |
I would take the |
@juanpcapurro do you want to finish it yourself ? (adding the ^ and what frangio said) cheers! great job |
I meant to do the semver-range dependencies in a separate PR and also take care of the dependencies for the package.json in the e2e directory, but there seems to be consensus to include them here so I will I'll implement the suggested feedback sometime today or tomorrow |
excellent!! thanks for your contribution |
- copied the current version of eslint formatters into our codebase since they're no longer accesible from importing the `eslint` package (see discussions in protofire#380) for details - only imported those already supported, there are many other eslint formatters in the current eslint version (8.32.0) than there were in the one we were using previously (5.6.0) - explicity attribute the formatters' authors and include ESLint's license file. - table formatter was dropped by the latest version of eslint, so I fetched it from 5.6.0 instead - while building this commit I realized it was possible to remove a formatter entirely and all existing tests would pass, so I created an issue for discussing that - made eslint a dev dependency to reduce install size, since it's only used for linting this codebase. - added some dependencies of the eslint formatters. Used 'old' strip-ansi version 6.0.1 which seems to still be maintained instead of 7.0.1 since from version 7 onwards it's a pure ESM package
- explicitly call .help() when no arguments are provided - explicitly set name - removed one of the ways to create a sample config file since it was dead code - call .opts() to obtain the program's options, since they're no longer injected into the program object
86a50db
to
6e7d00b
Compare
- set dependencies of the root package to semver-match instead of exact match - update outdated dependencies in the e2e subproject - deleted yarn.lock file since it's not used an can confuse contributors on wether we use npm directly or yarn - node 10 and 12 are both out of support, so I took the liberty of testing the packaga against 14 and 16 which are the two oldest supported ones.
6e7d00b
to
4bd4d1f
Compare
all feedback items should be addressed now. I took the liberty of changing the node version against which the CI is run to the two oldest supported versions (14,16) instead of 10 and 12, which had both reached end of life |
this is great... I approved the PR |
Looks good to me! Thank you! |
Do you plan to release this soon? |
I will discuss it with Franco... we are addressing some of the issues in the repo |
was removed when implementing protofire/solhint/issues/385 , I probably missed it since it wasn't listed in the docs or command line options. It's likely someone else will show up asking for some other eslint formatter to be added back. This adds it back from eslint @ 8.42.0. I also ran our linter on it, so it's compliant with this codebase's style
see commit history for details. Main feedback items are:
is it okay to drop the table formatter?didn't drop it