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

Feature request: File-orientated rules

binary64 opened this issue · comments

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"