Skip to content

Conversation

Rel1cx
Copy link
Owner

@Rel1cx Rel1cx commented Oct 9, 2025

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Docs
  • Test
  • New Binding issue #___
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change?

  • Yes, and the changes were approved in issue #___
  • No

Checklist

  • When resolving issues, they are referenced in the PR's title (e.g fix: remove a typo, closes #___, #___)
  • I have added a convincing reason for adding this feature, if necessary

Other information

Rel1cx added 2 commits October 9, 2025 17:21
The commit adds new strict presets for both regular and TypeScript
configurations while cleaning up the config file organization and
naming.
Copy link

vercel bot commented Oct 9, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
eslint-react Ready Ready Preview Comment Oct 9, 2025 4:51pm

@Rel1cx Rel1cx requested a review from Copilot October 9, 2025 09:39
Copy link
Contributor

@Copilot 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 introduces strict preset configurations for ESLint React, providing more opinionated rule enforcement options. The strict presets enable additional rules that are disabled by default in the recommended configurations, giving developers stricter lint enforcement options.

  • Adds new strict preset configurations: strict, strict-typescript, and strict-type-checked
  • Refactors existing configurations to extract common TypeScript and type-checking rules into shared modules
  • Updates documentation and examples to showcase the new strict presets

Reviewed Changes

Copilot reviewed 17 out of 18 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/plugins/eslint-plugin/src/index.ts Exports the new strict preset configurations
packages/plugins/eslint-plugin/src/configs/strict.ts Defines the base strict preset with additional rules enabled
packages/plugins/eslint-plugin/src/configs/strict-typescript.ts Combines strict preset with TypeScript-specific rules
packages/plugins/eslint-plugin/src/configs/strict-type-checked.ts Combines strict-typescript preset with type-checking rules
packages/plugins/eslint-plugin/src/configs/_ts.ts Shared TypeScript rule overrides extracted for reuse
packages/plugins/eslint-plugin/src/configs/_tc.ts Shared type-checking rules extracted for reuse
packages/plugins/eslint-plugin/src/configs/x.ts Removes rules that are now available in strict presets
packages/plugins/eslint-plugin/src/configs/dom.ts Adjusts DOM rules to be enabled in strict presets
examples/react-dom/eslint.config.js Updates example to use strict-type-checked preset
examples/next/eslint.config.js Updates example to use strict-type-checked preset
README.md Documents the new strict presets
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link

socket-security bot commented Oct 9, 2025

All alerts resolved. Learn more about Socket for GitHub.

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report

@Rel1cx Rel1cx marked this pull request as ready for review October 9, 2025 16:48
@Rel1cx Rel1cx merged commit 4a940ee into main Oct 9, 2025
10 of 11 checks passed
@Rel1cx Rel1cx deleted the add-strict-presets branch October 9, 2025 16:51
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