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
{{ message }}
Repository navigation
Commit d3dd47f
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/src/rules/new-cap.md
+30Lines changed: 30 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,8 @@ This rule requires constructor names to begin with a capital letter. Certain bui
26
26
*`Symbol`
27
27
*`BigInt`
28
28
29
+
These identifiers are exempt only when they reference the global built-in, either directly or as a property of the global object (`global`, `globalThis`, `self`, or `window`). `Date.UTC()` is exempt under the same condition.
30
+
29
31
Examples of **correct** code for this rule:
30
32
31
33
::: correct
@@ -36,6 +38,34 @@ Examples of **correct** code for this rule:
0 commit comments