Skip to content

Commit

Permalink
update error message so it is more useful
Browse files Browse the repository at this point in the history
  • Loading branch information
beaesguerra committed Dec 13, 2024
1 parent 8f4b545 commit 2ccd64c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/perfect-cycles-fry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@khanacademy/eslint-plugin": patch
---

Update error message for `aphrodite-add-style-variable-name` rule
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const createRule = ESLintUtils.RuleCreator<MyPluginDocs>(
type Options = [];
type MessageIds = "errorString";

const message = `Variable name "{{ variableName }}" does not match tag name "{{ tagName }}". Variable name should be "{{ expectedName }}"`;
const message = `Variable name "{{ variableName }}" does not match the expected naming convention. Expected: "{{ expectedName }}"`;

/**
* Converts a string into PascalCase.
Expand Down

0 comments on commit 2ccd64c

Please sign in to comment.