Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
ShridharGoel committed Apr 5, 2024
1 parent d494e5f commit d469901
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions eslint-plugin-expensify/use-periods-for-error-messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ module.exports = {
node: property,
message,
fix: function (fixer) {
const lastChar = errorMessage[errorMessage.length - 1];
const fixedMessage = lastChar === '.' ? errorMessage : `${errorMessage}.`;
const fixedMessage = `${errorMessage}.`;
return fixer.replaceText(property.value, `'${fixedMessage}'`);
}
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-expensify",
"version": "2.0.45",
"version": "2.0.44",
"description": "Expensify's ESLint configuration following our style guide",
"main": "index.js",
"repository": {
Expand Down

0 comments on commit d469901

Please sign in to comment.