Skip to content

Commit d4d6757

Browse files
fix(enforce-style-type): correct typos (#125)
* fix(enforce-style-type): correct typo * fix: correct typo * style: lint fix * style: say or instead of comma * style: use singular instead of plural attributes * re-trigger ci
1 parent 1f8d340 commit d4d6757

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/rules/enforce-style-type.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ module.exports = {
3535
change:
3636
"Change `{{ fromAttribute }}` to `{{ toAttribute }}` attribute.",
3737
forbiddenStyle: "`{{ attribute }}` attribute is forbidden.",
38-
forbiddenPlain: "Missing atributes {{ attributes }}.",
38+
forbiddenPlain: "Missing attribute {{ attributes }}.",
3939
forbiddenScopedModule:
4040
"Cannot use both `scoped` and `module` attributes.",
4141
},
@@ -151,7 +151,9 @@ module.exports = {
151151
node: node.startTag,
152152
messageId: "forbiddenPlain",
153153
data: {
154-
attribute: allows.map((allow) => `\`${allow}\``).join(", "),
154+
attributes: allows
155+
.map((allow) => `\`${allow}\``)
156+
.join(" or "),
155157
},
156158
suggest: singleAllow
157159
? [

0 commit comments

Comments
 (0)