Skip to content

Commit

Permalink
feat: keep logFn out of code
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Mar 26, 2024
1 parent d77f0e1 commit be3408b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ module.exports = {
group: ["**/../lib/**", "lib/**"],
message: "import from /src not from /lib. /lib is a build artifact",
},
{
group: ["@salesforce/kit"],
importNames: ["logFn"],
message:
"The logging function is only for debug and should not be shipped in production code",
},
],
},
],
Expand Down Expand Up @@ -80,6 +86,6 @@ module.exports = {
"import/order": "error",
"jsdoc/check-alignment": "error",
"jsdoc/check-indentation": "error",
"jsdoc/tag-lines": [2, "any", { "startLines": 1,"endLines": 1 }]
"jsdoc/tag-lines": [2, "any", { startLines: 1, endLines: 1 }],
},
};

0 comments on commit be3408b

Please sign in to comment.