Skip to content

Commit 81589a5

Browse files
committed
fix: allow no constructor functions to start with an uppercase letter
Useful in metadata and library usages
1 parent f802a74 commit 81589a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module.exports = {
2828
// good practises
2929
camelcase: "error",
3030
eqeqeq: "error",
31-
"new-cap": "error",
31+
"new-cap": ["error", { capIsNew: false }],
3232
"no-array-constructor": "error",
3333
"no-console": ["error", { allow: ["error"] }],
3434
"no-else-return": ["error", { allowElseIf: false }],

0 commit comments

Comments
 (0)