Skip to content

Commit 80b8983

Browse files
authored
Update doc for custom-event-name-casing (#1338)
1 parent d62b874 commit 80b8983

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/rules/custom-event-name-casing.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,19 @@ export default {
4949

5050
## :wrench: Options
5151

52-
5352
```json
5453
{
5554
"vue/custom-event-name-casing": ["error", {
5655
"ignores": []
5756
}]
5857
}
5958
```
59+
6060
- `ignores` (`string[]`) ... The event names to ignore. Sets the event name to allow. For example, custom event names, Vue components event with special name, or Vue library component event name. You can set the regexp by writing it like `"/^name/"` or `click:row` or `fooBar`.
6161

6262
### `"ignores": ["fooBar", "/^[a-z]+(?:-[a-z]+)*:[a-z]+(?:-[a-z]+)*$/u"]`
6363

64-
<eslint-code-block :rules="{'vue/custom-event-name-casing': ['error', {ignores:'/^[a-z]+(?:-[a-z]+)*:[a-z]+(?:-[a-z]+)*$/u'}]}">
64+
<eslint-code-block :rules="{'vue/custom-event-name-casing': ['error', { ignores: ['fooBar', '/^[a-z]+(?:-[a-z]+)*:[a-z]+(?:-[a-z]+)*$/u'] }]}">
6565

6666
```vue
6767
<template>
@@ -90,7 +90,6 @@ export default {
9090

9191
</eslint-code-block>
9292

93-
9493
## :books: Further Reading
9594

9695
- [Guide - Custom Events]

0 commit comments

Comments
 (0)