Skip to content

Commit

Permalink
fixed an error
Browse files Browse the repository at this point in the history
  • Loading branch information
Mephisto5558 committed Dec 7, 2024
1 parent 6946f02 commit 827267a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ruleOverwrites/unbound-method.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ export default {

return {
...baseRule,

/** @param {import('eslint').Rule.Node}node*/
ObjectPattern: node => {
if (
node.parent?.init?.type === 'CallExpression'
&& node.parent.init.callee?.name === 'require'
&& node.parent.init.arguments[0]?.value.startsWith('node:')
&& node.parent.init.arguments[0]?.value?.startsWith('node:')
) return;

/* eslint-disable-next-line new-cap */
Expand Down

0 comments on commit 827267a

Please sign in to comment.