Skip to content

Commit

Permalink
Update doc for custom-event-name-casing (#1338)
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Oct 18, 2020
1 parent d62b874 commit 80b8983
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/rules/custom-event-name-casing.md
Expand Up @@ -49,19 +49,19 @@ export default {

## :wrench: Options


```json
{
"vue/custom-event-name-casing": ["error", {
"ignores": []
}]
}
```

- `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`.

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

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

```vue
<template>
Expand Down Expand Up @@ -90,7 +90,6 @@ export default {

</eslint-code-block>


## :books: Further Reading

- [Guide - Custom Events]
Expand Down

0 comments on commit 80b8983

Please sign in to comment.