You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion! It works for files without sub-extensions. Unfortunately, I must include .*.* and .*.*.* to catch more cases of wrong filenames.
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 becausetest
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.The text was updated successfully, but these errors were encountered: