Skip to content

Commit

Permalink
Global new-cap customization
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Feb 9, 2025
1 parent 40b6c1c commit ead899b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ const config = {

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

"new-cap": [
"error",
{
capIsNewExceptionPattern:
"(TEST_|INTERNAL_|HACK_|UNSAFE_|API_PATHS.|UI_PATHS.)",
},
],

// Override default Prettier rule: https://github.com/prettier/eslint-config-prettier/blob/5687e7de69ac132f053b4bc5474d5963aa3bf6d6/README.md#curly
curly: ["error", "all"],

Expand Down

0 comments on commit ead899b

Please sign in to comment.