Skip to content

Commit

Permalink
Merge branch 'vuejs:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomasan1999 authored Nov 30, 2024
2 parents ac5aa92 + ec6ab01 commit fe49694
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
9 changes: 6 additions & 3 deletions docs/rules/restricted-component-names.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/restricted-component-names
description: enforce using only specific component names
since: v9.32.0
---

# vue/restricted-component-names

> enforce using only specific component names
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> _**This rule has not been released yet.**_ </badge>

## :book: Rule Details

This rule enforces consistency in component names.
Expand Down Expand Up @@ -40,7 +39,7 @@ This rule enforces consistency in component names.
}
```

### `"allow"`
### `"allow: ['/^custom-/']"`

<eslint-code-block :rules="{'vue/restricted-component-names': ['error', { 'allow': ['/^custom-/'] }]}">

Expand All @@ -60,6 +59,10 @@ This rule enforces consistency in component names.

- [vue/no-restricted-component-names](./no-restricted-component-names.md)

## :rocket: Version

This rule was introduced in eslint-plugin-vue v9.32.0

## :mag: Implementation

- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/restricted-component-names.js)
Expand Down
7 changes: 5 additions & 2 deletions docs/rules/slot-name-casing.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/slot-name-casing
description: enforce specific casing for slot names
since: v9.32.0
---

# vue/slot-name-casing

> enforce specific casing for slot names
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> _**This rule has not been released yet.**_ </badge>

## :book: Rule Details

This rule enforces proper casing of slot names in Vue components.
Expand Down Expand Up @@ -82,6 +81,10 @@ This rule enforces proper casing of slot names in Vue components.

</eslint-code-block>

## :rocket: Version

This rule was introduced in eslint-plugin-vue v9.32.0

## :mag: Implementation

- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/slot-name-casing.js)
Expand Down
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",
"version": "9.31.0",
"version": "9.32.0",
"description": "Official ESLint plugin for Vue.js",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down

0 comments on commit fe49694

Please sign in to comment.