-
-
Notifications
You must be signed in to change notification settings - Fork 32
feat(naming-convention/filename): enhance default excepts patterns and improve validation #1185
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.
|
- Add default excepts patterns for common framework files: - Files starting with underscore (_app.tsx, _layout.tsx) - Numeric files (404.tsx) - Square bracket files ([slug].tsx) - Improve validation logic to filter non-word/dash characters - Update documentation with excepts option details - Add comprehensive test cases for new exception patterns This enhances the filename rule to be more framework-agnostic and handles edge cases with special characters in filenames.
0f47a76 to
3080de7
Compare
…es/filename.ts Co-authored-by: Copilot <[email protected]> Signed-off-by: REL1CX <[email protected]>
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 enhances the filename naming convention rule by adding default exception patterns for common framework files and improving validation logic to handle special characters more robustly.
- Adds default exception patterns for framework-specific files like underscore-prefixed files, numeric files, and square bracket files
- Improves validation logic by filtering non-word/dash characters before applying case rules
- Updates documentation with comprehensive examples and framework-specific guidance
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| filename.ts | Adds default exception patterns and improves validation logic with character filtering |
| filename.spec.ts | Adds comprehensive test cases for new exception patterns and edge cases |
| filename.md | Updates documentation with exception option details and framework-specific examples |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
This enhances the filename rule to be more framework-agnostic and handles edge cases with special characters in filenames.
What kind of change does this PR introduce?
Does this PR introduce a breaking change?
Checklist
fix: remove a typo, closes #___, #___)Other information