Open thorn0 opened 1 year ago
Yes, I also have in the project files with abbreviations inside like API
, KPI
, MUI
(material-ui) etc.
I think this is generally called camelCase
vs strictCamelCase
(which is what unicorn uses)
The problem with the non-strict version is that it allows eyesores like XMLHttpRequest
There are two styles of camel case used in the wild:
getHtml
,convertFromDom
innerHTML
,getDOMRangeRect
,domSelection
Currently the
filename-case
rule doesn't support the style 2 even though this style is used in the DOM APIs and is overall quite popular.Example: https://github.com/facebook/lexical/blob/main/packages/lexical-playground/src/utils/getDOMRangeRect.ts