-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
tools: move webcrypto into no-restricted-properties #53023
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
tools: move webcrypto into no-restricted-properties #53023
Conversation
| const crypto = require('crypto'); | ||
|
|
||
| /* eslint-disable no-restricted-syntax */ | ||
| /* eslint-disable no-restricted-properties, no-restricted-syntax */ |
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.
Do we still need to disable no-restricted-syntax?
| /* eslint-disable no-restricted-properties, no-restricted-syntax */ | |
| /* eslint-disable no-restricted-properties */ |
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.
Looks like the no-restricted-syntax error comes from test/.eslintrc.yaml here I think the no-restricted-properties should also be added into test/.eslintrc.yaml in order to keep the rule consistent.
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.
Adding no-restricted-properties into test/.eslintrc.yaml will result in more linting errors in other test files. I have added a TODO which I will try to fix in a separate PR.
ef00f15 to
d34b551
Compare
|
Can you rebase please? With the move to flat config, there are some conflicts to solve. |
d34b551 to
40fe042
Compare
Hi @aduh95, I have rebased my branch. Could you please take a look again and rerun CI for me? Thanks. I have also removed my |
|
The linter is failing (also it looks like the TODO is still there?) |
Since eslint fixed eslint/eslint#16412 and we are on eslint v8.57.0 so that we can take advantage of no-restricted-properties rule for webcrypto.
40fe042 to
55cd7e8
Compare
Oh sorry. I accidentally dropped one of my commit during interactive rebase. Thank you for spotting it! It should be fixed by now. |
|
Hi @aduh95, I am still seeing 4 failing CI jobs (feels like flaky tests) could you help me take a look, please? Thanks a lot ! 👀 |
|
Landed in 74dff83 |
Since eslint fixed eslint/eslint#16412 and we are on eslint v8.57.0 so that we can take advantage of no-restricted-properties rule for webcrypto. PR-URL: #53023 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
Since eslint fixed eslint/eslint#16412 and we are on eslint v8.57.0 so that we can take advantage of no-restricted-properties rule for webcrypto. PR-URL: nodejs#53023 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
Since eslint fixed eslint/eslint#16412 and we are on eslint v8.57.0 so that we can take advantage of no-restricted-properties rule for webcrypto. PR-URL: nodejs#53023 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
Since
eslintfixed eslint/eslint#16412 inv8.56.0here and we are oneslintv8.57.0so that we can take advantage ofno-restricted-propertiesrule forwebcrypto.This is my first pull request to node.js. Please let me know if there is anything to fix.