Skip to content
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

Feature request: File-orientated rules #69

Open
binary64 opened this issue Feb 7, 2022 · 0 comments
Open

Feature request: File-orientated rules #69

binary64 opened this issue Feb 7, 2022 · 0 comments

Comments

@binary64
Copy link

binary64 commented Feb 7, 2022

Regarding #30

Could this feature be powerful enough to help me enforce test files for every .tsx no matter my structure?

Because I can imagine a regex solution to check for exists would quickly get complicated to manage. Imagine you have a components directory, and inside it you are going to have a wide variety of organization. On one hand you might have a simple /components/button/index.tsx but for a list you might have sub-components like /components/list/{ index.ts , list-item/index.tsx }

Thinking out loud, but it would be cool to say: "all .tsx files inside of /components should have neighboring .spec.tsx files"

Repository owner deleted a comment from Igorkowalski94 Oct 2, 2023
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

No branches or pull requests

1 participant