tal-rofe / Inflint

Scans and verifies file name conventions.
MIT License
6 stars 0 forks source link

Bug: (Issue with Path Configuration Not Recognizing 'src/*.{tsx}' Pattern #228

Open amir-ben-shimol opened 8 months ago

amir-ben-shimol commented 8 months ago

Environment

Node version: 20.11.0 npm version: 10.2.4 Local Inflint version: 2.1.1 Global Inflint version: 2.1.1 Operating System: macos

What did you do?

Configuration ``` const inflintConfig = { rules: { 'src/*.tsx': [2, 'kebab-case'], }, }; ```

What did you expect to happen?

When I define the path as src/*.{tsx}, the configuration correctly identifies all files ending with .tsx in the src folder.

What actually happened?

The path does not seem to point to any .tsx files under my src directory.

Participation

Additional comments

This issue limits the flexibility of path configurations, especially in projects where similar patterns might be used for multiple file types.