Skip to content

Conversation

@Rel1cx
Copy link
Owner

@Rel1cx Rel1cx commented Aug 20, 2025

  • 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.

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 Rel1cx marked this pull request as ready for review August 20, 2025 15:22
@Rel1cx Rel1cx requested a review from Copilot August 20, 2025 15:22
@vercel
Copy link

vercel bot commented Aug 20, 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 Aug 20, 2025 4:02pm

This comment was marked as outdated.

- 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.
@Rel1cx Rel1cx force-pushed the feat/filename-rule-enhanced-excepts branch from 0f47a76 to 3080de7 Compare August 20, 2025 15:32
@Rel1cx Rel1cx requested a review from Copilot August 20, 2025 15:32

This comment was marked as outdated.

@Rel1cx Rel1cx requested a review from Copilot August 20, 2025 15:58
Copy link
Contributor

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 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.

@Rel1cx Rel1cx merged commit e352f62 into 2.0.0 Aug 20, 2025
10 checks passed
@Rel1cx Rel1cx deleted the feat/filename-rule-enhanced-excepts branch August 20, 2025 16:05
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.

2 participants