Skip to content

Commit

Permalink
fix(rule/no-undefined-class-names): improve error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
levchak0910 committed Nov 14, 2023
1 parent bc54786 commit 97a7ce2
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 23 deletions.
5 changes: 3 additions & 2 deletions lib/rules/no-undefined-class-names.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,10 @@ export = {
},
fixable: null,
messages: {
"undefined-element": "The element class name is undefined.",
"undefined-element":
"The element class name `{{className}}` is undefined.",
"excess-element":
"The element class name can not be defined twice ot more.",
"The element class name can not be defined twice or more.",
"undefined-modifier":
"The modifier class name `{{className}}` is undefined.",
useDefined: "Use '{{className}}' instead.",
Expand Down
40 changes: 20 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-vue-kebab-class-naming",
"version": "0.3.1",
"version": "0.3.2",
"description": "ESLint plugin for ensuring a kebab-ish like class naming convention in Vue files",
"main": "dist/index.js",
"scripts": {
Expand Down

0 comments on commit 97a7ce2

Please sign in to comment.