Repository navigation
chore: align Node.js config with Node.js ESLint config - #10
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning MetaMask internal reviewing guidelines:
|
42afc56 to
7d463aa
Compare
77d4c9f to
47a6364
Compare
78e4ea0 to
7bf4468
Compare
There was a problem hiding this comment.
The snapshot file seems out of date as it does not include any n/* rules 🤔
There was a problem hiding this comment.
Unfortunately JS plugin rules don't show up in this snapshot. 😕 May need to rethink the way we generate these.
There was a problem hiding this comment.
Hmm okay. This just makes it difficult to compare the total set of rules in this PR to the total set in the eslint-config-nodejs package.
There was a problem hiding this comment.
But yes it looks like there is a bug report about this here: oxc-project/oxc#22117. There is also a PR to fix this here: oxc-project/oxc#26143
There was a problem hiding this comment.
Anyway, getting back to this. It appears that unlike the ESLint config, we are not extending from the recommended set of rules, so the rules we're using are all the rules we're using. Is that right? If so, then this looks good.
7bf4468 to
1e444e9
Compare
1e444e9 to
2df1a0b
Compare
2df1a0b to
997cff0
Compare
997cff0 to
6ee8c7b
Compare
6ee8c7b to
15fb908
Compare
This pull request aligns the Node.js oxlint config with the Node.js ESLint config.
Rules not natively implemented in Oxlint are enabled via
eslint-plugin-n, loaded as a JS plugin using thejsPluginsoption.Rules not added
The following rules from the ESLint config are not added to the oxlint config, and why.
n/no-missing-importn/no-missing-requiren/no-restricted-importn/no-restricted-requiren/no-unsupported-features/es-syntaxn/no-process-exitunicorn/no-process-exitno-restricted-globals