loeffel-io / ls-lint

An extremely fast directory and filename linter - Bring some structure to your project filesystem

Home Page:https://ls-lint.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: Is it possible to verify a repeated pattern?

jfairley opened this issue · comments

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?

Oh, it looks like I have duplicated #59

close in case of duplication