ls-lint
ls-lint copied to clipboard
How can I allow only lowercase filenames including extensions and disallow all other filenames?
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.