Skip to content

feat: forbid-component-props, closes #1155 #1167

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

Merged
merged 2 commits into from
Aug 13, 2025

Conversation

reteps
Copy link
Contributor

@reteps reteps commented Aug 11, 2025

What kind of change does this PR introduce?

This rule adds support for banning certain component properties. This is useful for our project, which uses preact, and so we discourage the use of className. In addition, we discourage the usage of snake_case variables. This PR adds the ability to lint those errors. This rule was partially written with Cursor. Closes #1155

  • 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

Copy link

vercel bot commented Aug 11, 2025

@reteps is attempting to deploy a commit to the Rel1cx's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor Author

@reteps reteps left a comment

Choose a reason for hiding this comment

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

self-review

Copy link

vercel bot commented Aug 11, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Project Deployment Preview Comments Updated (UTC)
eslint-react Ready Preview Comment Aug 12, 2025 11:49pm

@Rel1cx
Copy link
Owner

Rel1cx commented Aug 13, 2025

LGTM.

@Rel1cx Rel1cx merged commit 4fdbc9a into Rel1cx:2.0.0-beta Aug 13, 2025
7 checks passed
@Rel1cx
Copy link
Owner

Rel1cx commented Aug 13, 2025

You can try this rule now in version 2.0.0-beta.27.

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.

[feat] forbid-component-props equivalent to eslint-plugin-react
2 participants