Skip to content

Conversation

@diedexx
Copy link
Member

@diedexx diedexx commented Dec 24, 2025

Summary

  • Removes the no-undefined ESLint rule from the default configuration

The rule is outdated for modern JavaScript development. Since ES5+, undefined is read-only in the global scope, making the rule's original purpose (preventing shadowing) unnecessary. Using undefined directly is more readable than alternatives like void 0.

Test plan

  • Verify the config still loads without errors
  • Run ESLint with the updated config on a project

🤖 Generated with Claude Code

The `no-undefined` rule is outdated for modern JavaScript development.
Since ES5+, `undefined` is read-only in the global scope, making the
rule's original purpose (preventing shadowing) unnecessary.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@diedexx diedexx requested a review from Copilot December 24, 2025 10:31
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the outdated no-undefined ESLint rule from the default configuration. The rule is no longer necessary for modern JavaScript since ES5+ made undefined read-only in the global scope, eliminating concerns about shadowing.

Key Changes:

  • Removed the no-undefined ESLint rule configuration

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant