ls-lint icon indicating copy to clipboard operation
ls-lint copied to clipboard

How can I allow only lowercase filenames including extensions and disallow all other filenames?

Open romanstetsyk opened this issue 6 months ago • 3 comments

ls:
  .*: lowercase

As far as I can tell, ls-lint treats everything after the first dot as an extension. For example, test.SUBEXT.ts will pass the validation because test is lowercase. However, we have many files with different combinations of extensions and sub-extensions, so listing them all is not feasible. How can I limit all filenames, sub-extensions, and extensions to lowercase only? Is it achievable using wildcards? Any tips would be appreciated!

Examples: Allow only lowercase extensions, e.g. .jpg but disallow .JPG, .JpG, etc. Allow only lowercase sub-extensions, e.g. .model.ts but disallow .MODEL.ts, .model.TS, etc.

romanstetsyk avatar Jul 31 '24 14:07 romanstetsyk