-
Notifications
You must be signed in to change notification settings - Fork 158
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
chore: update typescript to v5 and synchronise predefined rulesets through strict typing #1308
Conversation
|
|
Coverage report
Test suite run success640 tests passing in 93 suites. Report generated by 🧪jest coverage report action from 6114bd9 |
…hrough strict typing
3c8f1e2
to
1d3244f
Compare
f3fcba4
to
0cd3e81
Compare
I think the async2 rules (and in future async3) should have the same sections as the oas2/3 ones do, does that answer the question? Also I have a question about where you removed all the |
Ok, I'll add
@lornajane this is partially related to my question :) I believe it's because the |
I think only |
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.
LGTM 👍
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.
👍
What/Why/How?
When adding rules, we have to export them from index files, add into our predefined rulesets, and list in the config validation file (redocly-yaml.ts). Currently they are not completely in sync with each other. Introducing strict typing helps to fix the discrepancies.
However, TS v4 works inconsistently, so I updated it to v5. This caused update/installation of several other packages (including Jest and ESLint).
Note
Most of the updated test files are merely a clean-up after upgrading to Jest v29. Exceptions are: load.test.ts, config-resolvers.test.ts.snap and this snapshot.
Nothing should change for users.
Open questions:
Should the previously omitted rules use severity 'off' or 'error' in the all ruleset?-> 'error'Reference
Testing
Screenshots (optional)
Check yourself
Security