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

Question: Is it possible to verify a repeated pattern? #72

Closed
jfairley opened this issue Mar 11, 2022 · 2 comments
Closed

Question: Is it possible to verify a repeated pattern? #72

jfairley opened this issue Mar 11, 2022 · 2 comments

Comments

@jfairley
Copy link

I just created a NestJS app. Long-story-short, when you use the NestJS CLI tool, you end up with files/directories like so:

src/
  role/
    role.module.ts
    role.service.ts
  user/
    user.module.ts
    user.service.ts

I'd like to verify that the file root matches its directory name, but I'm not sure if it's possible.

I would want the linter to reject something like src/user/users.module.ts.

Is there a way to lint a pattern like this?

@jfairley
Copy link
Author

Oh, it looks like I have duplicated #59

@loeffel-io
Copy link
Owner

close in case of duplication

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

2 participants