Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.

Commit f9f47e4

Browse files
authored
Global new-cap customization (#328)
1 parent 40b6c1c commit f9f47e4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ const config = {
5757

5858
eqeqeq: ["error", "always", { null: "never" }],
5959

60+
"new-cap": [
61+
"error",
62+
{
63+
capIsNewExceptionPattern:
64+
"(TEST_|INTERNAL_|HACK_|UNSAFE_|API_PATHS.|UI_PATHS.)",
65+
},
66+
],
67+
6068
// Override default Prettier rule: https://github.com/prettier/eslint-config-prettier/blob/5687e7de69ac132f053b4bc5474d5963aa3bf6d6/README.md#curly
6169
curly: ["error", "all"],
6270

0 commit comments

Comments
 (0)