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

Specifying default file type

binary64 opened this issue · comments

Hi is it possible to have a default fallback like

ls:
  .: 'regex:$never'
  .txt: 'kebabcase'

would only allow files like blahBlah.txt and hello.txt

test.jpg and so on would cause error

at the moment I'm having to specify every file type under the sun to be 'regex:$never' (which is my little hack to make sure these files do not exist)

Hey @binary64,

love the idea but i am not sure how to handle that in combination with directories for now

will think about that 👍