-
Notifications
You must be signed in to change notification settings - Fork 466
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: Convert helpers.js
to TypeScript
#1156
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit d971798:
|
@@ -65,6 +65,9 @@ | |||
"plugin:import/typescript" | |||
], | |||
"rules": { | |||
"@typescript-eslint/prefer-optional-chain": "off", |
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.
Stylistic rule whose rational is not suitable for a lint rule (false-positive rate needs to be next to zero).
@@ -65,6 +65,9 @@ | |||
"plugin:import/typescript" | |||
], | |||
"rules": { | |||
"@typescript-eslint/prefer-optional-chain": "off", | |||
"@typescript-eslint/no-explicit-any": "off", |
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.
Typed languages have won over JS because we have these escape hatches. They're still relevant especially in a library
@@ -65,6 +65,9 @@ | |||
"plugin:import/typescript" | |||
], | |||
"rules": { | |||
"@typescript-eslint/prefer-optional-chain": "off", | |||
"@typescript-eslint/no-explicit-any": "off", | |||
"@typescript-eslint/no-unsafe-member-access": "off", |
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.
Once this rule can distiginguish between explicit any
and implicit/external any
we can disable. Until then its false-positive rate is too high.
Codecov Report
@@ Coverage Diff @@
## main #1156 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 24 24
Lines 990 990
Branches 322 322
=========================================
Hits 990 990
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
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.
👍 the turned off eslint rules also makes sense to me
🎉 This PR is included in version 8.18.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What:
Part of #494
Why:
To use generated TypeScript declaration files eventually
How:
Fairly low level helpers where most types are
unknown
. Usesany
for pragmatic reasons.Checklist:
docs site