-
-
Notifications
You must be signed in to change notification settings - Fork 32
feat: update naming convention rules default excepts #1216
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this 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 updates the naming convention rules in the eslint-react plugin by enhancing default exception patterns and improving documentation. The changes primarily focus on making the filename rule more flexible for modern web frameworks while removing deprecated functionality.
- Updates default exception patterns to include common framework-specific files (e.g., dynamic routes, underscore prefixed files, numeric files)
- Improves filename validation logic to handle special characters more robustly
- Removes deprecated options and rules while updating documentation with better examples
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| filename.ts | Updates default exceptions and refactors validation logic for better special character handling |
| filename.spec.ts | Adds comprehensive test cases for the new exception patterns and validation behavior |
| filename.mdx | Complete documentation rewrite with modern examples and clearer configuration guidance |
| filename-extension.mdx | Minor heading consistency update |
| component-name.ts | Removes deprecated options from schema |
| component-name.mdx | Updates section heading for consistency |
| no-direct-set-state-in-use-layout-effect.mdx | Removes experimental warning and updates content |
| prefer-namespace-import.mdx | Removes entire file content |
| meta.json | Removes reference to deleted rule |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
packages/plugins/eslint-plugin-react-naming-convention/src/rules/filename.ts
Outdated
Show resolved
Hide resolved
packages/plugins/eslint-plugin-react-naming-convention/src/rules/filename.ts
Outdated
Show resolved
Hide resolved
…es/filename.ts Co-authored-by: Copilot <[email protected]> Signed-off-by: REL1CX <[email protected]>
…es/filename.ts Co-authored-by: Copilot <[email protected]> Signed-off-by: REL1CX <[email protected]>
What kind of change does this PR introduce?
Does this PR introduce a breaking change?
Checklist
fix: remove a typo, closes #___, #___)Other information