# component-options-name-casing

Rule `vue/component-options-name-casing`. Enforce the casing of component name in `components` options

- Source: vue
- Technologies: Vue
- Kind: style
- Needs type information: no
- Autofix: yes, in at least one linter
- Reach: 758.7K weekly downloads of presets that enable it
- Trend: +49.9% last quarter
- Rank: #1573 by reach, #790 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vue/component-options-name-casing` | no | safe | package `eslint-plugin-vue` | [docs](https://eslint.vuejs.org/rules/component-options-name-casing.html) |
| Biome | `nursery/useVueRegisteredComponentNameCasing` | no | unsafe | group nursery, since 2.6.8 | [docs](https://biomejs.dev/linter/rules/use-vue-registered-component-name-casing/) |

## Code examples

### Incorrect: the rule reports this

```vue
<template>
  <div>
    <!-- All are invalid. DO NOT use like these. -->
    <KebabCase />
    <kebabCase />
    <CamelCase />
  </div>
</template>

<script>
export default {
  components: {
    camelCase: MyComponent,
    'kebab-case': MyComponent
  }
}
</script>
```

Examples from the ESLint documentation.

## Enable it

### ESLint: `eslint.config.js`

```js
import vue from "eslint-plugin-vue";

export default [
  {
    plugins: { vue },
    rules: {
      "vue/component-options-name-casing": "error",
    },
  },
];
```

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "nursery": {
        "useVueRegisteredComponentNameCasing": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Anthony Fu's config](https://lintradar.dev/presets/antfu.md) | ESLint | `@antfu/eslint-config` | 294 | 758.7K | +49.9% |

## Related rules

- [vue/define-macros-order](https://lintradar.dev/rules/vue/define-macros-order.md): Enforce order of compiler macros (`defineProps`, `defineEmits`, etc.)
- [vue/dot-notation](https://lintradar.dev/rules/vue/dot-notation.md): Enforce dot notation whenever possible in `<template>`
- [vue/eqeqeq](https://lintradar.dev/rules/vue/eqeqeq.md): Require the use of `===` and `!==` in `<template>`
- [vue/no-empty-pattern](https://lintradar.dev/rules/vue/no-empty-pattern.md): Disallow empty destructuring patterns in `<template>`
- [vue/no-irregular-whitespace](https://lintradar.dev/rules/vue/no-irregular-whitespace.md): Disallow irregular whitespace in `.vue` files
- [vue/no-loss-of-precision](https://lintradar.dev/rules/vue/no-loss-of-precision.md): Disallow literal numbers that lose precision in `<template>`

---

Web page: https://lintradar.dev/rules/vue/component-options-name-casing. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
